MATLAB Programming set 13

Que.What is the output of the following code?
sprintf(‘%d’,5)

a. 5
b. ‘5’
c. Syntactical error
d. Logical error
Que.What is the output of the following code?
disp(‘ ‘,lola!’ 2’)

a. ‘lola!’ 2
b. ‘ ‘lola!’ 2’
c. ‘lola! 2’
d. Error due to multiple arguments
Que.How many arguments are given to the above command?
disp(‘ ‘lola!’ 2’)

a. Cannot be defined
b. 2
c. 1
d. 0
Que.What is the output of the following command?
sscanf(‘.1 .2 .3’,%d)

a. []
b. .1.2.3
c. 123
d. Error
Que.The default exponential order for %e and %E is same.
a. True
b. False
c. May be True or False
d. Can’t say
Que.The disp() command cannot print anything but inputs given within string arguments.
a. True
b. False
c. May be True or False
d. Can’t say
Que.What is the output of the following code?
sprint(‘%i’,91293)

a. 91293
b. Syntactical Error
c. The format specifier does not exist
d. ‘91293’
Que.What is the output of the following code?
sprintf(‘%E’,912)

a. 9.120000E+02
b. 9.120E+02
c. 9.1200E+02
d. 9.12000E+02
Que.What is the output of the following code?
sprintf(‘%d %d %d’,.1, .2.3)

a. Error
b. ‘1.000000e-01 2.000000e-01 3.000000e-01’
c. 1.000000e-01 2.000000e-01 3.000000e-01
d. []
Que.What is the output of the following code?
disp({12 })

a. [12]
b. 12
c. [12 ]
d. Error