CS100 J Spring 2004
Quiz 1 SOLUTIONS
In-class quiz given on 2/24
This quiz is worth two points, one for each question. Both part a and part b must be correct to earn the point for the question.
- 1a: At declaration, a local variable has a default value. True or false? FALSE
1b: The scope of a local varialbe ends with the BLOCK within which it is declared.
- 2: The header of the
for
-loop has three parts: initialization, condition, and update. Answer true or false for the two statements below:
2a: The initialization must be present. FALSE
2b: The condition must be present. FALSE