Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MATLAB 2EEE

Total questions: 118

Worksheet time: 3570secs

Name
Class
Date
1.

Display the value (only) of the variable X

(a)  

2.

Generate 50 logarithmically-spaced points between 102 and 107

(a)  

3.

Create a matrix of 3x3 random numbers, called R

(Uniformly distributed numbers between 0 and 1)

(a)  

4.

Plot a histogram of the variable F with 12 intervals (bins)

(a)  

5.

Create a legend (assuming 3 data-series have already been plotted) with the series called 'Chips', 'Cheese' and 'Gravy', respectively

(a)  

6.

Using the appropriate function, round variable D to 3 significant figures

(a)  

7.

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

8.

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

9.

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



(a)  

10.

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

11.

Command is used to save command window text to file

a)

a) saveas

b)

texttofile

c)

diary

d)

todiary

12.

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

a)

0.4815

b)

0.8516

c)

0.8415

d)

0.4916

13.

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

14.

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

15.

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

16.

Vectors depend upon brackets while scalars don’t

a)

TRUE

b)

FALSE

17.

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

18.

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

a)

TRUE

b)

FALSE

19.

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

20.

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

21.

What is the full form for MATLAB

a)

Matrix laboratory

b)

Math laboratory

c)

Matrices lab

d)

Material Lab

22.

Which of the following is not a tool in  MATLAB

a)

Command Window

b)

Current Directory

c)

Terminal

d)

Workspace

23.

MATLAB does numerical calculations in double precision, which is

a)

4 & 15 digits

b)

15digits

c)

15 e+001

d)

4 digits

24.

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

25.

Which of the following is not a part of MATLAB

a)

Computation

b)

Object Orientation

c)

Visualization

d)

Programming

26.

Is MATLAB a high performing language for technical computing?

a)

True

b)

False

27.

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

28.

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

29.

What is the symbol for division?

a)

\

b)

/

c)

%

d)

^

30.

x = 2;

if x > 2

y = 2*x;

elseif x < 2

y = 3*x;

else

y = 6*x;

end

What is y?

a)

2

b)

4

c)

6

d)

12

31.

vec = [1 6 20 3 2];

[m, n] = max(vec);

What is the value of n?

a)

5

b)

20

c)

3

d)

2

32.

What is the result of

mod(25,6)?

(a)  

33.

x = [1 0 0]; y = [0 1 0];

new = 3*sum(x|y)

What is the value of new?

(a)  

34.

for index = 1:2:10

v = index*3;

end

How many iterations of the loop will

this code perform?

a)

3

b)

5

c)

6

d)

12

35.

sum([1; 5; 3; 3; 7])

a)

5

b)

7

c)

19

d)

5

36.

x = [1 0 0 1 1]; y = [0 0 0 1 1];

x&y

How many zeros in the resulting

vector?

(a)  

37.

a = [2; 5; 3; 6; 4];

What is the result of a(3)?

(a)  

38.

function apples = countapples(people, hours)

How many outputs from the above function?

a)

0

b)

1

c)

2

d)

3

39.

fprintf('pi is %6.4f\n', pi)

How many digits will be displayed

after the decimal point?

(a)  

40.

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

What is in mat(2,1)?

a)

1

b)

2

c)

7

d)

5

41.

If you need to find the cosine of a 30 degree angle you use the code cos(30)

a)

True

b)

False

42.

x = 2;

while x<7

x = x+3;

end

What is stored in x?

(a)  

43.

1+2/2*3+5

(a)  

44.

x = 1:0.5:3.5;

What is the result of length(x)?

a)

3.5

b)

6

c)

7

d)

100

45.

mat = [1 2 3; 4 5 6];

In which row is the 4 located?

(a)  

46.

The workspace is where you type in MATLAB instructions

a)

True

b)

False

47.

What is the default output format for MATLAB?

a)

format bank

b)

format long

c)

format compact

d)

format short

48.

Choose the valid variable name

a)

1Number

b)

oneNum

c)

_one_Number

d)

one-num

49.

Type in the MATLAB code for ln⁡(50)\ln\left(50\right)  

(a)  

50.

All vectors are arrays

a)

True

b)

False

51.

You should use while loops when you know ahead of time how many times the code in the loop should run

a)

True

b)

False

52.

Given a = [6 2 4 1]; and

b = 1×4 logical array

1 0 1 0. What is the result of a(b)?

a)

[2 1]

b)

this does not work

c)

[6]

d)

[6 4]

53.

When a person types information in response to an input statement what is it stored as by default?

a)

a number

b)

a text string

c)

whatever is appropriate

