CSCI 2910
Test 1 -- Study Guide

The table below lists the topics and resources used in class to help you study for Test 1. Since this is only the second time I've taught this class in over five years, I only have one semester worth of old tests to help you. Your test may end up being a bit different than last years, but it should help a little. The quizzes, homeworks, and in-class laboratories that you have done so far this semester are probably the best resources.

As far as the quizzes are concerned, I have created PDFs of both the original quizzes along with answer sheets. You can find them at the following links along with the 2006 quizzes:

The format of the test will be part written and part programming. The written part will be completed first. As soon as you have turned in the written section, you will be allowed to log in to your PC and begin the programming portion of the test. You must use one of the lab machines. You cannot use your personal laptop.

The programming portion will contain two parts: a debugging exercise and a short programming exercise. During the programming portion, you will only be allowed to program using one of the development applications (probably Macromedia Dreamweaver) and access www.devguru.com. There will be no searching on Google, etc. The example below is a sample of the kind of programming exercise you might see:

Write an XHTML page with accompanying JavaScript to compute the student's course average based on his or her scores from five 10-point quizzes, three 50-point tests, and six 15-point homework assignments. To assist you, I've provided the XHTML code for the form that is to be used to input the student's scores:

<form action="" method="post" name="scores" id="scores">
<table border="2" cellpadding="5" cellspacing="2">
  <tr>
    <td>Quizzes (10 points ea.)</td>
    <td>Tests (50 points ea.)</td>
    <td>Homeworks (15 points ea.)</td>
  </tr>
  <tr>
    <td align="center" valign="top">
      Quiz 1: <input name="quiz1" type="text" id="quiz1" value="0"
        size="4" maxlength="2" /><br />
      Quiz 2: <input name="quiz2" type="text" id="quiz2" value="0"
        size="4" maxlength="2" /><br />
      Quiz 3: <input name="quiz3" type="text" id="quiz3" value="0"
        size="4" maxlength="2" /><br />
      Quiz 4: <input name="quiz4" type="text" id="quiz4" value="0"
        size="4" maxlength="2" /><br />
      Quiz 5: <input name="quiz5" type="text" id="quiz5" value="0"
        size="4" maxlength="2" />
    </td>
    <td align="center" valign="top">
      Test 1: <input name="test1" type="text" id="test1"
        value="0" size="4" maxlength="2" /><br />
      Test 2: <input name="test2" type="text" id="test2"
        value="0" size="4" maxlength="2" /><br />
      Test 3: <input name="test3" type="text" id="test3"
        value="0" size="4" maxlength="2" /><br />
    </td>
    <td align="center" valign="top">
      Homework 1: <input name="homework1" type="text"
        id="homework1" value="0" size="4" maxlength="2" /><br />
      Homework 2: <input name="homework2" type="text"
        id="homework2" value="0" size="4" maxlength="2" /><br />
      Homework 3: <input name="homework3" type="text"
        id="homework3" value="0" size="4" maxlength="2" /><br />
      Homework 4: <input name="homework4" type="text"
        id="homework4" value="0" size="4" maxlength="2" /><br />
      Homework 5: <input name="homework5" type="text"
        id="homework5" value="0" size="4" maxlength="2" /><br />
      Homework 6: <input name="homework6" type="text"
        id="homework6" value="0" size="4" maxlength="2" />
    </td>
  </table>
  <div align="center">
    <input type="button" name="compute" id="compute"
      value="Compute average" onClick="javascript:computeAverage();">
    <input type="text" name="display" id="display" value="0">
  </div>
</form>

When the user presses the compute button, have the updated average displayed in the textbox display. Check to make sure all of the values are integers and that none of them go outside the range of values for the specified quiz, test, or homework.



Topic Notes/Lab Exercises Comments
XHTML and Forms Although this material is from 1710, it is important to understand in order to complete most of the JavaScript stuff we learned afterward. You should be comfortable with much of the steps of this in-class exercise.
Cascading Style Sheets You won't be asked to memorize all of the CSS properties, but you will need to be able to use a reference in order to create, modify, and interpret CSS code. For example, you should be able to (by using the appropriate reference) do this in-class exercise.
Intro to JavaScript This material took you through examples of each of the five ways to incorporate JavaScript in your XHTML code and introduced you to some of the components of the browser object model (BOM) and the document object model (DOM). Basically, we are looking to learn syntax here along with a enough description of the BOM and DOM to allow us to start programming.
JavaScript Part 2 This material introduced you to JavaScript arrays along with some more JavaScript functions and objects, properties, and methods of the DOM and Math object. It also introduced you to the keyword new and gave you some experience in form validation.
JavaScript Part 3 This material introduced you to:
  • custom objects;
  • methods and properties of the objects Image, String, Date, Boolean, and Number;
  • the getElementById() method; and
  • the setTimeout() function.