The switch-case structure is a _________

The switch-case structure is a _________
A. Conditional structure
B. Logical structure
C. Multidimensional structure
D. Hierarchical structure
 
Answer: b
Explanation: Any case in the switch structure gets executed if the switching variable and the case value satisfies the logical condition of equality. Hence the switch-case is a logical structure since based on the equality of the two values, the case will get executed.
 

Tìm kiếm

Back
Top