Question PSC-COND-0068
HardWhat is the output of this pseudocode?
Integer a = 5, b = 10
Boolean p = (a > 3) and not (b < 5)
Boolean q = not (a > 3 or b > 20)
if (p and not q)
Print "first"
else if (p or q)
Print "second"
else
Print "third"
end if
- A.
third
- B.
first
- C.
Sign up free to see the answer and a step-by-step explanation.