Question
i=0;for j=0:2
j=j-1
end
a.
Infinite loop
b.
-1
c.
Output is suppressed
d.
+1
Posted under MATLAB
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.
View solution
Q. In nested loops, the continue statement exits the ____
View solution
Q. In nested loops, the break statement, if present within a nested if the structure, will exit the _______
View solution
Q. In nested loops, the continue statement, if present within an if structure, will exit the ____________
View solution
Q. In nested loops, the continue statement, if present within a nested if structure, will exit the ____________
View solution
Q. While running a loop in MATLAB, it does not require indentation.
View solution
Q. The effective working of the continue keyword in the final iteration is same as the effective working of the break keyword.
View solution
Q. The number of iterations run for any loop by MATLAB is always _____________
View solution
Q. The for loop performs at least ___ iteration/s.
View solution
Q. Multiple graphs can be plotted, in the same window, if we use the ___ command in a loop.
View solution
Q. The condition of a while loop cannot be given in ________
View solution
Q. What is the working of the nargin keyword?
View solution
Q. What is the working of the varargout command?
View solution
Q. What is the working of the nargout command?
View solution
Q. What is the working of the varargin command?
View solution
Q. The working of the varargin command is dependent on the nargin command implicitly.
View solution
Q. The nargout command is dependent on the number of outputs sought.
View solution
Q. The default exponential order for %e and %E is same.
View solution
Q. The disp() command cannot print anything but inputs given within string arguments.
View solution
Q. The for keyword can be used to evaluate expressions using eval().
View solution
Suggested Topics
Are you eager to expand your knowledge beyond MATLAB? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!