CS 1401, Quiz #2

Date: Tuesday, September 13, 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:



long integer

3-dimensional array

floating point

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