• Electrical Engineering Reference

# Vectors and Matrices - Matlab MCQs

Vectors and Matrices MCQ : Here you will find MCQ Questions related to "Vectors and Matrices" in Matlab. These Vectors and Matrices MCQ Questions Will help you to improve your Matlab knowledge and will prepare you for various Examinations like Competitive Exams, Placements, Interviews and other Entrance Exmaniations.

Question 1

Vectors and matrices are used to store _________ of values.

A. put
B. get
C. sets
D. None of the above

Question 2

A vector in MATLAB is equivalent to what is called a?

A. multi-dimensional array
B. two-dimensional array
C. one-dimensional array
D. None of the above

Question 3

The row vector can also be created using the?

A. bracket operator
B. colon operator
C. hash operator
D. and operator

Question 4

What is the advantage of MATLAB over other computing software with matrix dimensions?

B. Real time pre-defined memory allocation
C. Matrix operations are easily computed
D. Real time user-defined memory allocation

Question 5

What is the output of the following code?

A. Clears the workspace
B. Clears the matrices
C. Clears the vectors
D. Clear All

Question 6

What is the output of the following code?

A. Syntactical error
B. Logical error
C. 0
D. 1

Question 7

What is the function used to multiply a matrix, A, with itself n times?

A. ntimes(A,n)
B. mtimes(A,n)
C. mtimes(n,A)
D. mtimes(A^n)

Question 8

What is the output of the following code?

A. logical 0
B. logical 1
C. logical -1
D. Error

Question 9

Matrices can also be created from random values using rand and randi function

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say