Test 1 is scheduled for Tuesday, Oct. 16. Here is a list of review topics and student expectations for test 1. You will be allowed a single 8.5" x 11" sheet of paper with notes (front and back) during the test.
You should be able to:
(Williams College material and objectdraw)
- provide simple declarations and usage of objectdraw objects (FramedRect, FilledRect, FramedOval, etc.)
(Wu Chapter 1)
- differentiate between classes and objects
- draw object diagrams using Wu's icons for classes, objects, and other components of object-oriented programming (similar to Figure 1.12)
- name and explain the stages of the software life cycle
(Wu Chapter 2)
- identify the basic components of Java applications (comments, import statements, class declaration, main method)
- write a simple Java application
- describe the difference between object declaration and object creation
- describe the edit-compile-run cycle
- use MainWindow and MessageBox classes from the javabook package
(Wu Chapter 3)
- select proper types for numerical data
- write arithmetic expressions in Java
- evaluate arithmetic expressions using the precedence rules
- describe the difference when assigning between two primitive data varibles and when assignment is done between two object variables
- write mathematical expressions using methods in the Math class
- write programs that input and output data using the InputBox and OutputBox classes from the javabook package
(Wu Chapter 4)
- define an instantiable class with multiple methods and constructors
- differentiate the local and instance variables
- define and use value-returning methods
- describe how the arguments are passed to the parameters in method definition (pass-by-value)
(Wu Chapter 6)
- Implement selection control in a program using "if" statements
- write boolean expressions using relational and boolean operators
- evaluate given boolean expressions correctly
- nest an "if" statement inside another "if" statement's "then" or "else" part correctly
Test questions will be mixture of the following types of problems:
- identifying and fixing errors in given code (for examples see: pp. 77-9 exercises 1 - 3, 9, 14, 15; p. 91 quick check 1, 2, 4; p. 102 quick check 1; p. 106 quick check 2; p. 129 exercise 3; p. 152 quick check 1; pp. 156-7 quick check 1 - 2; p. 181 exercise 1)
- tracing (hand executing) short sections of code (for examples see: p. 97 quick check 1 - 3; pp. 128-9 exercise 1 - 2; p. 130 exercise 5; pp. 182-4 exercises 2 - 4; p. 281 exercise 3)
- writing short sections of code or a simple Java program (for examples see: p. 80 exercise 20; p. 112 quick check 3; p. 129 exercise 4; p. 131 exercises 8 - 10; p. 133-4 exercise 16; p. 281 exercise 5; p. 282 exercise 7)
- drawing or modifying object diagrams (for examples see: p. 22 quick check 1; p. 24 quick check 2; p. 34 exercises 1 - 3)
- explain using English sentences some concept (for examples see p. 22 quick check 2; p. 24 quick check 1; p. 106 quick check 1; p. 112 quick check 1)