1.

The switch-case structure is a _________(a) Conditional structure(b) Logical structure(c) Multidimensional structure(d) Hierarchical structureI had been asked this question in final exam.Question is taken from Branching in section MATLAB Programming of MATLAB

Answer»

The correct choice is (b) Logical structure

The 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.



Discussion

No Comment Found

Related InterviewSolutions