54.
A=[1 2 3 4 5];
a)
A is Row Vector
b)
A is Column Vector
55.
A=[1;2;3;4;5];
a)
A is Row Vector
b)
A is Column Vector
56.
floor(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
57.
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
58.
round(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
59.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
How many elements greater than 14 ?
a)
9
b)
10
c)
11
d)
12
60.
ciel(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
61.
5*2^2*5 =
a)
100
b)
300
c)
500
d)
1000
62.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
How many elements less than 14 ?
a)
1
b)
2
c)
3
d)
4
63.
what is the output of this command
5 < 9  
a)
5
b)
9
c)
1
d)
0
64.
What is the result of this command
12 < 14
a)
1
b)
0
c)
12
d)
14
65.
What is the result of this command
3 ^ 2 * 3 ^ 2
a)
81
b)
36
c)
216
d)
6
66.
What is the result of this command
sin(pi/2) + cosd(0)
a)
2
b)
0
c)
1
d)
infinity
67.
A=[1 2 3 4 5];
a)
A is Row Vector
b)
A is Column Vector
68.
floor(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
69.
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
70.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
How many elements less than 50 ?
a)
7
b)
8
c)
6
d)
9
71.
plot(x,y,'--r')
the output line will be ?
a)
dashed-red
b)
dash dotted-red
c)
dotted-red
d)
solid-red
72.
A=[14  12  15;
        34  25  35;
        94  51  75;
        40  52  55]
How many elements greater than 14 ?
a)
9
b)
10
c)
11
d)
12
73.
5*2^2*5 =
a)
100
b)
300
c)
500
d)
1000
74.

What will print?

a)

4 5 6

b)

6 4 5

c)

nothing

d)

4 6

75.

What will print?

a)

4 5 6

b)

6 5 4

c)

nothing

d)

4 4 4

76.

How many number will print?

a)

5

b)

3

c)

4

d)

0

77.

How many letters will print?

a)

2

b)

1

c)

6

d)

5

78.

Bahasa pemrograman canggih untuk komputasi dibidang keteknikan dalam hal kemampuaanya untuk perhitungan,

visualisasi dan pemrograman komputer.

a)

CD/CAM

b)

MATLAB

c)

LABORATORY

d)

VISUAL BASIC

79.

simbol akar untuk melakukan operasinya yaitu:

a)

sqrt

b)

srtq

c)

qrst

d)

rstq

80.

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

81.

Matlab merupakan singkatan dari...

a)

Mathematic Labour

b)

Mathematic Laboratory

c)

Matrix Laboratory

d)

Matrix Labour

82.

Berikut merupakan contoh penggunaan Matlab, kecuali ...

a)

Matematika dan komputasi

b)

Analisis Psikologi

c)

Analisis numerik dan statistik

d)

Pengembangan aplikasi teknik

83.

Gambar diatas merupakan tampilan dari ...

a)

Command Windows

b)

Command Prompt

c)

Workspace

d)

Current Folder

84.

Bentuk operasi yang benar dalam matlab adalah ...

a)

/ , + , x

b)

/ , - , *

c)

+ , - , :

d)

+ , x , *

85.

Gambar diatas merupakan bagian flowchart yang menyatakan ...

a)

Process

b)

Input/output data

c)

Decision

d)

Terminator

86.

Transpose untuk matrix A adalah ...

a)
b)
c)
d)
87.

Perintah untuk membersihkan layar command windows adalah ...

a)

delete

b)

clear

c)

cls

d)

clc

88.

Perintah untuk menampilkan grafik adalah ...

a)

disp

b)

graph

c)

plot

d)

ploting

89.

This national dish belongs to which country?

a)

Laos

b)

Cambodia

c)

Myanmar

d)

Singapore

90.

This national dish belongs to which country

a)

Philippines

b)

Malaysia

c)

Thailand

d)

Singapore

91.

Which national dish is Lahpet?

a)

Thailand

b)

Myanmar

c)

Malaysia

d)

Indonesia

92.

Which is the national food of the Philippines?

a)

Ambuyat

b)

Lahpet

c)

Adobo

d)

Amok

93.

What is the national food of Brunei Darussalam?

a)

Tom Yam Goong

b)

Ambuyat

c)

Laksa

d)

Gado Gado

94.

What is the national dish of Luang Prabang Salad?

a)

Myanmar

b)

Singapore

c)

Laos

d)

Brunei Darussalam

95.

What is the national dish of Vietnamese Spring Rolls?

a)

Philippines

b)

Thailand

c)

Laos

d)

Vietnam

96.

Which is the national dish of Malaysia?

a)

Nasi Lemak

b)

Luang Prabang Salad

