Que.What is the output of the following code?size(‘’)
|
a. 0 |
b. Error |
c. 0 0 |
d. 1 1 |
Que.What is the output of the following code?sprintf('%04.2f',2.9121)
|
a. ‘2.91210000000000000000’ |
b. ‘2.91’ |
c. 2.91 |
d. Error |
Que.What is the output of the following code?sprintf(); disp();
|
a. Error due to disp |
b. Error due to sprintf() |
c. Both gives an error |
d. No output is displayed |
Que.What is the output of the following code?[q]=eval(sprintf('23 '))
|
a. q=23 |
b. Logical Error |
c. Symbolic error |
d. No output |
Que.What is the output of the following code?[q,r]=eval(‘sprintf('23 45')’)
|
a. Unexpected MATLAB expression |
b. q=23,r=45 |
c. q = 23r = 45 |
d. Error due to eval |
Unexpected MATLAB expression
Que.What is the output of the following code?p=eval(cos(0));
|
a. p=1 |
b. p=1 |
c. Syntactical error |
d. The eval command does not exist |
Que.What is the output of the following code?evalc(‘cos(0)’)
|
a. No such command |
b. Error |
c. 1 |
d. ‘ ans=1 ’ |
Que.What is the size of p from the following code?P=evalc(‘ ’)
|
a. 2 bytes |
b. 0 bytes |
c. Error |
d. 6 bytes |
Que.The for keyword can be used to evaluate expressions using eval().
|
a. True |
b. False |
c. May be True or False |
d. Can’t say |
Que.The evalc function is different from the eval command ________
|
a. no difference |
b. from precision of output |
c. from nature of output |
d. from display of output |