# Customizing and Manipulating Graphics – 2 MCQ’s

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

1. The fill command cannot take more than ______ inputs.

a) 1

b) 3

c) 2

d) Many

2. What is the output of the following code?

t=[0:.1*pi:pi];plot(t,sin(t),’MarkerIndices’,1:rms(sin(t)):length(sin(t))

a) Error

b) A sinusoid

c) A half wave sinusoid marked at interval of r.m.s. values

d) A green colored sinusoid

3. What is the output of the following code?

w=[0:.1*pi:2*pi];plot(w,sin(w),’ ’)

a) A sinusoid

b) A blank graph

c) Error in plot command

d) A sinusoid with a phase difference

4. What is the output of the following code?

t=0:.000001:pi;x=sin(t);y=cos(t);fill(x,y)

a) An ellipse

b) Error

c) A semi-circle

d) A sinusoid

5. What does the set command do?

a) The operation of the fill command

b) The operation of changing intervals of axes

c) The operation of the plot command

d) The operation of the figure command

6. A semi-log graph cannot be plotted in MATLAB.

a) True

b) False

7. What is the nature of the 2^{nd} vector input in the following command?

set( X,vector_1, vector _2 );

a) a m*n matrix where m=length( vector_1 )

b) a m*n matrix where n=length( vector_1 )

c) a m*n matrix where m>length( vector_1 )

d) a m*n matrix where n>length( vector_1 )

8. What is the output of the following code?

t=[-2:1:2];plot(t,t);ax=gca;ax.Xscale=’Logarithmic’;

a) Error

b) Syntactical error

c) A semi-log graph of a ramp function

d) A ramp function

9. Using the set command for axes can be replaced by setting the ___ to a variable.

a) gca

b) gcf

c) gco

d) not possible

10. What is the output of the following code?

t=[-2:1:2];plot(t,exp(t));ax=gca;ax.Yscale=’Log’;

a) Error

b) An exponential graph

c) A logarithmic function

d) A ramp function

11. What is the output of the following code?

plot([-3:1:3],[-3:1:3]);cla;

a) Error

b) A ramp function

c) A graph of a ramp function with no axes

d) A window having two axes

12. How many objects are created for 24 texts written in the graph?

a) 22

b) 24

c) 21

d) 2

## Average Rating