MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Matlab
Matlab Assessment
Quiz 1
1
2
3
4
5
6
7
8
9
10
11
Q.1
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’
Q.2
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
Q.3
What is the output of the following code? sprintf(‘%d %d %d’,..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) []
Q.4
What is the output of the following code? disp({})
a) [12]
b) 12
c) [12 ]
d) Error
Q.5
What is the output of the following code? size(‘’)
a) 0
b) Error
c) 0 0
d) 1 1
Q.6
What is the output of the following code? sprintf('%04.2f',2.9121)
a) ‘2.91210000000000000000’
b) ‘2.91’
c) 2.91
d) Error
Q.7
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
Q.8
How can we influence the disp command with format specifiers?
a) Not possible
b) Via the sprintf() command
c) Use format specifiers as string input
d) Give format specifiers as input only
Q.9
What is the output of the following code? disp(“12”)
a) ‘12’
b) “12”
c) 12
d) Error
Q.10
What is the output of the following code? fprintf(“%f”,.123)
a) .123000
b) %f
c) Error
d) .123
Q.11
What is the size of ans variable after the following code? sprintf('23') ans= ’23’
a) 14 bytes
b) 10 bytes
c) Error
d) 1*5
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page