Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Quiz_1 For MATLAB Course Students

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

The result of the MATLAB expression >>9-/3+4^6

a)

4102

b)

4096

c)

4093

d)

All answers are incorrect

2.

The result of the MATLAB expression >>linspace(1,10,5)

a)

1.0000 3.2500 5.5000 7.7500 10.0000

b)

1 2 3 4 5

c)

1 2 3 4 5 6 7 8 9 10

d)

All answers are incorrect

3.

The result of the MATLAB expression>>rem(27,5)

a)

2

b)

5

c)

1

d)

All answers are incorrect

4.

x=[9,16,4,1]; The result of >>length(x)

a)

4

b)

3

c)

16

d)

All answers are incorrect

5.

x=[9,16,4,1];  The result of >>sum(x)

a)

25

b)

16

c)

30

d)

All answers are incorrect

6.

The coordinates of two points are entered into MATLAB  as

>>Pt1_1=[4,2,7];

>>Pt_2=[3,6,1];

the result of>>Pt1-2

a)

4

b)

2

c)

7

d)

MATLAB error message

7.

The following expression is entered into MATLAB

>>B=[2 4 6 8 9; 3 5 7 9 2; 8 6 4 2 7; 7 5 3 1 9;1 4 7 10 3];

The result of >>B(2,3)

a)

6

b)

7

c)

23

d)

All answers are incorrect

8.

The following expression is entered into MATLAB

>>B=[2 4 6 8 9; 3 5 7 9 2; 8 6 4 2 7; 7 5 3 1 9;1 4 7 10 3];

a MATLAB expression to replace the 10 in B with a 9 is 

a)

B(5,4)=9

b)

A(5,4)=9

c)

B(4,5)=9

d)

All answers are incorrect

9.

The following expression is entered into MATLAB

>>B=[2 4 6 8 9; 3 5 7 9 2; 8 6 4 2 7; 7 5 3 1 9;1 4 7 10 3];

The result of >>G(1,2)

a)

MATLAB error message

b)

4

c)

2

d)

All answers are incorrect