MATLAB Programming set 9

Que.What is the output of the following code?
i=0;for j=0:2  
    j=j-1
    end

a. Infinite loop
b. -1
c. Output is suppressed
d. +1
Que.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
Que.What is the final value of j from the following code?
for j=(0:3)  
    j=j+1;
    end

a. Syntactical error
b. Declaration error
c. 3
d. 4
Que.What is the output of the following code?
for j= 4:2   
    j=j+1 
    end

a. an empty vector, j
b. 3
c. 2
d. error
Que.What is the output of the following code?
for i!=1:10 
    p=p+1;

a. Syntactical Error
b. Inf
c. NaN
d. Logical Error
Que.In nested loops, the break statement exits the ____ loop.
a. external
b. last started ongoing
c. not available in MATLAB
d. for
Que.In nested loops, the continue statement exits the ____
a. current iteration
b. loop
c. inner
d. outer
Que.In nested loops, the break statement, if present within a nested if the structure, will exit the _______
a. Ongoing if structure
b. Entire loop
c. Ongoing loop
d. Entire if structure
Que.In nested loops, the continue statement, if present within an if structure, will exit the ____________
a. If structure
b. current iteration
c. entire loop
d. Error
Que.In nested loops, the continue statement, if present within a nested if structure, will exit the ____________
a. If structure
b. nested if structure
c. entire loop
d. present iteration
Que.What is the output of the following code?
for j= 4:2:2   
    j=j+4 
    end

a. Error
b. j=6
c. Error an empty vector, j
d. Syntactical error