C-17-Q138mediummulti_combo_mcq
Two correct statements about the elif statement:
Two correct statements about the elif statement:
- It is short for "else if"
- It is used to check multiple conditions
- It must always appear before the first
if
- ai and ii
- bii and iii
- ci and iii
- di, ii, and iii
ব্যাখ্যা
elif is literally a contraction of "else if" and lets a chain test several conditions in sequence, so statements i and ii are correct. It must come after an if, never before it, so iii is false.