C-17-Q056mediumsingle_mcq
In a match statement, the appropriate statement is usually selected based on:
In a match statement, the appropriate statement is usually selected based on:
- aA conditional or relational expression
- bThe value of a valid variable (the match expression)
- cA random number
- dThe current time
ব্যাখ্যা
A match statement selects a branch by comparing the value of a single variable (the match expression) against the listed cases. This differs from elif, which evaluates relational expressions.