Que.What is the output of the following code?i=0; while[i<5]
i=i+1;
end
|
a. Syntactical Error |
b. Declaration Error |
c. Output is suppressed |
d. i=5 |
Que.The condition of a while loop cannot be given in ________
|
a. () |
b. [] |
c. {} |
d. <> |
Que.What is the output of the following code?while{i<5}
i=i+1234;
end
|
a. i=1234 |
b. Output is suppressed |
c. Error in converting the cell to logical form |
d. Error in i |
Error in converting the cell to logical form
Que.What is the output of the following code?i=0;while(i<5)
i=i-1;
end
|
a. Error |
b. i=-Inf |
c. i=NaN |
d. Infinite loop |
Que.What is the working of the nargin keyword?
|
a. Returns the number of inputs to a function as an output of the same function |
b. Gets assigned to a value equal to the number of inputs of a function |
c. Gets assigned to a value equal to the number of inputs+1 of a function |
d. Gets assigned to a value equal to the number of inputs-1 function |
Gets assigned to a value equal to the number of inputs of a function
Que.What is the working of the varargout command?
|
a. Returns a 1*N cellular matrix |
b. Returns a 1*N cell array of outputs |
c. Returns a 1*N cell array of inputs given |
d. Doesn’t exist |
Returns a 1*N cell array of outputs
Que.What is the working of the nargout command?
|
a. Gets assigned to a number which is equal to the number of outputs-1 sought from a subfunction |
b. Gets assigned to a number which is equal to the number of outputs-1 sought from a function |
c. Gets assigned to a number which is equal to the number of outputs sought from a function |
d. Gets assigned to a number which is equal to the number of outputs+1 sought from a function |
Gets assigned to a number which is equal to the number of outputs sought from a function
Que.What is the working of the varargin command?
|
a. takes 1*N inputs after the defined inputs in a function |
b. takes N*1 inputs after the defined inputs in a function |
c. takes N*N inputs after the defined inputs in a function |
d. takes 1*1 inputs after the defined inputs in a function |
takes 1*N inputs after the defined inputs in a function
Que.The working of the varargin command is dependent on the nargin command implicitly.
|
a. True |
b. False |
c. May be True or False |
d. Can't say |
Que.The nargout command is dependent on the number of outputs sought.
|
a. True |
b. False |
c. May be True or False |
d. Can't say |