June 12, 2021

Input and Output MCQ’s

Read Time:1 Minute, 3 Second

This set of MATLAB Multiple Choice Questions & Answers (MCQs) focuses on “Input and Output”.

1. Which command is used to clear a command window?
a) clear
b) close all
c) clc
d) clear all

2. To determine whether an input is MATLAB keyword, command is?
a) iskeyword
b) key word
c) inputword
d) isvarname

3. Executing in the editor window the following code returns.

a = 1;	sin(a)	a = 2;

a) 0.4815
b) 0.8415
c) 1
d) 0.9093

4. MATLAB stands for?
a) matrix laboratory
b) math library
c) matric library
d) matrix library

5. Which of the following statements shows the result of executing the following line in the editor window?advertisement

size = [1 3]’        ;

size(size)

a) error
b) 1 3
c) 3 1
d) 3 3

6. Command used to display the value of variable x.
a) displayx
b) disp(x)
c) disp x
d) vardisp(‘x’)

7. Executing in the command window the following code returns.

 a = [1:3]’ ;
size(a)

a) error message
b) 1 3
c) 3 1
d) 31

8. Which is the invalid variable name in MATLAB?
a) x6
b) last
c) 6x
d) z

9. To stop the execution of a MATLAB command, used keys?
a) ctrl+c
b) ctrl+s
c) ctrl+b
d) ctrl+enter

10. Command is used to save command window text to file.
a) saveas
b) texttofile
c) diary
d) todiary

Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous post Formal Verification MCQ’s
Next post Arithmetic – 1 MCQ’s