Spelling Error – 1 MCQ’s

Read Time:1 Minute, 42 Second

This set of MATLAB Multiple Choice Questions & Answers (MCQs) focuses on “Spelling Error – 1″.

1. What is the output of the following code?

N=Input[‘’];

a) Ask for an input from the user
b) Asks for an input from the user which has to be kind of number
c) Input command does not exist
d) Syntactical Error

2. What is the output of the following code?

T=-9:0:9;
STEM(T);

a) Error
b) Plots a ramp function from 0 to 9 units in time
c) Plots a discrete function
d) Logical Error

3. A student is trying to plot multiple plots in the same window. But the following code doesn’t allow him to do that. What is the error?

t=0:1:9;
stem(t);
hld;
stem(t^2);

a) Error in t^2
b) Error in hld
c) No error
d) Error in stem(t)

4. Given below is a part of a very big program. What is the output?advertisement

A=[1 2 3];
mean(a);

a) Error
b) 2
c) Cannot be determined
d) The mean of a

5. What is the output of the following code?

Recpulse(1,9)

a) A column vector of 1’s of length 9
b) A column vector of 1’s of length 10
c) A row vector of 1’s of length 9
d) Error

6. What is the output of the following code?

Mean([1 2 3 4])

a) Error due to the Mean command
b) 2.5
c) 2 and 3
d) Syntactical Error

7. What is the output of the following code?

lengths([1 2 3])

a) 3
b) 1*3
c) Error due to lengths command
d) Cannot be determined

8. What is the output of the following code?

tripulse(3)

a) Error
b) 0
c) 1
d) 2

9. There are a few commands, in MATLAB, which can be used by ignoring the cases.
a) True
b) False

10. What is the output of the following code?

sten([0:1:4],2*ones(1,5)]

a) A discrete step function
b) A discrete pulse function from 0 to 4 units in time
c) A ramp function
d) Error

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 Syntax Error – 2 MCQ’s
Next post Spelling Error – 2 MCQ’s