adplus-dvertising
frame-decoration

Question

The number of iterations in the following loop is
p=3;for i=(3:4)
p=p+2;
end

a.

0

b.

1

c.

3

d.

4

Posted under MATLAB

Answer: (d).4

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The number of iterations in the following loop is

Similar Questions

Discover Related MCQs

Q. The condition of a while loop cannot be given in ________

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 __________