1.

We cannot use a ____ statement if the if-else structure is not part of a loop.(a) continue(b) if-else(c) clc(d) plot()This question was posed to me in an internship interview.The doubt is from Branching topic in section MATLAB Programming of MATLAB

Answer» RIGHT OPTION is (a) CONTINUE

For explanation: If the if-else structure is not within any loop, we cannot use the continue statement. The continue statement is only ALLOWED for ‘for’ and ‘while’ loop.


Discussion

No Comment Found

Related InterviewSolutions