This website is preserved for historical and scholarly reference and is no longer actively maintained.

QUIZ 26

October 24, 1997

#1. Given the Java statement:

draw the storage space for the array scores, labeling each location


#2. Continuing with the above example, what is the value of scores.length ?


#3. Write a sequence of assignment statements that sets every array entry to 0. (Do NOT include any while, if, or for statements.)


#4. Write Java code containing a for-statement (for-loop) that accomplishes the same task as the sequence of assignment statements in #3 above.



Return to Eleanor Hare's Home Page.

Return to Department of Computer Science Home page.