C-17-Q061mediumsingle_mcq
The default case runs when:
The default case runs when:
- aThe first case matches
- bNone of the listed cases match the value
- cThe program is interrupted
- dThe match expression is missing
ব্যাখ্যা
The wildcard case _: is only reached when the value fails to match every preceding case pattern, so it serves as the fallback. This mirrors the else clause in an if-elif-else chain.