Test 1 is scheduled for Wednesday, October 16th and will last 50 minutes.
It will cover the Williams College Manuscript Chapters 1-5.
Here is a list of review topics.
You should be able to:
Chapter 1
- know the general syntax of a class that extends the WindowController including the methods begin, onMouseClick, etc.
- understand the difference between object declaration and object creation
- call appropriate mutator methods (e.g., setColor, setWidth, move)
- use private instance variables to store state information about an object and
communicate information between methods
- know the difference between local variables, parameters and PIVs.
Chapter 2
- call accessor methods (e.g., getHeight) that return values.
- select the appropriate numeric data type: double, int, etc.
- display information as Text and concatenate information using + operator.
- understand the differences between primitive/numeric data types
(int, double, boolean, etc) and
reference data types (reference to objects) with respect to
declaration, assignment, and parameter passing
- define and use numeric constants
Chapter 3
- Implement selection control in a program using "if" and "if-else"
statements
- write boolean expressions using relational and boolean operators
- evaluate given boolean expressions correctly using precedence rules
- nest an "if" statement inside another "if" statement's "then" or "else" body correctly
- understand the declaration and usage of boolean data types
Chapter 4
- define an instantiable class with multiple instance variables,
constructors, and methods
- understand the correct usage of
"public" vs. "private" access control
- differentiate local and instance variables
- define and use value-returning methods
- understand the scope rules of Java instance variables,
local variable, and formal parameters
- understand the usage of "this"
Chapter 5
- Be able to write a while loop to solve a simple problem, such as
finding out the sum of the even numbers 100, 102, 104, ..., 198, 200 or
such as printing 8 filled rectangles across or down the canvas.
- Know the four requirements for doing an animation according to chapter
5 (the checklist of four things you generally always do if you use
the Williams textbook objectdraw package to create an animation.
- Know the general structure and pattern or any while loop, whether the
initialization or the condition or the loop body.