This website is preserved for historical and scholarly reference and is no longer actively maintained.
QUIZ 10
September 12, 1997
#1. Explain the action taking place in the following Java statement.
In your explanation, do not use any of the words: "it", "equal", or "equals". You should considering words like "copy" or "copied".
#2. Draw the result (in the style of the text) of executing the following code and explain exactly what process took place.
Point p = new Point (0,0) ;
p = new Point (1,1);
#3. Circle the correct code:
a)int count = readInt("Please enter the number of grades.");
if (25 == count)
{
}
b)int count = readInt("Please enter the number of grades.");
if (25.equals(count))
{
}