EECS2030E Test 1

Mon Sep 27, 2016, 14:00-14:30
LAB 1
Version C


Instructions

There is one programming question and one multiple choice question.

Instructions for submitting your work are given in the question sections. You may submit as many times as you want; your most recent submission will be the one recorded.

You may leave the lab when you are finished with the test. Please return to the lab when the test is over for your regularly scheduled lab.


Resources

Java API


Programming question

Implement this API. You do not have to include javadoc comments. If you do not know the value of the constant, just choose the value yourself.

Submit your program using the following command in a terminal (make sure you are in the directory containing your file Test1C.java):

submit 2030 test1C Test1C.java


Multiple choice question

Create a text file named answers.txt (use File->New-> Untitled text file in eclipse). Type your answer (A, B, C, or D) to the following question in the text file.

Question 1

Every utility class should have:

A. at least one non-static field
B. at least one non-static method
C. at most one static field
D. a private default constructor

Did you remember to include such a feature in your Test1C class?

Save your file (it might be easiest to save the file in the same directory as your Test1C.java file). Submit your answer using the following command (make sure you are in the directory containing your file answers.txt):

submit 2030 test1C answers.txt