Solved

Given the If/else Statement

Question 8

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions