1.

What will happen if we don’t give an otherwise block to our switch structure?(a) Error(b) Infinitely demands a correct variable for case(c) Returns 0(d) Moves on to the next blockThe question was posed to me in final exam.Enquiry is from Branching topic in division MATLAB Programming of MATLAB

Answer»

Correct choice is (d) Moves on to the next block

The EXPLANATION is: If we don’t give an otherwise block to our SWITCH STRUCTURE, it will not give any error. It will simply continue with the EXECUTION of STATEMENTS after the switch structure.



Discussion

No Comment Found

Related InterviewSolutions