Question PSC-OPS-0076
HardWhat will be printed by the following pseudocode?
Integer n = 47
String s = (n mod 2 == 0) ? "even" : "odd"
String t = (n > 50) ? "big" : (n > 40 ? "mid" : "small")
Print s + "-" + t
- A.
odd-mid
- B.
odd-big
- C.
Sign up free to see the answer and a step-by-step explanation.