Quiz 4
Version 1

 

 

1. What is bytecode?

2. What is a "brittle" program?

3. What does the operator != do?

4. What does the operator || do?

5. What's the difference between = and ==?

6. What part of a conditional statement do the parentheses go around? How about the braces?

7. In a conditional statement, what's wrong with a test like (20 > age > 0)?

8. What is an "arithmetic exception"? Whose signature do you need to get to apply for one?

9. What's dangerous about handling three mutually exclusive cases with three totally separate if statements?

10. Each case in a switch statement normally ends with a break statement. What happens if it doesn't?

Last modified August 28 for Fall 99 cs5 by fleck@cs.hmc.edu


This page copyright ©1998 by Joshua S. Hodas. It was built with Frontier on a Macintosh . Last rebuilt on Tue, Sep 8, 1998 at 11:23:26 PM.
http://www.cs.hmc.edu/~hodas/courses/cs5/week_04/quiz.html