Que.While running a loop in MATLAB, it does not require indentation.
|
a. True |
b. False |
c. May be True or False |
d. Can’t say |
Que.The effective working of the continue keyword in the final iteration is same as the effective working of the break keyword.
|
a. True |
b. False |
c. May be True or False |
d. Can’t say |
Que.The number of iterations run for any loop by MATLAB is always _____________
|
a. a positive integer |
b. a negative integer |
c. a number |
d. a decimal number |
Que.The for loop performs at least ___ iteration/s.
|
a. 1 |
b. not necessarily an iteration |
c. 2 |
d. Error |
not necessarily an iteration
Que.Multiple graphs can be plotted, in the same window, if we use the ___ command in a loop.
|
a. hold on |
b. held on |
c. hold off |
d. not possible |
Que.The number of iterations in the following loop isp=3;for i=(3:4)
p=p+2;
end
|
a. 0 |
b. 1 |
c. 3 |
d. 4 |
Que.What is the output of the following code?q=0;for i=(1:1)
q=q+5;
end
|
a. Output is suppressed |
b. Syntactical error |
c. q=5 |
d. Declaration error |
Que.What is the output of the following code?a=0;for i=[1:1]
q=a-55;
end
|
a. Syntactical Error |
b. Declaration error |
c. Output is suppressed |
d. q=-55 |
Que.What is the nature of the error in the following statement?for i=1:
|
a. Incomplete |
b. Unexpected operator |
c. Invalid keyword |
d. No error |
Que.What is the nature of the error in the following statement?for i=:1
|
a. Incomplete syntax |
b. Unexpected MATLAB operator |
c. No such keyword |
d. No error |
Unexpected MATLAB operator