
Signature ____________________ Name _____________________
cs3fa_____
Student ID ___________________ Score:
Quiz 5
CSE 3
Fall 2006
Circle the correct answer.
1. In a statement like
if ( exp ) { do_something; }
we expect
exp
to be what type of expression:
A. addition
B. loop
C. increment
D. boolean
2. In a
setTimeout( "spinWheel1()", duration);
call, the duration units is:
A. seconds
B. minutes
C. milliseconds
D. hours
3. What color is #C4C4C4:
A. explosive
B. dark gray
C. light gray
D. translucent
4. Which of the following is not true:
A. an example of analog is a wave form
B. an example of digital is a CD
C. an example of analog is the output of a stereo speaker
D. an example of digital is a clock or watch that represents time with hands on a dial that move one
discrete second at a time instead of a smooth continuous motion
5. Which of the following iterates 10 times?
A.
for (i = 1; i < 11; i = i + 1)
B.
for (i = 0; i < 10; i = i + 1)
C.
for (i = 10; i > 0; i = i - 1)
D. all of the above
6. All caps in e-mail means:
A. the sender is yelling
B. the sender is over 65 years old with bad eye sight
C. the sender cannot find the lower-case keys on your keyboard
D. the sender is using a Microsoft mailer
(Over)