MATLAB Basics set 22

Que.Which command can be used for single step execution in debugging mode?
a. dbstep
b. dbstepin
c. dbstatus
d. dbcont
Que.How do we access a global variable in nested functions?
a. Simply seek the variable from the primary function
b. Make a copy of the global variables from the primary function
c. Declare the variable within the function
d. Declare the variable as global
Que.How does MATLAB help in passing function arguments?
a. By call by value and call by reference
b. Only by call by value
c. Only by call by reference
d. By call by address
Que.Which line is treated as H1 line?
a. Comment line succeeding function definition
b. Comment line preceding function definition
c. Comment line after function
d. All lines before and after function definition
Que.Find the error returned by MATLAB:
syms a x y; a = xˆ2 + yˆ2;    subs(a, [x,y], (2,3,4))

a. There is no subs command in MATLAB
b. The subs command has syntactical error
c. The subs command has extra input arguments
d. The subs command has incorrect arguments
Que.Predict the error, MATLAB will generate, in the following line of code:
 g = inline(‘3x+5*x’, ‘t’)

a. No error
b. Syntactical error
c. Wrong arguments
d. Expecting (,{ or [
Que.What are the functions to see the graph of a continuous and a discrete function?
a. plot() and stem()
b. cont() and disc()
c. plot() and disc()
d. cont() and stem()
Que.Find the error in the following code.
x=-10:1:10; y=-10:2:10; plot(x,y)

a. Plot is not available in MATLAB
b. Syntax of plot is wrong
c. Length of x and y should be same
d. No error
Que.What is the output in the following code?
x=-10:1:10; y=-10:1:10;axis(‘off’); plot(x,y)

a. Error
b. A graph will be shown without axes
c. A graph will be shown with axes
d. 2 graphs will be shown- one with axes and with no axes
Que.If we want to plot matrix arguments, which of the following gets plotted?
a. Column wise inter-relation of two arguments
b. Row wise inter-relation of two arguments
c. Diagonally inter-relation of two arguments
d. The arguments are incomprehensible