CS100 J Spring 2004
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.
In-class quiz given on 2/24
- 1a: At declaration, a local variable has a default value. True or false?
1b: The scope of a local varialbe ends with the ______ 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.
2b: The condition must be present.