Your last name (BLOCK CAPITALS): _______________ first name: __________

Two-character quiz section ID (if you are registered): ______

check here if you are not registered: __

check here if you are registered but don't know your quiz section: __

CSE142

Miniquiz #02

April 10, 2003

Closed Book, Closed Notes

Time: 5 minutes

1 point per question

Look at the following class definition, and then answer the questions which follow:

    public class River {

    }

1. True/False River is an identifier

2. True/False class could have been spelled Class instead

3. True/False Anything inside the {} is considered a parameter

Look at the following fragment of Java code, and then answer the questions which follow:

    public River merge(River otherRiver) { }

4. This is a (circle one):   class definition      method definition      instance variable

5. The return type is River.

6. How many parameters are there?  (circle one)  0        2     3    4

7. True/False otherRiver is an identifier

8. In Java, double means (circle one)

        multiply by two            a number with a decimal point            send a message twice