wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MATLAB

Total questions: 14

Worksheet time: 8mins

Name
Class
Date
1.

How to plot a graph in MATLAB

a)

x : [value ofarray]

y : [value ofarray] plot(x, y)

b)

x : [value ofarray];

y : [value ofarray]; plot(x, y)

c)

x=[value ofarray];

y=[value ofarray]; plot(x, y)

d)

x : [value ofarray]

y : [value ofarray] plot(x, y);

2.

WHAT ARE THE SPECIAL MATRIX IN MATLAB

a)

HILBERT MATRIX

HILBERT INVERSE MATRIX

b)

PASCAL MATRIX

SQUARE MAGIC

c)

TOEPLITZ MATRIX

VANDERMONDE MATRIX

d)

EIGEN VALUE TEST MATRIX

SQUARE MATRIX

3.

SOLVE('4-t^2=0')



(a)  

4.

A= 1 2 3

4 5 6

7 8 9

>>A(:,2)=[]

a)

1 3

4 6

7 0

b)

2 3

5 6

8 9

c)

1 3

4 6

7 9

d)

2 3

5 6

8 0

5.

Command is used to save command window text to file

a)

a) saveas

b)

texttofile

c)

diary

d)

todiary

6.

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

a)

0.4815

b)

0.8516

c)

0.8415

d)

0.4916

7.

OUTPUT OF A = [0 1; 1 0] ; B=2 ; C = A + B

a)

1 2

4 5

b)

1 4

2 5

c)

ERROR

d)

1 2

5 4

8.

What happens if we don’t assign a variable to an expression which evaluates a numerical value?

a)

MATLAB shows error

b)

values are assigned to a variable ans automatically

c)

Depends on the numerical value

d)

Nothing happens

9.

What is the disadvantage of the whos function in MATLAB?

a)

It does not show the name of the variable

b)

It does not show the class of the variable

c)

It does not show the size of the variable

d)

It does not show the values of the variable

10.

Vectors depend upon brackets while scalars don’t

a)

TRUE

b)

FALSE

11.

OUTPUT OF A=[1 2 3..

];

a)

1 2 3

b)

A row vector concatenated with a null matrix

c)

Error

d)

The output is suppressed

12.

Variables need to have same name while being passed from the primary function to the sub-function

a)

TRUE

b)

FALSE

13.

FIND THE ERROR x=-10:1:10; y=-10:2:10; plot(x,y)

a)

Length of x and y should be same

b)

No error

c)

Plot is not available in MATLAB

d)

Plot x,y has no semicolon

14.

What does the echo command do?

a)

It shows the comments present in Script files

b)

It shows the commands and comments in MAT-files

c)

It echoes

d)

It shows the commands and the comments in M-files