1.

A loop is used to avoid repetitive writing of the same function in the code.(a) True(b) FalseThis question was addressed to me in an online interview.My doubt stems from Fine Tuning topic in section Interacting with MATLAB of MATLAB

Answer»

The correct answer is (a) True

Explanation: The purpose of using loops is to AVOID WRITING the same line multiple times. The same line may be a particular function which computes a certain value. For the SAKE of accuracy, we may run the function multiple times, within a loop.



Discussion

No Comment Found

Related InterviewSolutions