C-17-Q124mediummulti_combo_mcq
Two correct statements about match in Python:
Two correct statements about match in Python:
- Multiple
caselines may appear - Each
caseends with a colon - The default case must use the keyword
default
- ai and ii
- bi and iii
- cii and iii
- di, ii, and iii
ব্যাখ্যা
A match block can contain multiple case lines, and every case header ends with a colon, so statements i and ii are correct. Python's default case uses the wildcard case _:, not a default keyword, so iii is false.