wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MATLAB

Total questions: 101

Worksheet time: 51mins

Name
Class
Date
1.
A=[1 2 3 4 5];
a)
A is Row Vector
b)
A is Column Vector
2.
A=[1;2;3;4;5];
a)
A is Row Vector
b)
A is Column Vector
3.
floor(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
4.
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
5.
round(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
6.
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
7.
ciel(14.8) =
a)
14.8
b)
15
c)
14
d)
0.8
8.
5*2^2*5 =
a)
100
b)
300
c)
500
d)
1000
9.
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
10.
what is the output of this command
5 < 9  
a)
5
b)
9
c)
1
d)
0
11.

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

12.

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

13.

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



(a)  

14.

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

15.

Command is used to save command window text to file

a)

a) saveas

b)

texttofile

c)

diary

d)

todiary

16.

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

a)

0.4815

b)

0.8516

c)

0.8415

d)

0.4916

17.

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

18.

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

19.

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

20.

Vectors depend upon brackets while scalars don’t

a)

TRUE

b)

FALSE

21.

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

22.

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

a)

TRUE

b)

FALSE

23.

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

24.

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

25.

What is the full form for MATLAB

a)

Matrix laboratory

b)

Math laboratory

c)

Matrices lab

d)

Material Lab

26.

Which of the following is not a tool in  MATLAB

a)

Command Window

b)

Current Directory

c)

Terminal

d)

Workspace

27.

MATLAB does numerical calculations in double precision, which is

a)

4 & 15 digits

b)

15digits

c)

15 e+001

d)

4 digits

28.

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

29.

Which of the following is not a part of MATLAB

a)

Computation

b)

Object Orientation

c)

Visualization

d)

Programming

30.

Is MATLAB a high performing language for technical computing?

a)

True

b)

False

31.

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

32.

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

33.

What will print?

a)

4 5 6

b)

6 4 5

c)

nothing

d)

4 6

34.

What will print?

a)

nothing

b)

4 5 6

c)

6 5 4

d)

4 6

35.

What will print?

a)

4 5 6

b)

6 5 4

c)

nothing

d)

4 4 4

36.

How many number will print?

a)

5

b)

3

c)

4

d)

0

37.

How many numbers will print?

a)

1

b)

none

c)

3

d)

5

38.

How many numbers will print?

a)

3

b)

5

c)

0

d)

4

39.

How many numbers will print?

a)

5

b)

3

c)

0

d)

11

40.

How many numbers will print?

a)

0

b)

5

c)

11

d)

15

41.

How many letters will print?

a)

2

b)

1

c)

6

d)

5

42.

How many numbers will print?

a)

5

b)

10

c)

500

d)

400

43.

The common data type for numeric value(s) in MATLAB?

a)

int

b)

array

c)

char

d)

double

44.

What is the size of an array if Arr = [9 3 5 7 10 0 16]?

a)

7x1

b)

7x7

c)

1x7

d)

7

45.

What is the correct MATLAB command for y = 3(x+2) when x = 2?

a)

>> y = 3*(x+2);

>> x =2;

b)

>> y = 3(x+2);

>> x = 2;

c)

>> x = 2;

>> y = 3*(x+2);

d)

>> x = 2;

>> y = 3(x+2);

46.

Rules for naming variable: All variable name must contain letters, numbers and '_'s only.

a)

True

b)

False

47.

What command clears all variables in workspace browser?

a)

clc

b)

delete

c)

clf

d)

clear

48.

MATLAB format (a)   display a numeric output with fifteen significant numbers after the decimal point.

49.

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

a)

i,j

b)

eps

c)

NaN

d)

ans

50.

What is the size of the array myArr = [ 2,45,30;10,20,30]?

(a)  

51.

Inf is a pre-defined constant that is an output of an undefined mathematical operation, such as the division of 0 by 0?

a)

True

b)

False

52.

What MATLAB operator that is denoted by an apostrophe, swaps the row and the column of an array?

(a)  

53.

(a)   are treated as arrays with only one row and one column.

54.

True or False: The type of data assigned to a variable determines its type when it is created

a)

True

b)

False

55.

What pre-defined constant in MATLAB that is usually generated as a result of a division by zero?

a)

NaN

b)

eps

c)

Inf

d)

i,j

56.

All the statements listed below are the advantages of MATLAB programming except for:

a)

Interpreted Language

b)

Ease of use

c)

Platform independence

d)

Graphical User Interface

57.

The (a)   command searches for an exact function name match.

58.

True of False: The command window appears in the center of the desktop. Users enter command and see responses here.

a)

True

b)

False

c)

Maybe

59.

True or False: An array is a collection of data values organized into rows and colums.

a)

True

b)

False

c)

Maybe

60.

What is the correct MATLAB command for "Plot 

