What’s on Test #1
100 Points
Chapter 5 (except section 5.7)
5.1 Declaring an array; instantiating an array; accessing individual array elements using indexes
5.2 Processing arrays and array elements; length attribute; displaying array elements
5.3 Operations on whole arrays; copying arrays; array assignments; passing arrays to methods; returning an array
5.4 Searching and sorting an array; findMin() or findMax(); selection sort
5.5 Arrays of objects; instantiating the array and each object in the array; invoking a method for one object in an array; searching for a matching item
5.6 Multi-dimensional arrays; declaring multi-dimensional arrays; initializing multi-dimensional arrays; accessing individual members of a multi-dimensional array using row-column order; printing the contents of a multi-dimensional array
5.7 Vectors – skip for now
5.8 Wrapper classes; Integer; Double
5.9 Not covered
5.10 Common programming errors
Class diagrams
Single class diagrams – name, attributes, methods
Multi-class diagrams – association relationships (using)
Labs 1-4
Sorts of Questions:
Draw a class diagram
Given some code, predict the output or the effect on an array (about 1/3 of the test)
Given some code and a problem description, fill in the missing parts (about 1/3 of the test)
Define simple terms (such as array, index, multi-dimensional array, wrapper class, etc.)
Explain a concept