1.

While developing a switch-case structure, the value for case can be _________(a) Single only(b) Multiple(c) Infinite(d) 0The question was asked in exam.This interesting question is from Branching topic in division MATLAB Programming of MATLAB

Answer»

The correct answer is (b) Multiple

To explain I would say: The switch-case STRUCTURE has a versatile SYNTAX in MATLAB. We can give many numbers of case values to match with the input. This can help US in solving COMPLEX problems where we need selection of values.



Discussion

No Comment Found

Related InterviewSolutions