Customizing and Manipulating Graphics – 1 MCQ’s

Read Time:3 Minute, 1 Second

This set of MATLAB Multiple Choice Questions & Answers (MCQs) focuses on “Customizing and Manipulating Graphics – 1″.

1. What is the output of the following code?

t=linspace(0, 2*pi, .1*pi); plot(t,sin(t)); text[2,-2, ‘Ho !’];

a) a graph of sin(t)
b) a graph of inverted sin(t)
c) a graph with Ho ! written
d) error

2. How can we introduce texts in a graph?
a) Use the text command
b) Use the plot command
c) Use the title command
d) Additional texts not possible

3. What is the output of the following code?

t=linspace(0:.1*pi:2*pi);plot(t,sin(t));text(0.5,1,’Ho !’,’colour’,’red’)

a) Error
b) A graph with Ho! written
c) A An inverted sinusoid
d) An inverted sinusoid with Ho written

4. How many objects are created for 24 texts written in the graph?
a) 22
b) 24
c) 21
d) 2

5. What is the output of the following code?

t=linspace(0,.00002*pi,2*pi);plot(t,cos(t));text(0.5,1,'color','blue')

a) Syntactical Error due to text command
b) Input error due to text command
c) Error in linspace command
d) A graph of sinusoid with Ho ! written on it

6.What is the output of the following code?

t=linspace(0:.19*pi:27*pi);plot(t,sin(t));text(0.5,1,’color’,’red’)

a) Error on plot command
b) Error in linspace command
c) Error in text command
d) A graph of a sinusoid with Ho ! written on it.

7. What is the output of the following command?

t=linspace[0,20*pi,2*pi];plot(t,tan(t));text(0.5,1,'Ho!','color','blue')

a) Syntactical error in the text command
b) Error in input of plot command
c) Error in linspace command
d) The graph of tan(t) w.r.t. t with Ho ! writted

8. What is the output of the following code?

t=[-10:1:10];plot(t,t), text(0,0,’Origin’,color,’blue’)

a) A ramp function with Origin written in Blue
b) A ramp function with Origin written in Blue and center left alignment
c) Error
d) A ramp function with Origin

9. What is the output of the following code?

t=linspace(0,.5,2*pi);plot(t,sin(t));text(0.5,1,'\mu Ho!','color','blue')

a) A sinusoid with µHo! written
b) A sinusoid with Ho! written
c) Error in the text command
d) A sinusoid with \mu Ho! written

10. The font style of the input text can be changed by the ____
a) fontname{}
b) fontstyle{}
c) fontname()
d) fontname[]

11. The text given to the graphs can be made bold.
a) True
b) False

12. The default colour of graph generated by the plot command is blue.
a) True
b) False

13. What is the output of the following code?

t=[-10:1:10];plot(t,3*t), text(0,0,’Origin’,color,’blue’,’verticalalignment’,’left’)

a) A ramp function with Origin written in Blue and left alignment
b) A ramp function with Origin written in Blue
c) A ramp function with Origin written in Blue and center left alignment
d) Error

14. What is the output of the following command?

T=[-1:1:90];plot(T,T,’G’)

a) A green ramp function
b) Error
c) A grey ramp function
d) A ramp function

15. What is the output of the above code?

T=[-1:1:90];plot(T,T,’-o’, 'MarkerIndices',1:6:length(T))

a) A green ramp function
b) A ramp function with y value marked at lengths of 5
c) A ramp function with y value marked
d) A ramp function with y value marked at lengths of 6

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 Three-Dimensional Plots MCQ’s
Next post Customizing and Manipulating Graphics – 2 MCQ’s