DePaul University
Midterm Exam 10/18/05 Name ___________________
For multiple choice/true-false questions circle exactly one correct answer. Except for the three questions marked otherwise, all questions are worth 3 points.
1. What command is used to create an object? _______new___________
2. Match the results of the following computations:
39 % 4 __4__ 1. 9.75
39 / 4 __5__ 2. 0
39.0 / 4 __1__ 3. 4
4 % 39 __3__ 4. 3
45 % 5 __2__ 5. 9
3. Constants in Java are declared with the modifier ______final__________ .
4. The showInputDialog method returns a String object. T* F
5. It is necessary to declare an object before you use it. T* F
6. An argument is a value we pass to a method, and a parameter is
a placeholder for arguments. T* F
7. Which one of the following code fragments adds the even numbers between 0 and 21?
|A. int sum = 0, num = 0; |B*. int sum = 0, num = 0; |
|while (num ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- university city education foundation
- city university high school memphis
- why this university essay sample
- university city schools mo
- university of minnesota education department
- university school district jobs
- university city high school mo
- university city public schools
- university city st louis
- university city mo school district
- university place school district jobs
- university city high school missouri