Multiple Choice
Given the if/else statement:
If (a < 5)
B = 12;
Else
D = 30;
Which of the following performs the same operation?
A) a < 5 ? b = 12 : d = 30;
B) b < 5 ? b = 12 : d = 30;
C) a >= 5 ? d = 30 : b = 12;
D) d = 30 ? b = 12 : a = 5;
E) None of these
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q3: Both of the following if statements
Q4: The conditional operator takes two operands.
Q5: This statement uses the value of a
Q6: If you intend to place a block
Q7: If you place a semicolon after the
Q9: These operators connect two or more relational
Q10: What is the value of donuts
Q11: What is the value of the following
Q13: Whereas < is called a relational operator,
Q18: What is the value of the following