Important MCQ

An if block executes when its condition is

Q.An if block executes when its condition is

A) empty
B) TRUE
C) FALSE
D) zero
Correct Answer:
Option B
Detailed Explanation:
B) true is correct. An if statement executes its body only when its condition is true. The condition is written in parentheses, and braces group multiple statements.