MATLAB Basics set 4

Que.What are the difference between the ‘help’ and the ‘look for’ command?
a. No difference
b. Syntactical difference
c. Help returns the entire set while look for returns specific commands
d. Help returns all the toolbox while look for returns a single toolbox
Que.What will the following set of commands do when they are present in a script file?
stem[y1,y2];
title(‘p’);
print -deps p

a. Plot the discrete graph of y1 and y2
b. There is no stem command in MATLAB
c. Store the graph as a separate file
d. Cannot be determined
Que.The function to close the windows containing graphs generated from MATLAB is __________
a. close all
b. close graphs
c. delete graphs
d. end all
Que.What is not displayed by the Workspace?
a. Time of variable generation
b. Standard deviation of the variable values
c. Class of the variables
d. Nature of the variables
Que.MATLAB allows modelling of different control systems using ___________
a. Simulink
b. Control System Toolbox
c. Not available in MATLAB as of yet
d. ezplot
Que.How to stop the execution of a chain of commands?
a. Press Ctrl +c
b. Cannot be stopped
c. Only usage of debugging mode is possible in MATLAB
d. Quit
Que.What are MEX files in MATLAB?
a. No such thing as MEX files
b. Helps to analyse commands in MATLAB
c. Allows the user to combine C source files with Matlab files
d. Same as MAT files
Que.How can we smoothen the following graph of sin (t) and cos (t) into a circle?
a. reduce the gap between linearly spaced elements of the dependent variable t
b. reduce the gap between elements of the dependent variable t
c. increase the gap between linearly spaced elements of the dependent variable t
d. increase the gap between elements of the dependent variable t
Que.What is the output of the following command?
function s= average(varargin)
celldisp(varargin)
s=sum(varargin)
end
p=average(1:3)

a. Error in sum
b. Error using varargin in function definition
c. Error calling the average function
d. 1 2 3p=6
Que.What is the output of the following command?
function wish= ful(p,varargin)
celldisp(p)
wish=sin(varargin{1})
end
p=ful(1:3)

a. Error in calling the function
b. Error in celldisp
c. Error in the function definiton
d. Error in the wish variable