C-17-Q135mediumsingle_mcq
Which is true about the body of else in if...else?
Which is true about the body of else in if...else?
- aIt runs only when the
ifcondition is true - bIt runs only when the
ifcondition is false - cIt always runs
- dIt never runs
ব্যাখ্যা
The else block is the alternative path: it executes only when the if condition evaluates to false. If the condition is true, the if body runs instead and else is skipped.