# Matlab Multiple Choice Questions

• 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

• A. True
• B.False

• 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

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

• 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

• 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

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

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

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

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

• 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

• 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
• D.Depends on the argument

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

• A. 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

• 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

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

• 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

Valid name is required.

Valid name is required.

Valid email id is required.

01st
Nov

01st
Nov

01st
Nov

01st
Nov

01st
Nov

01st
Nov