wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Matlab program 2EEE

Total questions: 112

Worksheet time: 1hrs 11mins

Name
Class
Date
1.

What will print?

a)

4 5 6

b)

6 4 5

c)

nothing

d)

4 6

2.

What will print?

a)

nothing

b)

4 5 6

c)

6 5 4

d)

4 6

3.
What is the solution?
a)
(1, -1)
b)
(-1, 1)
c)
(0, -2)
d)
(0, 1)
4.

What is the full form for MATLAB

a)

Matrix laboratory

b)

Math laboratory

c)

Matrices lab

d)

Material Lab

5.

Which of the following is not a tool in  MATLAB

a)

Command Window

b)

Current Directory

c)

Terminal

d)

Workspace

6.

MATLAB does numerical calculations in double precision, which is

a)

4 & 15 digits

b)

15digits

c)

15 e+001

d)

4 digits

7.

Which of the following ,an expression shouldn't have in MATLAB

a)

manual entry

b)

built entry

c)

built-in functions

d)

user-defined function

8.

Which of the following is not a part of MATLAB

a)

Computation

b)

Object Orientation

c)

Visualization

d)

Programming

9.

Is MATLAB a high performing language for technical computing?

a)

True

b)

False

10.

Find the output :

>>1/(2+3^4 )+4/5*6/7*7/8

a)

0.5506

b)

0.7680

c)

0.8706

d)

0.6680

11.

The two types of prompts in MATLAB

a)

>>>   for full version

 EDU>>> for educational version

b)

  >>  for full version

EDU>> for educational version

c)

<<< start>>>  for full version

EDU<<<stop>>> for educational version

d)

 >>  for full version

   

EDU> for educational version

12.

Perintah untuk menghapus data di workspace yang tidak akan digunakan lagi dalam program adalah ...

a)

delete

b)

clear

c)

cls

d)

clc

13.

>>x=[1 2 3];

>>y=[4 5 6]

>>z=x.*y

a)

z=4 10 19

b)

z=4 11 18

c)

z=3 10 18

d)

z=4 10 18

14.
A=[1 2 3 4 5];
a)
A is Row Vector
b)
A is Column Vector
15.
A=[1;2;3;4;5];
a)
A is Row Vector
b)
A is Column Vector
16.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
What is the dimension of A ?
a)
4x3
b)
3x4
c)
4x4
d)
3x3
17.
5*2^2*5 =
a)
100
b)
300
c)
500
d)
1000
18.
What is the result of this command
3 ^ 2 * 3 ^ 2
a)
81
b)
36
c)
216
d)
6
19.
What is the result of this command
sin(pi/2) + cosd(0)
a)
2
b)
0
c)
1
d)
infinity
20.
plot(x,y,'--r')
the output line will be ?
a)
dashed-red
b)
dash dotted-red
c)
dotted-red
d)
solid-red
21.
plot(x,y,':b')
the output line will be ?
a)
dashed-blue
b)
dotted-black
c)
dotted-blue
d)
solid-blue
22.

Transpose untuk matrix A adalah ...

a)
b)
c)
d)
23.

Perintah untuk membersihkan layar command windows adalah ...

a)

delete

b)

clear

c)

cls

d)

clc

24.

Perintah untuk menghapus data di workspace yang tidak akan digunakan lagi dalam program adalah ...

a)

delete

b)

clear

c)

cls

d)

clc

25.

>>x=[1 2 3];

>>y=[4 5 6]

>>z=x.*y

a)

z=4 10 19

b)

z=4 11 18

c)

z=3 10 18

d)

z=4 10 18

26.

Bentuk operasi yang benar dalam matlab adalah ...

a)

/ , + , x

b)

/ , - , *

c)

+ , - , :

d)

+ , x , *

27.

Matlab merupakan singkatan dari...

a)

Mathematic Labour

b)

Mathematic Laboratory

c)

Matrix Laboratory

d)

Matrix Labour

28.

a)

a)

b)

b)

c)

c)

d)

d)

29.

a)

a)

b)

b)

c)

c)

d)

d)

30.

12 x 12 =

a)

134

b)

148

c)

144

31.

19 + 6

a)

20

b)

25

c)

23

32.

To allocate the following output the command would be

t= [ 1 2 3 4 5 6 7 8 9 ]

a)

t=round([1.2:10])

b)

t=round([0.8:1:10])

c)

t=[1;9]

d)

t=[1:10]

33.

Care va fi valoarea expresiei după execuție 6 + 6 * 6 - 4?

a)

ans = 38

