Important MCQ

int age=15; if(age>=18) cout<<"Adult"; else cout<<"Minor"; prints

Q.int age=15; if(age>=18) cout<<"Adult"; else cout<<"Minor"; prints

A) AdultMinor
B) Adult
C) Minor
D) nothing
Correct Answer:
Option C
Detailed Explanation:
C) Minor is correct. An if-else statement makes a two-way decision: the if block runs when the condition is true, otherwise the else block runs. Exactly one branch is selected.