adplus-dvertising
frame-decoration

Question

What is the output of the following code?
i=0;while(i<5)
i=i-1;
end

a.

Error

b.

i=-Inf

c.

i=NaN

d.

Infinite loop

Posted under MATLAB

Answer: (d).Infinite loop

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of the following code?

Similar Questions

Discover Related MCQs

Q. What is the working of the nargin keyword?

Q. What is the working of the varargout command?

Q. What is the working of the nargout command?

Q. What is the working of the varargin command?

Q. The working of the varargin command is dependent on the nargin command implicitly.

Q. The nargout command is dependent on the number of outputs sought.

Q. The default exponential order for %e and %E is same.

Q. The disp() command cannot print anything but inputs given within string arguments.

Q. The for keyword can be used to evaluate expressions using eval().

Q. The evalc function is different from the eval command ________

Q. What is common to evalc and the eval commands, apart from the output?

Q. The feval command can evaluate __________

Q. The eval command can evaluate __________

Q. The input to the eval command is given using [].

Q. The input to the evalc command is given using {}.

Q. Which function gets disabled while using evalc()?

Q. How much does the precision change while finding sin(x) using evalc and eval?

Q. Can we save a MATLAB program while in debugging mode?

Q. To enter a value and change the course of working of a function while it is working, we use the __________

Q. To end the debugging mode, we use the __________