Question
for i=1:4
for j=1:4
a=5;a=a+5;
end
end
a.
No output will be shown
b.
a=10;
c.
a=80
d.
Error in the code
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. A break statement will leave the outer loop.
View solution
Q. A for-loop can have multiple index values.
View solution
Q. There can be multiple decision variables for while loop.
View solution
Q. How do we break from an infinite loop without keeping a break statement within the loop?
View solution
Q. How would you plot multiple graphs in MATLAB?
View solution
Q. How do you show the program of an MAT file?
View solution
Q. The help command works only for a pre-defined function in MATLAB.
View solution
Q. What is the equivalent of subplot (1, 1, 1)?
View solution
Q. It is not possible to store graphs as MAT-file.
View solution
Q. The command used to reflect the files from a disk into the workspace is _______
View solution
Q. The format for 5 digit representation along with exponent is __________
View solution
Q. Which operator is used to prevent the printing of insignificant zeros?
View solution
Q. The function to plot a graph with both axes on logarithmic scales is __________
View solution
Q. We cannot plot a discrete and continuous relationship in the same graph.
View solution
Q. How will one escape from printing graphs of variables, whose value gets changed for the program?
View solution
Q. A loop is used to avoid repetitive writing of the same function in the code.
View solution
Q. How will you return to execution from debugging mode?
View solution
Q. The plotting of 3d plots and 2d plots requires separate windows. But the user has entered the hold on command. What is to be done?
View solution
Q. How would you expect to see exponential inter-relation in a logarithmic scale?
View solution
Q. There will be a problem in computing the logarithm of a negative number.
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!