9/29/2020 300+ TOP MATLAB Objective Questions and Answers
HOME Interview Questions MCQs *LAB VIVA CLASS NOTES SEMINAR TOPICS
ONLINE TEST GATE CAT Internship ABOUT US Privacy Policy
Home Âğ MATLAB MCQs Âğ 300+ TOP MATLAB Objective Search
Questions and Answers
Here for
Skill
300+ TOP MATLAB Objective
Search...
Questions and Answers
MATLAB Multiple Choice Questions :-
1. What does Matlab stand for?
a) Math Laboratory
b) Matrix Laboratory
c) Mathworks
d) Nothing
e) none of the above
Ans: b
2. What symbol precedes all comments in Matlab?
a) â
b) %
c) //
d) < e) none of the above Ans: e
3. Which of the following is not a pre-defined variable in
Matlab.
a) pi
b) inf
c) i
d) gravity
e) j
Ans: d
https://engineeringinterviewquestions.com/matlab-objective-questions-and-answers/ 1/7
9/29/2020 300+ TOP MATLAB Objective Questions and Answers
4. This Matlab command clears all data and variables
stored in memory:
a) clc
b) clear
c) delete
d) deallocate
e) none of the above
Ans: b
5. Characters in Matlab are represented in their value in
memory.
a) decimal
b) ASCII
c) hex
d) string
e) none of the above
Ans: b
6. Which is these is not an aspect of a for/while loop:
a) update
b) initialization
c) runner
d) condition
e) all are aspects of loops
Ans: c
7. To better manage memory and prevent unnecessary
memory allocations, Matlab uses:
a) vectors
b) scalars
c) matrix math
d) delayed copy
e) licenses
Ans: d
8. To print a newline in a fprintf statement, you must use
the following escape character:
a) \t
b) \nl
https://engineeringinterviewquestions.com/matlab-objective-questions-and-answers/ 2/7
9/29/2020 300+ TOP MATLAB Objective Questions and Answers
c) \nxt
d) \n
e) none of the above
Ans: d
9. In Matlab, this keyword immediately moves to the next
iteration of the loop:
a) update
b) goto
c) continue
d) break
e) none of the above
Ans: c
10. Which of the following will correctly define x, y, and z as
symbols?
a) sym (x, y, z)
b) syms x y z
c) syms x, y, z
d) sym x, y, z
e) none of the above
Ans: b
MATLAB MCQs
11. Which of these is the way to access the first element in a
vector named v (assuming there is at
least one element in the vector)?
a) v(0)
b) v(1)
c) v
d) v(: , 0)
e) none of the above Ans: b
https://engineeringinterviewquestions.com/matlab-objective-questions-and-answers/ 3/7
9/29/2020 300+ TOP MATLAB Objective Questions and Answers
12. Which of the following is used to see if two elements are
equal in MATLAB?
a) !=
b) ==
c) isequal
d) =
e) none of the above
Ans: b
13. If vector = [1 2 3 4; 11 24 92 100; 345 65 90 1]. What will
the value of a be equal to if this
code is entered into MATLAB >>[a b] = size (vector)?
a) 1 2 3 4
b) 12
c) 1
d) 4
e) 3
Ans: e
14. What is the value of ans that is printed when the
following code is run: isnumeric(32)
a) 1
b) 0
c) 32
d) yes
e) true
Ans: a
15. If I want to save a formatted string to memory, but donât
want to print it out, which
command should I use?
a) fprintf
b)sprintf
c) disp
d) echo
Ans: b
MATLAB Objective type Questions with Answers
https://engineeringinterviewquestions.com/matlab-objective-questions-and-answers/ 4/7
9/29/2020 300+ TOP MATLAB Objective Questions and Answers
32. To add a comment to the mfile, the MATLAB command
is
A)%
B);
C ) comment(â â)
D)&
Ans: a
33. When used in the fprintf command, the %g is used as
the
A ) single character display
B ) fixed point display
C ) string notation display
D ) default number display
Ans: d
34. When used in the fprintf command, the \n is used to
A ) add a space between any two characters
B ) add a line space (enter key)
C ) place a number into the comment
D ) clear the comment
Ans: b
35. To display âQuestion 2â in the command window, the
correct command is
A ) disp(Question 2)
B ) display(âQuestion 2â)
C ) disp(âQuestion 2â)
D ) Question 2
Ans: c
36. The clc command is used to
A ) clear the command window
B ) erase everything in the mfile
C ) clean the desktop
D ) save the existing mfile
Ans: a
https://engineeringinterviewquestions.com/matlab-objective-questions-and-answers/ 5/7
9/29/2020 300+ TOP MATLAB Objective Questions and Answers
37. The num2str command
A ) converts a number to string
B ) converts string to a number
C ) concatenates numbers and strings
D ) concatenates strings
Ans: a
38. The output of the last line is
aa=2
as=num2str(aa)
cat=[âcatâ as]
A ) cat2
B ) cat 2
C ) ??? Undefined function or variable âasâ
D ) cat aa
Ans: a
39. To join one or more strings into a single string is known
as
A ) concatenation
B ) joining
C ) string conversion
D ) string theory
Ans: a
40. The output of
cat=[âcatâ âdogâ]
is
A ) catdog
B ) cat dog
C ) cat&dog
D ) CatDog
Ans: a
MATLAB Questions and Answers pdf Download
https://engineeringinterviewquestions.com/matlab-objective-questions-and-answers/ 6/7
9/29/2020 300+ TOP MATLAB Objective Questions and Answers
LEAVE A REPLY
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
Post Comment
Search...
Copyright 2020 , Engineering Interview Questions.com , Theme by Engineering|| Privacy Policy|| Terms and Conditions||
ABOUT US|| Contact US||
Engineering interview questions,Mcqs,Objective Questions,Class Lecture Notes,Seminor topics,Lab Viva Pdf PPT Doc Book
free download. Most Asked Technical Basic CIVIL | Mechanical | CSE | EEE | ECE | IT | Chemical | Medical MBBS Jobs
Online Quiz Tests for Freshers Experienced.
https://engineeringinterviewquestions.com/matlab-objective-questions-and-answers/ 7/7