1. CS110 Midterm Review
The following is a help sheet for studying for the midterm for CS110 Fall 2005.
1.1. Details
The exam is an open book exam. You may use your book, notes, and printouts of your programs. The exam will be in class, Thursday Oct. 6, 2005. It will last 80 minutes.
1.2. Topics
-
HTML, Bubo, and the web; CS110Lab01 - creating a homepage from scratch
-
Chapter 1 and 2, Java, gedit, applets, and files; CS110Lab02 - the Smiley Applet
-
Chapter 3, graphics, events, buttons, colors; CS110Lab03 - Draw yourself Applet
-
Chapter 4, variables and calculations; CS110Lab04 - Area and Volume Computation Application
-
Chapter 5 and 6, methods parameters, and objects; CS110Lab05 - The Bar Chart Application
1.3. Sample questions
-
What is the relationship between Java and JavaScript?
-
What are the main features of Java?
-
What is a program?
-
Which of the following are valid variable names?
-
Given the picture below, provide the Java code that will produce it.
-
Given the code below, draw a representation of what it would produce on the screen in the space provided.
-
Explain how the following program works. Give a sketch of what happens in time as the application is loaded and someone clicks on the button.
-
Write a program to compute the average of the digits 1 through 9, and display the result in a dialog window. Report the result as a floating-point number.
-
Write Java code that will do the following:
-
convert x into an integer
-
convert i into a double
-
convert s1 into an integer
-
convert s2 into a double
int intResult;
double doubleResult;
double x = 3.1415;
int i = 37;
String s1 = "454332";
String s2 = "789.23";