c)

Vietnamese Spring Rolls

d)

Laksa

97.

Which is the national food of Singapore?

a)

Gado Gado

b)

Nasi Lemak

c)

Laksa

d)

Lahpet

98.

Which is the national dish of Indonesia?

a)

Luang Prabang Salad

b)

Gado Gado

c)

Nasi Lemak

d)

Tom Yam Goong

99.

Which flower is the National flower of Laos?

a)

jasmine

b)

frangipani

c)

rose

d)

daffodil

100.

What color do you find on the Lao flag?

a)

blue pink yellow

b)

red and yellow

c)

white blue and red

d)

white and green

101.

What is a true fact about Laos?

a)

Laos is a landlocked country. There is no sea

b)

Laos has no rivers

c)

All Lao people speak Chinese

d)

Laos has no mountains

102.

The money in laos is called....

a)

Lao kip

b)

Baht

c)

Yuan

d)

Ringgit

103.

The population in Laos is about

a)

ten million

b)

five million

c)

seven million

d)

50 million

104.

The most popular local food in laos is...

a)

a hamburger

b)

sticky rice

c)

pizza

d)

durian

105.

The capital city of Laos is...

a)

Paxse

b)

Luang Prabang

c)

Savannakhet

d)

Vientiane

106.

The Lao way of greeting is to say:

a)

Kin kow

b)

Sabaidee

c)

Ola amigo

d)

Ni hao?

107.

Where is Luang Prabang?

a)

south of laos

b)

north of laos

c)

central laos

d)

somewhere over the rainbow

108.

The Mekong river goes through Laos but it starts in...

a)

Vietnam

b)

China

c)

Cambodia

d)

France

109.

 (Tom Yam Goong) เป็นอาหารประจำชาติใด

a)

ไทย

b)

จีน

c)

เวียดนาม

d)

พม่า

110.

อาม็อก (Amok) เป็นอาหารประจำชาติใด

a)

อาหารประจำชาติไทย

b)

อาหารประจำชาติกัมพูชา

c)

อาหารประจำชาติเวียนาม

d)

อาหารประจำชาติลาว

111.

อัมบูยัต (Ambuyat) เป็นอาหารประจำชาติ

a)

อาหารประจำชาติอินโดนีเซีย

b)

อาหารประจำชาติของบรูไน

c)

อาหารประจำชาติกัมพูชา

d)

อาหารประจำชาติมาเลเซีย

112.

หล่าเพ็ด (Lahpet)เป็นอาหารประจำชาติใด

a)

อาหารประจำชาติของลาว

b)

อาหารประจำชาติของมาเลเซีย

c)

อาหารประจำชาติของเมียนมา

d)

อาหารประจำชาติของบรูไน

113.

อโดโบ้ (Adobo)เป็นอาหารประจำชาติใด

a)

อาหารประจำชาติของมาเลเซีย

b)

อาหารประจำชาติของสิงค์โปร

c)

อาหารประจำชาติของฟิลิปปินส์

d)

อาหารประจำชาติของฟินแลน์

114.

ลักซา (Laksa)เป็นอาหารประจำชาติใด

a)

อาหารประจำชาติของประเทศสิงคโปร์

b)

อาหารประจำชาติของประเทศไทย

c)

อาหารประจำชาติของประเทศล้านนา

d)

อาหารประจำชาติของประเทศมาเลเซีย

115.

กาโด กาโด (Gado Gado)เป็นอาหารประจำชาติใด

a)

อาหารประจำชาติของสิงค์โปร

b)

อาหารประจำชาติของโปรแลน

c)

อาหารประจำชาติของอินโดนีเซีย

d)

อาหารประจำชาติของอัฟกานิสฐาน

116.

สลัดหลวงพระบาง (Luang Prabang Salad)เป็นชาติใด

a)

อาหารประจำชาติของลาว

b)

อาหารประจำชาติของไทย

c)

อาหารประจำชาติของพม่า

d)

อาหารประจำชาติของกัมพูชา

117.

นาซิ เลอมัก (Nasi Lemak)เป็นอาหารชาติใด

a)

อาหารประจำชาติของประเทศอินโดเนเซีย

b)

อาหารประจำชาติของประเทศสิงค์โปร

c)

อาหารประจำชาติของประเทศมาเลเซีย

d)

อาหารประจำชาติของประเทศกัมพูชา

118.

(Vietnamese Spring Rolls)เป็นอาหารประจำชาติใด

a)

อาหารประจำชาติไทย

b)

อาหารประจำชาติเวียดนาม

c)

อาหารประจำชาติพม่า

d)

อาหารประจำชาติลาว