Important MCQ

Output? int m = 95; if (m >= 50) cout << "Pass"; else if (m >= 90) cout << "Excellent";

Q.Output? int m = 95; if (m >= 50) cout << "Pass"; else if (m >= 90) cout << "Excellent";

A) Excellent
B) Pass
C) PassExcellent
D) Nothing
Correct Answer:
Option B
Detailed Explanation:
First true condition wins; the rest are skipped.