b)

ans = 68

c)

ans = 18

d)

ans = 88

34.

The matlab command to find 2^2(two square)is

a)

2*2

b)

2+2

c)

2^2

d)

2/2

35.
Name the order of this matrix.
a)
6x2
b)
2x6
c)
12
d)
36
36.

What will be the output on executing this program?

a)
b)
c)
d)
37.
floor(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
38.
floor(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
39.
what is the output of this command
5 < 9  
a)
5
b)
9
c)
1
d)
0
40.
What is the result of this command
12 < 14
a)
1
b)
0
c)
12
d)
14
41.
What is the result of this command
sin(pi/2) + cosd(0)
a)
2
b)
0
c)
1
d)
infinity
42.

disp(A) ແມ່ນຄຳສັ່ງຫຍັງ?

a)

ສະແດງລາຍລະອຽດຂອງອາເຣ A

b)

ສະແດງຕົວອັກສອນຕ່າງໆທີ່ເປັນຂອງ A

c)

ສະແດງຕົວອັກສອນ A

d)

ຜິດຫມົດ

43.

ການສະແດງຕົວເລກກຳລັງຄຶ

a)

%c

b)

%e

c)

%f

d)

%r

44.

ການສະແດງຄ່າຈຳນວນຈິງ

a)

%c

b)

%e

c)

%f

d)

%r

45.

ການສະແດງຄ່າຈຳນວນຈິງ

a)

%c

b)

%e

c)

%f

d)

%r

46.

Save filename ແມ່ນຫຍັງ

a)

ເກັບທຸກຄ່າ ຕົວແປຈາກ workspace ໄວ້ໃນ filernme.net

b)

ເກັບທຸກຄ່າ ຕົວແປຈາກ workspace ໄວ້ໃນ filernme.met

c)

ເກັບທຸກຄ່າ ຕົວແປຈາກ workspace ໄວ້ໃນ filernme

d)

ເກັບທຸກຄ່າ ຕົວແປຈາກ workspace ໄວ້ໃນ filernm.net

47.

Load ແມ່ນຫຍັງ

a)

ເກັບທຸກຄ່າ ຕົວແປຈາກ workspace ໄວ້ໃນ filernme.net

b)

ດຶງຄ່າຕົວແປທຸກໆຕົວ ຈາກຟາຍ matlab.nat

c)

ເກັບທຸກຄ່າ ຕົວແປຈາກ workspace ໄວ້ໃນ filernme

d)

ດຶງຄ່າຕົວແປທຸກໆຕົວ ຈາກຟາຍ matlab.mat

48.

Load ແມ່ນຫຍັງ

a)

ເກັບທຸກຄ່າ ຕົວແປຈາກ workspace ໄວ້ໃນ filernme.net

b)

ດຶງຄ່າຕົວແປທຸກໆຕົວ ຈາກຟາຍ matlab.nat

c)

ເກັບທຸກຄ່າ ຕົວແປຈາກ workspace ໄວ້ໃນ filernme

d)

ດຶງຄ່າຕົວແປທຸກໆຕົວ ຈາກຟາຍ matlab.mat

49.

pi ມີຄ່າເທົ່າກັບ

(a)  

50.

abs(x) ແມ່ນຫຍັງ

a)

ຄຳນວນຫາຄ່າສຳບູນ

b)

ຄຳນວນຫາຄ່າສະເລຍ

c)

ຄຳນວນຫາຄ່າຮາກຂັ້ນສອງ

d)

ສະແດງຕົວອັກສອນ

51.

ຄຳສັ່ງທີ່ໃຊ້ໃນການຫາຄ່າໄຕມູມມິຕິມີຫຍັງແດ່

a)

tin(x)

b)

xos(x)

c)

can(x)

d)

ຜິດຫມົດ

52.

ຄຳສັ່ງທີ່ໃຊ້ໃນການຫາຄ່າໂລກະລິດ

a)

log(x)

log10(x)

b)

log(10)

log(x)

c)

log(x)

log10

d)

ຜິດຫມົດ

53.

ຄຳສັ່ງທີ່ໃຊ້ໃນການແຕ້ມເສັ້ນສະແດງ

a)

plot(t,temp);

b)

plot(t,temp);

c)

plet(t,temp);

d)

Plot(t,temp);

54.

ການສ້າງອາເຣທີ່ມີເຄື່ອງໝາຍ Colon(:) ມີຈັກແບບ

a)

2

b)

3

c)

4

d)

5

55.

