InterviewSolution
Saved Bookmarks
| 1. |
The for loop performs at least ___ iteration/s.(a) 1(b) not necessarily an iteration(c) 2(d) ErrorThe question was posed to me in unit test.The above asked question is from More about Loops topic in portion MATLAB Programming of MATLAB |
|
Answer» CORRECT choice is (b) not necessarily an iteration Explanation: Suppose the condition given to check by the for loop has a logical ERROR- the for loop won’t iterate even once. HENCE, it is not NECESSARY that the for loop will run even once. |
|