y = x210x +15y\ =\ x^2-10x\ +15  from 0 to 10."

a)

>> x = 0:10;

>> y = x^2 - 10*x + 15;

>> plot(x,y)

b)

>> x = [0:10];

>> y = x^2 - 10*x + 15;

>> plot(x,y)

c)

>> y = x^2 - 10*x + 15;

>> x = 0:10;

>> plot(x,y)

d)

>> y = x^2 - 10*x + 15;

>> x = [0:10];

>> plot(x,y)

61.

Returns the determinant of a square matrix A using…. (a)  

62.

What will print?

a)

4 5 6

b)

6 4 5

c)

nothing

d)

4 6

63.

What is the result of this command

3 ^ 2 * 3 ^ 2

a)

81

b)

36

c)

216

d)

6

64.

What is the result of this command

12 < 14

a)

1

b)

0

c)

12

d)

14

65.

Find the result of division and gives the remainder for divided 2x3+9x2+7x-6 by x+3?

a)

ghhh

b)

nnmmm

c)

nnnmnm

d)

ccvvbb

66.

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

67.

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

68.

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



(a)  

69.

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

70.

Command is used to save command window text to file

a)

a) saveas

b)

texttofile

c)

diary

d)

todiary

71.

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

a)

0.4815

b)

0.8516

c)

0.8415

d)

0.4916

72.

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

73.

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

74.

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

75.

Vectors depend upon brackets while scalars don’t

a)

TRUE

b)

FALSE

76.

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

77.

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

a)

TRUE

b)

FALSE

78.

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

79.

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

80.
Which of these is not a control system?
a)
Home PC
b)
Burglar Alarm
c)
Greenhouse Climate Control
d)
Automated Car Park Barrier
81.
Which of these is not a sensor?
a)
Temperature
b)
Humidity
c)
Light
d)
Web Cam
82.
Which of these is not a control system output device?
a)
Projector
b)
LED
c)
Buzzer
d)
Actuator
83.
A control system is also known as a...
a)
Closed Loop System
b)
Open Loop System
c)
Open Sensor System
d)
Closed Sensor System
84.
Replacing a job done by a human with a control system is known as...
a)
Automation
b)
Robotisation
c)
Computerisation
d)
Feedbacking
85.
Which of these is not a sensor used in a control system?
a)
Light
b)
Pressure
c)
Accelerometer 
d)
Magnetic Stripe Reader
86.
When the output of a system is used to influence input it is known as...
a)
Feedback
b)
Processing
c)
Automation
d)
Measuring
87.
A small computer found inside control systems such as air-conditioning units...
a)
Embedded Microprocessor
b)
Mainframe
c)
Server
d)
PDA
88.
Control system input devices take readings at regular...
a)
Intervals
b)
Points
c)
Stages
d)
Processes
89.
An output that performs an action e.g. a robot arm or a motor is known as a...
a)
Actuator
b)
Processor
c)
Sensor
d)
ADC
90.
Sensors take analogue readings, but computers only understand...
a)
Digital Values
b)
Numbers
c)
Processing
d)
Feedback
91.
To convert analogue values to digital ones, what is required?
a)
ADC
b)
ABC
c)
AC/DC
d)
CAD
92.
When the output of a system is used to influence input it is known as...
a)
Feedback
b)
Processing
c)
Automation
d)
Measuring
93.

If poles of system are lying on the imaginary axis in s-plane, the system will be

a)

Unstable

b)

Marginally stable

c)

Conditionally stable

d)

Unstable

94.
A control system is also known as a...
a)
Closed Loop System
b)
Open Loop System
c)
Open Sensor System
d)
Closed Sensor System
95.
When the output of a system is used to influence input it is known as...
a)
Feedback
b)
Processing
c)
Automation
d)
Measuring
96.

With feedback _______ increases

a)

system stability

b)

sensitivity

c)

gain

d)

effects of disturbing signals

97.

In open loop system____

a)

the control action depends on the size of the system

b)

the control action depends on system variables

c)

the control action depends on the input signal

d)

the control action is independent of the output

98.

Which system is also known as automatic control system?

a)

open loop control system

b)

Closed loop control system

c)

both 1 & 2

d)

None of these

99.

Reference input minus the primary feedback is called ________ signal

a)

Manipulated variable

b)

Error signal

c)

Zero signal

d)

Primary feedback

100.

The roots of the denominator polynomial of the transfer function are called:

a)

ZEROS

b)

POLES

c)

SINGULARS

d)

PLURALS

101.

Transfer function is the ratio of

a)

Laplace transform of output to input

b)

Laplace transform of output to Laplace transform of input.

c)

Laplace transform of output to Laplace transform of input assuming all initial condition zero.

d)

Output to Laplace transform of input.