1.

The end statement is given multiple times in _________(a) Multiple elseif(b) Nested if(c) elseif(d) ifThe question was posed to me in an interview.My enquiry is from Branching in portion MATLAB Programming of MATLAB

Answer»

Correct option is (b) NESTED if

To explain: We NEED to END each if structure within a nested if structure EVERY time we GIVE one. The end command should be placed after the end of each if structure or MATLAB will give an error.



Discussion

No Comment Found

Related InterviewSolutions