MATLAB Programming set 17

Que.The dbstop command, for functions stored in the system memory, with a line mentioned will __________
a. pause the evaluation of the function before the mentioned line
b. exit the evaluation of the function before the mentioned line
c. pause the evaluation of the function during the mentioned line
d. pause the evaluation of the function after the mentioned line
Que.The debug commands can be run in
a. functions
b. live scripts
c. command window
d. nowhere
Que.What are the contents of a after the following events?
function p=avg(x)
    n = length(x);
    Command Window: 
    >> x=[1 2 3 4 5]
    >> dbstop in avg at 2 if length(x)>4
    >> a=avg(x)

a. Enters debugging mode
b. Error in the command window
c. Error in the function
d. 5
Que.What are the contents of a after the following events?
function p=avg(x)
    n = length(x);
    Command Window: 
    >> x=[1 2 3 4 5]
    >> dbstop at 6 if length(x)>4
    >> a=avg(x)

a. Error in 2nd line of command window due to line no
b. Error in 2nd line of command window due to line missing function name
c. 5
d. Enters the debugging mode
Que.What are the contents of a after the following events?
Line 1: function p=avg(x)
    Line 2: n = length(x);
    Line 3: n=n+3
    Command Window: 
    >> x=[1 2 3 4 5]
    >> dbstop in avg if length(x)>4
    >> a=avg(x)

a. 8
b. Enters debugging mode after execution of the last line
c. Enters debugging mode at the first line only
d. Enters debugging mode at the 2nd line
Que.What are the contents of a and b after the following events?
Line 1: function p=avg(x)
    Line 2: n = length(x);
    Line 3: n=n+3
    Command Window: 
    >> x=[1 2 3 5]
    >> dbstop in avg if length(x)>4
    >> a=avg(x);
    >> x=[1 2 3 4 5];
    >> b=avg(x);

a. Error in the function
b. a=4,b=5
c. Enters debugging mode at b but a=4
d. Outputs are suppressed
Que.The return command is similar to the dbcont command.
a. True
b. False
c. May be True or False
d. Can’t say