Multiple Choice
Of the following if statements, which one correctly executes three instructions if the condition is true?
A) if (x < 0)
A = b * 2;
Y = x;
Z = a - y;
B) {
If (x < 0)
A = b * 2;
Y = x;
Z = a - y;
}
C) if { (x < 0)
A = b * 2;
Y = x;
Z = a - y ;
}
D) if (x < 0)
{
A = b * 2;
Y = x;
Z = a - y;
}
E) B, C, and D are all correct but not A
Correct Answer:

Verified
Correct Answer:
Verified
Q3: In order to compare int, float and
Q4: A truth table shows, for the
Q5: Every iterator<br>A) has a hasNext() method<br>B) has
Q6: The following code has a syntax error
Q7: Assume that count is 0, total is
Q9: The statement:<br>if (a >= b) a++; else
Q10: Code Segment Ch 05-1<br>if (a > 0)<br>
Q11: Which of the following are true about
Q12: Which type of GUI control would be
Q13: Assume that boolean done = false, int