# Matlab Multiple choice Questions | Freshers & Experienced

• 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

• 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

Valid name is required.

Valid name is required.

Valid email id is required.

01st
Feb

01st
Feb

01st
Feb

01st
Feb

01st
Feb

01st
Feb