Matlab MCQ
Matlab MCQ
MATLAB MCQ-1
1) What is matlab?
A. Programming platform
B. Operating System
C. Mobile Os
D. First Computer
2) Which is the invalid variable name in matlab?
A. x6
B. n_factorial
C. 6x
D. lastValue
3) Which of the following command lists the current variable in Matlab?
A. who
B. which
C. Type
D. PWD
4) Is gravity is a pre-defined variable in matlab?
A. Yes
B. No
5) Which of the following is not a pre-defined variable in Matlab?
A. pi
B. inf
C. i
D. gravity
6) In Matlab, (.*) is used for ___.
A. multiplying two Arrays
B. adding two Arrays
C. Both A and B
D. None of the above
7) What is the use of abs function in Matlab?
A. returns the square root of number.
B. returns magnitude of a number.
C. returns power of number
D. None of these
8) Matlab command clear x y is used for?
A. for clearing only variables x and y
B. for clearing only variables x, y and z
C. for clearing all variables
D. None of the above
9) What is the correct way to add comments in Matlab?
A. use of / symbol
B. use of * symbol
C. use of $ symbol
D. use of % symbol
10) Which of the following calculations in Matlab would return the
value 1?
A. 2/2*1
B. 1+4/5
C. 3^2/3*3
D. None of the above
11) What symbol precedes all comments in Matlab?
A. %
B. $
C. @
D. None of the above
12) Matlab stands for __.
A. Matrix laboratory
B. Matrix line
C. Multi laboratory
D. None of the above
13) Index of an Array in Matlab starts with __.
A. One
B. zero
C. Both A and B
D. All of the above
14) What is the return type of angles function in Matlab?
A. Degrees
B. Radians
C. Radians & Degrees
D. Depends on the argument
15) What will be the output of atan2(-1 1) in Matlab?
A. -π/4
B. -2π/4
C. -π/2
D. All of the above
16) Which class in Matlab is used to store the complex number?
A. Complex
B. Double
C. Character
D. None of the above
17) __ is used to check if two elements are equal in Matlab?
A. !=
B. ==
C. isequal
D. =
18) Which command in Matlab gives list of user-created variables
with dimensions?
A. who -file filename
B. who global
C. who
D. None of the above
19) Which data type is not available in Matlab?
A. ilaplace
B. int16
C. int32
D. All of the above
20) What does the command clc do in Matlab?
A. Clear all text from the Command Window.
B. Shows all text on the Command Window.
C. Both A and B
D. None of the above
21) Which function is used to displays the value of the variable in
Matlab?
A. disp(var_name)
B. dis(var_name)
C. abs(var_name)
D. None of the above
22) Can we have multiple 3D plots in Matlab?
A. Yes
B. No
23) What does 'b" represent in y=mx=b
A. y-intercept
B. macaroni
C. slope
D. nothing
24) The command to delete the 3rd column of matrix A is
A. A(:,3)=0
B. A(:,3)=[ ]
C. A(3,:)=[ ]
D. None of the above
25) The matlab command to find 2^2(two square)is
A. 2*2
B. 2^2
C. 2+2
D. 2/2
26) The fundamental data type of matlab is____
A. Array
B. Vector
C. Matrix
D. Scalar
27) What is the result of this command ( 3 ^ 2 * 3 ^ 2 )
A. 216
B. 81
C. 36
D. 6
28) Which command in MATLAB performs matrix operation on
elements?
A. a’
B. a_4
C. a^3
D. a.*b
29) Satvik wish to get the scalar value of the number of the element in
the vector . What should he prefer ?
A. length()
B. size()
C. Anyone of size() or length()
D. Don't know
30) The ' operator in Matlab is used to get
A. Complement of the Vector
B. Transpose of the Vector
C. Find min of the vector
D. Find max of the vector