Important MCQ

if (5) the block

Q.if (5) the block

A) does not execute
B) causes an error
C) executes twice
D) executes
Correct Answer:
Option D
Detailed Explanation:
D) executes 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.