

InterviewSolution
Saved Bookmarks
1. |
The number of iterations run for any loop by MATLAB is always _____________(a) a positive integer(b) a negative integer(c) a number(d) a decimal numberThis question was posed to me by my school teacher while I was bunking the class.The query is from More about Loops in chapter MATLAB Programming of MATLAB |
Answer» CORRECT answer is (C) a NUMBER Explanation: It is not necessary that a loop will do at least one ITERATION. If the condition of a while loop is not satisfied before the first iteration, it won’t iterate even once and the number of iterations is 0. |
|