Matlab Multiple Choice Questions

Matlab Multiple Choice Questions

  • Sharad Jaiswal
  • 16th Jun, 2021

We have listed here the best Matlab Multiple Choice Questions for your basic knowledge of Matlab. This Matlab Test contains 35+ MCQ Questions. You have to select the right answer to every question.

Matlab Multiple Choice Questions

1) The space located for the matrix generated from the spones command is _______.

  • A. Same as the original matrix
  • B.Same as a sparse matrix
  • C.Double that of the sparse matrix
  • D.Same as an identity matrix

2) A memory for sparse matrix is dedicated by the ______ command.

  • A. spalloc
  • B.sparsealloc
  • C.allocspar
  • D.no such command

3) The default number of non-zero elements which can be put into the memory allocated by the spalloc command is > 1.

  • A. True
  • B.False

4) Which of the following isn’t a pre-defined variable in Matlab?

  • A. inf
  • B.pi
  • C.gravity
  • D.i

5) If the coefficient matrix of a linear system has rank 4, and the augmented matrix has rank 5, then:

  • A. The system has infinitely many solutions
  • B.The system is inconsistent
  • C.The system is homogeneous
  • D.There are fewer variables than equations

6) To print a newline in a fprintf statement, you must use the following escape character:

  • A. nxt
  • B.n
  • C.nl
  • D.t

7) Which of the following characters in Matlab are represented in their value in memory?

  • A. hex
  • B.ASCII
  • C.string
  • D.decimal

8) What does Matlab stand for?

  • A. Matrix laboratory
  • B.Math laboratory Mathwork
  • C.None of the above
  • D.None of the above

9) Which of the following will correctly define x,y and z as symbols?

  • A. Syms xyz
  • B.Syms x,y,z
  • C.Sym(x,y,z)
  • D.None of these.

10) Which of the following isn’t an aspect of a for/while loop?

  • A. Initialization
  • B.condition
  • C.Runner
  • D.None of the above

11) Which one of the following is a legitimate variable names in MATLAB?

  • A. tax-rate
  • B.exam1.1
  • C.sin
  • D.4var

12) Which of the following MATLAB calculations would result the value 1?

  • A. 6/2*3
  • B.1+4/5
  • C.3^2/3*3
  • D.None of the above

13) Which of the following determines the number of elements N of the matrix B?

  • A. N = numel(B)
  • B.N = prod(size(B))
  • C.N = elem(B)
  • D.Both a and c

14) Index of an array in MATLAB start with

  • A. 0
  • B.1
  • C.Depends on the class of array
  • D.Unknown

15) What is output of A = [1 0 2]; b = [3 0 7]; c=a.*b;

  • A. [3 0 14]
  • B.[14 0 3]
  • C.[7 0 3]
  • D.[2 0 21]

16) Keys combition used to stop execution of a command in MATLAB?

  • A. ctrl+b
  • B.ctrl+s
  • C.ctrl+enter
  • D.ctrl+c

17) To conduct numeric integration the command is

  • A. int
  • B.fint
  • C.trapz
  • D.nint

18) What is the output for A[A>6] = 6?

  • A. 7
  • B.6
  • D.Not valid

19) What symbol precedes all comments in Matlab?

  • A. %
  • B.//
  • C.<
  • D.none of the above

20) When used in the fprintf command, the %g is used as the

  • A. string notation display
  • B.default number display
  • C.fixed point display
  • D.single character display

21) The clc command is used to

  • A. clean the desktop
  • B.erase everything in the mfile
  • C.save the existing mfile
  • D.clear the command window

22) The num2str command

  • A. concatenates numbers and strings
  • B.converts string to a number
  • C.concatenates strings
  • D.converts a number to string

23) The output of cat=['cat' 'dog'] is

  • A. cat dog
  • B.cat&dog
  • C.CatDog
  • D.catdog

24) Let x and y be solutions to a system of n homogeneous linear equations. If z = ax + by

  • A. There are at most 2 leading variable
  • B.The solution has n - 2 parameters
  • C.z is a solution only if a = 0 and b = 0
  • D.z is a solution to the system for all a and b

25) Which of the following types of Loops does Matlab Provides?

  • A. For Loop
  • B.While Loop
  • C.Nested Loops
  • D.All of the above

26) What is the return type of angles function in MATLAB?

  • A. Degrees
  • B.Radians
  • C.Radians & Degrees
  • D.Depends on the argument

27) What is the return type of angles function in MATLAB?

  • A. Degrees
  • B.Radians
  • C.Radians & Degrees
  • D.Depends on the argument

28) What is use of abs function in MATLAB?

  • A. Returns power of number
  • B.Returns magnitude of a number
  • C.Returns the square root of number
  • D.None of the above

29) Which of the following command lists the current variable in MATLAB?

  • A. Pwd
  • B.Who
  • C.Date
  • D.Type

30) What does matlab consist of?

  • A. Handle Graphics
  • B.MATLAB Language
  • C.MATLAB working enviroment
  • D.All of the Above

31) What are the features of MATLAB?

  • A. Platform Independent
  • B.Full Graphics Capabilities
  • C.Ease of Use & Good Source of Help
  • D.All of the Above

32) Which of the following is used to see if two elements are equal in MATLAB?

  • A. =
  • B.!=
  • C.==
  • D.isequal

33) Which class is used in matlab to store the complex number?

  • A. Array
  • B.Double
  • C.Symbolic
  • D.Charecter

34) Which of the following matlab command clears all data and variables stored in memory?

  • A. Clear
  • B.Delete
  • C.Deallocate
  • D.None of the above

35) What is the disadvantage of the whos function in MATLAB?

  • A. It does not show the values of the variable
  • B.It does not show the size of the variable
  • C.It does not show the class of the variable
  • D.It does not show the name of the variable

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.