ການສ້າງອາເຣທີ່ມີເຄື່ອງໝາຍ Colon(:) ມີຈັກແບບ

a)

ຕົວແປ = begin : end

ຕົວແປ = A(row , : )

b)

ຕົວແປ = begin : increment(+)

c)

ຕົວແປ = A( : , )

d)

ຖຶກຫມົດ

56.

zeros(n) ແມ່ນຫຍັງ

a)

ເປັນຄຳສັ່ງທີ່ໃຊ້ການສ້າງມາຕິກສູນທີ່ເປັນຮູບສີ່ແຈສາກ mxn

b)

ເປັນຄຳສັ່ງທີ່ໃຊ້ການສ້າງມາຕິກສູນທີ່ເປັນຮູບຈະຕຸລັດຂະຫນາດ nxn

c)

ເປັນຄຳສັ່ງທີ່ໃຊ້ການສ້າງມາຕິກສູນທີ່ເປັນຮູບສາມແຈ່ສາກ nxn

d)

ຖຶກຫມົດ

57.

ຄຳສັ່ງນີ້ ຈະໃຊ້ມາຕິກທີ່ມີຄ່າເປັນ ໜື່ງທັ້ງໝົດຊື້ງເປັນມາຕິກແບບ Rectangula ຂະໜາດ

a)

ones(m , n)

b)

ones(size(A))

c)

ones(n)

d)

ones(m, n)

58.

ຄຳສັ່ງທີ່ໃຊ້ໃນການຕັ້ງຊື່ຫົວຂໍ້ຂອງເສັ້ນກາບ

a)

title(‘text’)

b)

title(x,y,’text’)

c)

text(x,y,’text’)

d)

gtext(‘text’)

59.

ຊື່ ອາຈານປະຈຳວິຊາ

(a)  

60.

ເບີໂທຕິດຕໍ່ ອາຈານປະຈຳວິຊາ

(a)  

61.

ວິຊາລະບົບຄວບຄຸມມີຈັກໜ່ວຍກິດ

a)

2

b)

3

c)

4

d)

5

62.
What is the result of this command
12 < 14
a)
1
b)
0
c)
12
d)
14
63.
floor(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
64.
ciel(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
65.
what is the output of this command
5 < 9  
a)
5
b)
9
c)
1
d)
0
66.

What is the correct command to find square root of any number, x.

a)

square rt (x)

b)

sqrt(x)

c)

Sqrt x

d)

sqrtx

67.

What will print?

a)

4 5 6

b)

6 4 5

c)

nothing

d)

4 6

68.

What will print?

a)

4 5 6

b)

6 5 4

c)

nothing

d)

4 4 4

69.

How many number will print?

a)

5

b)

3

c)

4

d)

0

70.

How many numbers will print?

a)

0

b)

5

c)

11

d)

15

71.

What command clears all variables in workspace browser?

a)

clc

b)

delete

c)

clf

d)

clear

72.

What pre-defined constant in MATLAB that represents square root of -1?

a)

i,j

b)

eps

c)

NaN

d)

ans

73.

Instrucciones para desplegar los string que estan junto a la estrellita rosa.

a)

plt.ylabel('Month Number')

plt.xlabel('Sales units in number')

b)

plt.title('Month Number')

plt.title('Sales units in number'')

c)

plt.xlabel('Month Number')

plt.ylabel('Sales units in number')

d)

plt.label('Month Number')

plt.label('Sales units in number')

74.

¿Función que si no la añadimos en el programa no muestra la gráfica?

a)

plt.bar(list_m, list_p)

b)

plt.show()

c)

plt.plot(list_m, list_p)

75.

Instrucciones para desplegar los string que esta marcado en la parte superior de la gráfica

a)

plt.xlabel('bathingsoap sales data')

b)

plt.ylabel('bathingsoap sales data')

c)

plt.title('bathingsoap sales data')

d)

plt.legend('bathingsoap sales data')

76.

Create a matrix of 3x3 random numbers, called R

(Uniformly distributed numbers between 0 and 1)

(a)  

77.

What will be the output on executing this program?

a)
b)
c)
d)
78.

What will be the output on executing this program?

a)
b)
c)
d)
79.

A software tool used for data analysis and interfaces.

a)

Robot Operating System

b)

Python

c)

C++

d)

Matlab

80.

The Arduino microcontroller uses a programming language based on _____.

a)

C

b)

Phython

c)

ROS

d)

Matlab

81.
A=[1 2 3 4 5];
a)
A is Row Vector
b)
A is Column Vector
82.
plot(x,y,'--r')
the output line will be ?
a)
dashed-red
b)
dash dotted-red
c)
dotted-red
d)
solid-red
83.

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);

