wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MATLAB 6072

Total questions: 43

Worksheet time: 43mins

Name
Class
Date
1.
Which of the following software is primarily used for mathematical computations and simulations?
a)
MATLAB
b)
AutoCAD
c)
Photoshop
d)
Word
2.
Which software among the following is best for control systems simulation?
a)
MATLAB/Simulink
b)
Excel
c)
Notepad
d)
PowerPoint
3.
Which of the following software is primarily used for mathematical computations and simulations?
a)
Octave
b)
AutoCAD
c)
Photoshop
d)
Word
4.
In MATLAB, which command is used to draw graphs or functions?
a)
plot()
b)
graph()
c)
draw()
d)
line()
5.
What is the difference between a script and a function file in MATLAB?
a)
A function file can accept input arguments; a script cannot.
b)
A script file is faster.
c)
A function file runs automatically.
d)
There is no difference.
6.
Which of the following is a logical operator in MATLAB?
a)
&&
b)
+
c)
**
d)
%
7.
Which of these is a valid MATLAB loop statement?
a)
for
b)
goto
c)
repeat
d)
do while
8.
What MATLAB function is used to solve linear equations?
a)
solve
b)
solvepoly
c)
dsolve
d)
polyfit
9.
Which MATLAB function is used for numerical integration?
a)
integrate
b)
int
c)
trapz
d)
derive
10.
Laplace transforms are commonly used to analyze:
a)
Dynamic systems
b)
Databases
c)
Webpages
d)
Graphics
11.
What tool in MATLAB is used to model engineering systems using block diagrams?
a)
Simulink
b)
Editor
c)
Workspace
d)
Profiler
12.
Which of these is NOT a simulation software?
a)
MS Excel
b)
MATLAB
c)
Simulink
d)
LabVIEW
13.
How do you define a subroutine in MATLAB?
a)
Using a function file
b)
Using a comment
c)
With a plot command
d)
With a loop
14.
Which command shows a variable's value in command window?
a)
disp
b)
show
c)
print
d)
display
15.
What is an m-file in MATLAB?
a)
A script or function file
b)
A music file
c)
An image file
d)
A model file
16.
Function m-files start with which keyword?
a)
function
b)
script
c)
define
d)
main
17.
How do you run an m-file?
a)
By typing its name
b)
Clicking it in file explorer
c)
Double clicking from desktop
d)
Opening with Word
18.
Which of these is a correct function file name?
a)
myFunction.m
b)
myFunction.txt
c)
myFunction.doc
d)
myFunction.exe
19.
Which statement ends the execution of a function?
a)
return
b)
exit
c)
endloop
d)
stop
20.
Where are m-files typically saved?
a)
Current directory
b)
Desktop
c)
C:/Temp
d)
USB
21.
Which of the following is an arithmetic operator?
a)
+
b)
&&
c)
||
22.
What does the '==' operator do in MATLAB?
a)
Checks equality
b)
Assigns value
c)
Adds values
d)
Compares size
23.
Which is a logical array operation?
a)
A > B
b)
A = B
c)
A++
d)
A ** B
24.
What does '~' symbol represent in MATLAB?
a)
Logical NOT
b)
Logical AND
c)
Exponent
d)
Transpose
25.
Which of these returns true only if both conditions are true?
a)
&&
b)
||
c)
~
d)
%
26.
Which operation is invalid in logical arrays?
a)
Division (/)
b)
AND (&&)
c)
OR (||)
d)
NOT (~)
27.
What does the while loop do?
a)
Executes as long as condition is true
b)
Runs once only
c)
Repeats indefinitely
d)
Stops program
28.
Which statement ends a loop?
a)
end
b)
stop
c)
break
d)
exit
29.
Which loop is used when number of iterations is known?
a)
for
b)
while
c)
if
d)
switch
30.
Which of these is a nested loop?
a)
A loop inside another loop
b)
Loop that stops
c)
One-time loop
d)
Endless loop
31.
Which MATLAB function is used for symbolic differentiation?
a)
diff()
b)
derive()
c)
int()
d)
det()
32.
What command is used for symbolic integration?
a)
int()
b)
diff()
c)
sum()
d)
prod()
33.
Block diagram modeling is best done using:
a)
Simulink
b)
Editor
c)
Profiler
d)
Workspace
34.
Which tool converts equations to block diagrams?
a)
Simulink
b)
MATLAB command window
c)
Excel
d)
Arduino IDE
35.
Which block in Simulink integrates a signal?
a)
Integrator
b)
Adder
c)
Scope
d)
Gain
36.
What symbol is used for comments in MATLAB?
a)
%
b)
//
c)
#
d)
--
37.
Which of the following is not MATLAB known instruction
a)
cout<<
b)
plot()
c)
solve()
d)
roots()
38.

What is the name of the block referred to by the number 1 in the picture?

a)

Integrator

b)

Derivator

c)

Division by S

d)

Error Function

39.

What is the name of the element referred to by the number "2" in the image?

a)

Transfer Function

b)

Timer

c)

Signal Source

d)

Gain

40.

What will be the result of executing the following instruction in MATLAB?

a)

this will create a vector t with 11 values [0 1 2 3 4 5 6 7 8 9 10]

b)

this will create a vector t with 2 values [0 10]

c)

this will create a variable t with the value 10

d)

this will generate error because t was not declared

41.

what is the value of the variable x in the following MATLAB expression?

x = 1e3

a)

1000

b)

1

c)

3

d)

30

42.

What will be the result of executing the following instructions in MATLAB?

a)

b)

c)

d)

43.

How will MATLAB treat R in the following statement?

a)

b)

c)

d)

R = 4