1.

Before starting a new case, we have to end the previous case using ___________(a) Break statement(b) Continue statement(c) Return statement(d) No statementThe question was asked by my school principal while I was bunking the class.Enquiry is from Branching in division MATLAB Programming of MATLAB

Answer»

Right option is (d) No statement

The best I can explain: MATLAB is not like C. So, we don’t have to GIVE the break statement every time we END a case. We can write the next case and during runtime, the CONTROL will LEAVE the switch-case structure after executing the matched case. We can give the break statement during looping and the return statement during if-else structure.



Discussion

No Comment Found

Related InterviewSolutions