Midterm Study Guide

Study Guide for Mid-Term exam CSIS 10A Saturday Section Fall 2010
You will be able to one (1) hand written sheet of notes (front and back). It must be handwritten in your own
handwriting.
1. Window coordinates – Figure 1.12 on page 19. Canvas Layering -- what code do you write to have one object “in
front of” another object?
2. Window and mouse event methods: onMouseClick, onMousePress, onMouseRelease, onMouseEnter,
onMouseExit, onMouseDrag, begin
Example: public void onMousePress(Location point) {
3. Given java code, draw the picture created by this code. See exercise 1.5.2 for example.
4. How to write java code that creates Lines, Text, Ovals, Rectangles and how to use methods move, moveTo,
contains, setColor, hide, show.
5. Valid class header for a window controller class. See Figure 6.3 on page 154
public class MyClass extends WindowController {
6. A valid class header for a non controller class. See FunnyFace example on page 162 Figure 6.4. Understand how
the methods contains, move, moveTo are used to implement a select and drag operation. See figure 4.6 page
100. Know how to implement the PictureFrame example on page 157 Exercise 6.2.3 using nested Rectangles
public class PictureFrame {
7. Class constructor and how this is related to the new operation in java
8. Instance variables – used to save information between methods calls
9. Local variables (temp variables used in a method) and parameter variables (used to pass information to a
method)
10. Primitive types : double, int, long, boolean, == comparison operator, using arithmetic operators and
comparison operators with primitive types
11. Object types, == comparison operator, equals method.
12. String type, using the + operator to concatenate two strings
13. Methods with void return type, non void return type, the java return statement
14. While loops and nested while loops.
15. If else statements. Page 103, 108, 111. List of conditional expressions, page 108 Figure 4.9
16. Java coding conventions: class names start with capital letter. Method and variable names start with lower
case. Constants are ALL_CAPS and usually declared as private static final.
Not on test:





Chapter 8
Chapter 7 de Morgan’s laws
Random number generators
Java system time
GrowMan lab – dilations, zoom in, zoom out.