Matlab Multiple choice Questions

Matlab Multiple choice Questions | Freshers & Experienced

  • Sharad Jaiswal
  • 12th Feb, 2021

We have listed here the best Matlab MCQ Questions for your basic knowledge of Matlab. This Matlab Test contains 25 multiple Choice 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

Leave A Comment :

Valid name is required.

Valid name is required.

Valid email id is required.

Related MCQ/Quiz

01st
Feb
React JS MCQ
01st
Feb
Angular Js MCQ
01st
Feb
Angular 2 MCQ
01st
Feb
JSON MCQ
01st
Feb
PHP MCQ