1.

The condition of a while loop cannot be given in ________(a) ()(b) [](c) {}(d) The question was asked in an interview.My question is from More about Loops topic in section MATLAB Programming of MATLAB

Answer»

The CORRECT answer is (c) {}

The BEST I can explain: The variables of the condition gets converted to a CELL format if the condition is given in {}. THEREAFTER, the variables cannot be converted into a logical form. It can be given WITHIN () and [].



Discussion

No Comment Found

Related InterviewSolutions