Sparse Matrices MCQ : Here you will find MCQ Questions related to "Sparse Matrices" in Matlab. These Sparse 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
Sparse matrices provide efficient storage of ___________data that has a large percentage of zeros.
A. double
B. logical
C. Both A and B
D. None of the above
Question 2
sparse matrices store only the _________ elements and their row indices.
A. zero
B. nonzero
C. Can be zero or non-zero
D. Can not say
Question 3
spalloc function is used for?
A. Allocate space for sparse matrix
B. Extract nonzero diagonals and create sparse band and diagonal matrices
C. Sparse identity matrix
D. Sparse uniformly distributed random matrix
Question 4
Which function is used to Determine whether input is sparse?
A. forsparse
B. insparse
C. getsparse
D. issparse
Question 5
What is the output of the following code?
A. 2
B. 3
C. 4
D. Error
Question 6
What is the output of the following code?
A. A m*n all zero sparse matrix
B. A m*n sparse matrix
C. Error due to syntax
D. Error in the input
Question 7
What is the output of the following code?
A. Returns a sparse matrix with the non-zeros replaced by normally distributed random numbers
B. Returns a sparse matrix with the zeros replaced by ones
C. Returns a sparse matrix with the non-zeros replaced by fractions
D. Returns a sparse matrix with the non-zeros replaced by random numbers
Question 8
The nature of complex input taken by the sparse() command is ______________
A. Only Imaginary part
B. Only positive imaginary part
C. Only negative real part
D. All of the above
Question 9
.50 megabytes can be the space taken up by a sparse matrix?
A. Yes
B. No
C. Can be yes or no
D. Can not say
Question 10
spconvert is used to import from sparse matrix external format?
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say