CS 1401, Quiz #2

Date: Monday, September 12, 2005
Name: ______________________________________________________________________
Last 4 digits of UTEP ID #:(it is OK if you do not remember it): ______________________________________________________________________

1. In the following list of terms, mark, by X, the terms described in the book section that you were supposed to read by today:

addition

multiplication 

integer 

2-dimensional array

floating point

computer graphics 
2. Let us assume that we have already defined an input object in as
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
Write a main method that asks a user for his or her favorite color, and then prints a message
Your favorite color is (this color).
For example, if your favorite color is dark blue, then the computer should print the following message:
Your favorite color is dark blue.
Do not forget that the header of the main method is:
public static void main(String[] args) throws IOException{