C-17-Q007mediumsingle_mcq
The combined construct used to choose between two alternative blocks is called the:
The combined construct used to choose between two alternative blocks is called the:
- aswitch statement
- bif...else statement
- cfor statement
- dwhile statement
ব্যাখ্যা
The if...else statement pairs a condition with two blocks, executing one when the condition is true and the other when it is false. This makes it the standard construct for choosing between two alternatives. (Python has no switch statement.)