Quiz 19 Solution - Tuesday July 11, 2000
1. If the value of counter is 1, then what is the value of ++counter?
2
2. What is the syntax of a for loop?
for (statement1;condition;statement2) { some statements; }
3. What are the four primary components in the signature of a method?
Access Control Keyword
Return Type
Name
Formal Parameter List
4. True/False Any for loop can be rewritten as a while loop.
True