MATLAB Programming set 12

Que.What is the output of the following command?
function eclairs= honey(p,q)
    narginchk(2,5)
    disp(‘Yo, G!’)
    c=q+p;
    end
    honey(1)

a. Syntactical Error
b. Yo, G!
c. input error
d. 2 3 4 5
Que.What is the output of the following command?
function p= marie(p,q)
    narginchk[2,3]
    disp(‘Yo, G!’)
    a=p+q
    end
    marie(1)

a. Syntactical Error in narginchk
b. Yo, G!a=1
c. Input error in narginchk
d. 2 3 4 5…Inf
Que.What is the output of the following command?
function ca= ola(p,q)
    narginchk(0,1)
    disp(‘Stick!’)
    o=p-q;
    end
    ola(1,2)

a. o=-1
b. o=1
c. Error in inputs
d. Syntactical error while calling function
Que.What is the output of the following code?
error(“Lola !”);

a. Output is suppressed
b. Syntactical error
c. No such function exists
d. It displays Lola !
Que.What is the output of the following code?
error(‘Dan !’);

a. No output, it gets suppressed
b. The word Dan ! is displayed
c. No such function
d. Syntactical Error
Que.What is the output of the following code?
error(‘ No !!!!’)

a. No !!!!
b. No !!!! (in Red color)
c. Logical Error
d. Symbolic error
Que.What is the output of the following code?
error(‘Lola ! \n Dan !’);

a. Output is suppressed
b. Symbolic error in \n
c. Lola !Dan !
d. Lola ! \n Dan !
Que.What is the output of the following code?
MException('Lola!', '%d * %d= Why?', Inf,Inf)

a. Error due to identifier
b. Error due to Inf
c. MException with properties:identifier: ‘Lola!’message: ‘Inf * Inf= Why?’cause: {}stack: [0×1 struct]
d. No such command
Que.What is the output of the following code?
MException('MATLAB:test', '%d * %d= Why?', Inf,Inf)

a. MException with properties:identifier: ‘MATLAB:test’message: ‘Inf * Inf= Why?’cause: {}stack: [0×1 struct]
b. MException with properties:identifier: “MATLAB:test”message: ‘Inf * Inf= Why?’cause: []stack: [0×1 struct]
c. MException with properties:identifier: ”MATLAB:test’message: ‘%d * %d= Why?’cause: {}stack: [0×1 struct]
d. Error
Que.What is the output of the following code?
disp(‘%d’,Inf);

a. Inf
b. No such command
c. Error due to too many arguments
d. Syntactical error