adplus-dvertising
frame-decoration

Question

What is the output of the following code?
a=0;for j=0:2  
j=j+1 end

a.

Syntactical Error

b.

3

c.

2

d.

Keyword Error

Posted under MATLAB

Answer: (d).Keyword Error

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. In nested loops, the break statement exits the ____ loop.

Q. In nested loops, the continue statement exits the ____

Q. In nested loops, the break statement, if present within a nested if the structure, will exit the _______

Q. In nested loops, the continue statement, if present within an if structure, will exit the ____________

Q. In nested loops, the continue statement, if present within a nested if structure, will exit the ____________

Q. While running a loop in MATLAB, it does not require indentation.

Q. The effective working of the continue keyword in the final iteration is same as the effective working of the break keyword.

Q. The number of iterations run for any loop by MATLAB is always _____________

Q. The for loop performs at least ___ iteration/s.

Q. Multiple graphs can be plotted, in the same window, if we use the ___ command in a loop.

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().