1.

The if-else structure does not allow ___________(a) Return statement(b) End statement(c) Endif statement(d) Break statementThis question was addressed to me in exam.The question is from Branching in section MATLAB Programming of MATLAB

Answer»

Correct answer is (d) Break statement

To explain I WOULD SAY: The break statement is not ALLOWED within an if-else structure, it is strictly for a LOOP structure. We can use the return statement and the end statement but the break statement will give an error.



Discussion

No Comment Found

Related InterviewSolutions