CECS 174   FINAL EXAM REVIEW

Chapter 1

  1. Explain why it's valuable to study computing
  2. Use binary number system and hexadecimal number system

Chapter 2

  1. Understand the compiler process (source code, bytecode, library and java intepreter)
  2. Recognize different types of data types
    1. int
    2. float or double
    3. char
    4. boolean
    5. char
    6. String
  3. Show the difference between primitive and object variables
  4. Show the relationship between class and object
  5. Use Java Math operators and order of precedence
  6. Use Java Math class
  7. Casting
  8. Create a constant variable
  9. Read data typed at keyboard

Chapter 3

  1. Create an object
  2. Execute (invoke) object methods
  3. Define and use a void object methods including actual and formal parameters

Chapter 4

  1. Declare, create, initialize, access and process a one-dimensional array
  2. Input and output array elements
  3. Do iteration with while, do-while and for loop
  4. Use break statement in a loop structure
  5. Use Picture, Pixel and Color methods

Chapter 5

  1. Use nested loops for processing elements of a matrix (picture object)
  2. Define and use a returning-value method including actual and formal parameters
  3. Define and call overloading methods

Chapter 6

  1. Use relational operators and logical operators
  2. Constructor decision structures:
    1. if
    2. if/else
    3. if/else if
  3. Nested decision structure

Chapter 7

  1. Understand inheritance, packages and predefined Java classes
  2. Draw text (Strings)
    1. Font object
    2. FontMetrics object
  3. Use Graphics2D object to draw simple shapes on a picture

Chapter 8, 9 and 10

  1. Execute (invoke) class methods
  2. Define and execute an static method

Chapter 11

  1. Define a class including the fields, constructors, and methods
  2. Overload constructors
  3. Create accessor and modifier methods
  4. Create Javadoc comments
  5. Explore the API for Java at http://java.sun.com/j2se/1.5.0/docs/api/
  6. Reuse a class via inheritance

Chapter 12

  1. Create a String object
  2. Understand Unicode and ASCII
  3. Use escape sequences
  4. Use basic String methods( charAt, compareTo, substring, indexOf, toUppercase, toLowerCase, replace, replaceAll,
    length, and trim)
  5. Use Character methods
  6. Understand file structure (field, record, field delimiter)
  7. Reading data from a file
    1. FileReader
    2. BufferedReader
    3. StringTokenizer
  8. Write data to a file
    1. FileWriter
    2. BufferedWriter
  9. Understand the concept of exception

Chapter 15

  1. Explain the difference between compiler and interpreter
  2. Introduce to data structure and algorithm
  3. Consider computer performance based on clock rates and computer storage

Other topics

  1. One-dimensional array as method arguments
  2. Two-dimensional array as method argument