Question PSC-COND-0022
EasyWhat is the output of this pseudocode?
Integer marks = 72
if (marks >= 90)
Print "A"
else if (marks >= 75)
Print "B"
else if (marks >= 60)
Print "C"
else
Print "D"
end if
- A.
B
- B.
C
- C.
Show answer and explanation
Answer: B
72 is below 75 but at least 60, so the third branch runs.