1.
When using a switch statement in Java, a no-match condition results in an error.
2.
0.025 >= 0.333The result of relational operations will be
3.
(-6<0) && (12 >= 10)The result of this operation will be
4.
(5!=5)&&(3<6)The result of this operation will be
5.
Int x = -7;int y = 3;!(3*x < 4*y) && (5*x >=y)The result of this expression will be
6.
The default case is required in the switch selection statement.
7.
The expression ((x > y) && (a < b)) is true if either x > y is true or a < b is true.
8.
An expression containing the || operator is true if either or both of its operands are true.
9.
The loop body of the do/while loop will be executed at least ___ time(s).
A. 
B. 
C. 
D. 
10.
The loop body of the while loop will be executed at least ____ time(s)
A. 
B. 
C. 
D. 
11.
A do/while loop is a post-test loop.
12.
How many times will the following loop execute?int x = 1;do { System.out.println("This is a do/while loop"); ++x;}while(x >= 0);
A. 
B. 
C. 
D. 
13.
How many times is the following loop executed?for (int x=0; x <= 10; ++x) System.out.println("This is a for loop.");
A. 
B. 
C. 
D. 
14.
Consider the following segment of code:if (x>=0) if (x<10) { y = x * x; if (x<=5) x = x - 2; } //END if x < 10 else y = 10 + x;else y = x * x * x;io.writeInfo("x = " + x + "\ny = " +y);What will be displayed by the program if x = 0?
A. 
B. 
C. 
D. 
15.
Consider the following segment of code:if (x>=0) if (x<10) { y = x * x; if (x<=5) x = x - 2; } //END if x < 10 else y = 10 + x;else y = x * x * x;io.writeInfo("x = " + x + "\ny = " +y);What will be displayed by the program if x = 4?
A. 
B. 
C. 
D. 
16.
Consider the following segment of code:if (x>=0) if (x<10) { y = x * x; if (x<=5) x = x - 2; } //END if x < 10 else y = 10 + x;else y = x * x * x;io.writeInfo("x = " + x + "\ny = " +y);What will be displayed by the program if x = 6?
A. 
B. 
C. 
D. 
17.
Consider the following segment of code:if (x>=0) if (x<10) { y = x * x; if (x<=5) x = x - 2; } //END if x < 10 else y = 10 + x;else y = x * x * x;io.writeInfo("x = " + x + "\ny = " +y);What will be displayed by the program if x = -5?
A. 
B. 
C. 
D. 
18.
Consider the following segment of code:if (x>=0) if (x<10) { y = x * x; if (x<=5) x = x - 2; } //END if x < 10 else y = 10 + x;else y = x * x * x;io.writeInfo("x = " + x + "\ny = " +y);What will be displayed by the program if x = 10?
A. 
B. 
C. 
D. 
19.
Consider the following switch statement:int x = 3;switch (power) { case 0 : io.writeInfo("1"); break; case 1 : io.writeInfo(x); break; case 2 : io.writeInfo(x * x); break; case 3 : io.writeInfo(x * x * x); break; case 4 : io.writeInfo(x * x * x * x); break; default : io.writeInfo("No match exists for this power");}//END switchWhat will be displayed by the code if power = 0?
A. 
B. 
C. 
D. 
E. 
20.
Consider the following switch statement:int x = 3;switch (power) { case 0 : io.writeInfo("1"); break; case 1 : io.writeInfo(x); break; case 2 : io.writeInfo(x * x); break; case 3 : io.writeInfo(x * x * x); break; case 4 : io.writeInfo(x * x * x * x); break; default : io.writeInfo("No match exists for this power");}//END switchWhat will be displayed by the code if power = 1?
A. 
B. 
C. 
D. 
E. 
21.
Consider the following switch statement:int x = 3;switch (power) { case 0 : io.writeInfo("1"); break; case 1 : io.writeInfo(x); break; case 2 : io.writeInfo(x * x); break; case 3 : io.writeInfo(x * x * x); break; case 4 : io.writeInfo(x * x * x * x); break; default : io.writeInfo("No match exists for this power");}//END switchWhat will be displayed by the code if power = 2?
A. 
B. 
C. 
D. 
E. 
22.
Consider following program segment.int a = 1;while (17 % a != 5){ System.out.println(a + " " + 17 % a); ++a;}// END whileHow many times will the loop be executed?
A. 
B. 
C. 
D. 
23.
Consider the following program segmentint b = 2;do { System.out.println(b + " " + b/5); b = b + 2;}while ( b != 20);How many times will the loop be executed?
A. 
B. 
C. 
D. 
24.
Determine the output generated by the following program segment.int number = 1;int product = 1;do { ++ number; product = product * number;} while ( number < 5);io.writeInfo("The product is: " + product);
A. 
B. 
C. 
D. 
25.
Which of the following is NOT an iteration control structure in Java?
A. 
B. 
C. 
D.