Site MapHelpFeedbackMultiple Choice
Multiple Choice
(See related pages)

Click on the correct response for each question below.



1

In Java, the /* operators (or symbols) are used for ________
A)performing a division and then a multiplication.
B)performing a multiplication followed by a division
C)taking the modulus (Mod) of two integer
D)enumerating a series of integers in an array
E)none of the above
2

In the last line of the out put, the following code will display ________.

int i;
for(i=1;i<= 3;i++)
{ System.out.println("Hello");
}
System.out.println(i);
}

A)tem.out.println(i);
B)) 0
C)unknown
D)3
E)4 E) none of the above
3

When executed, the following code will display __________ on the console:

class Computation {
public static void main (String args[]) {
int i;
long f = 2;
for(i=4; i<= 5;i++){
f *= i;
}
System.out.println(f);
}
}

A)120.
B)8.
C)Nothing (blank).
D)20.
E)40.
4

If we want to declare an array of integers named grade with 10 elements, we would use:
A)int[10] grade;
B)grade int[10];
C)grade() int;
D)int grade(10);
E)none of the above
5

A java package is a collection of:
A)Java System classes.
B)arrays that are required in many applications
C)methods
D)static methods
E)related classes







Sosinsky Programming The WebOnline Learning Center

Home > Chapter 11 > Multiple Choice Quiz