84.

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

85.

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



(a)  

86.

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

87.

Command is used to save command window text to file

a)

a) saveas

b)

texttofile

c)

diary

d)

todiary

88.

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

a)

0.4815

b)

0.8516

c)

0.8415

d)

0.4916

89.

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

90.

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

91.

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

92.

Vectors depend upon brackets while scalars don’t

a)

TRUE

b)

FALSE

93.

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

94.

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

a)

TRUE

b)

FALSE

95.

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

96.

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

97.

Marca el error de la secuencia:

100 , 90 , 80 , 76 , 60 , 50 , 40 , 30 , 20 , 10.

a)

76

b)

60

c)

1

d)

10

98.

Marca el error o los errores

20 , 24 , 28, 30 , 36 , 40 , 42 , 48.

a)

20, 42

b)

30

c)

30, 42

d)

42

99.

Marca el error o los errores.

63 , 67 , 71, 75 , 80 , 83 , 87.

a)

80

b)

80,87

c)

75

d)

83

100.

Marca el error o los errores

2 , 4 , 6 , 8, 10, 13, 14 , 16

a)

16

b)

12

c)

13

d)

2

101.

Marca el error

20 , 40 , 60 , 80, 100, 120, 150 , 160

a)

60

b)

130

c)

120

d)

150

102.

Marca el error.

35, 40, 45, 50, 55, 60, 65, 70, 80

a)

35

b)

80

c)

45

d)

50

103.

Instrucción para abrir y cargar todos los datos en un data frame dt- desde archivo tacos.csv

a)

df = pd.read_csv("tacos.csv")

b)

df = pd.read_csv(tacos.csv)

c)

pd.read_csv("tacos.csv")

d)

pd.read_csv(tacos.csv)

104.

Instrucción para crear la lista con los datos de la columna total_profit

a)

profit=df[ total_profit ]

b)

df['total_profit']

c)

df[ total_profit ]

d)

profit=df[ 'total_profit' ]

105.

Instrucción para mostrar una gráfica de líneas -de las ganancias de cada mes.

list_p = df ['total_profit']

list_m = df['month_number']

a)

plt.plot(list_m, list_p)

b)

plt.plot(list_p, list_m)

c)

plt.plot [ list_m , list_p]

d)

plt.plot[list_p, list_m]

106.

Instrucciones para desplegar los string que estan junto a la estrellita rosa.

a)

plt.ylabel('Month Number')

plt.xlabel('Sales units in number')

b)

plt.title('Month Number')

plt.title('Sales units in number'')

c)

plt.xlabel('Month Number')

plt.ylabel('Sales units in number')

d)

plt.label('Month Number')

plt.label('Sales units in number')

107.

¿Función que si no la añadimos en el programa no muestra la gráfica?

a)

plt.bar(list_m, list_p)

b)

plt.show()

c)

plt.plot(list_m, list_p)

108.

¿Función para dibujar una gráfica de líneas?

a)

plt.bar(list_m, list_p)

b)

plt.line(list_m, list_p)

c)

plt.plot(list_m, list_p)

109.

¿Función para dibujar una gráfica de barras?

a)

plt.bar(monthList, list_p)

b)

plt.line(monthList, list_p)

c)

plt.plot(monthList, list_p)

110.

plt.plot(monthList, faceCremSalesData, label = 'Face cream Sales Data', marker='o',markerfacecolor='b')

¿qué función tiene label = 'Face cream Sales Data'?

a)

string que se mostrará al ejecutar plt.legend( ) para identificar la gráfica

b)

string que se mostrará al ejecutar plt.xlabel( )

c)

string que se mostrará al ejecutar plt.ylabel( )

d)

string que se mostrará al ejecutar plt.title( )

111.

Instrucciones para desplegar los string que esta marcado en la parte superior de la gráfica

a)

plt.xlabel('bathingsoap sales data')

b)

plt.ylabel('bathingsoap sales data')

c)

plt.title('bathingsoap sales data')

d)

plt.legend('bathingsoap sales data')

112.

plt.plot(monthList, faceCremSalesData, label = 'Face cream Sales Data', marker='d',markerfacecolor='b')

¿qué función tiene marker='d'?

a)

dibuja un diamante en cada valor de x

b)

dibuja una estrella en cada valor de x

c)

dibuja un triangulo con la punta hacia abajo en cada valor de x

d)

dibuja una cubo en cada valor de x