Important MCQ

Same code with x = 2 prints

Q.Same code with x = 2 prints

A) nothing
B) B
C) C
D) A
Correct Answer:
Option C
Detailed Explanation:
C) C is correct. A nested if is an if statement inside another if. The inner condition is reached only if execution enters the outer block; braces and indentation make the structure clear.