MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Matlab
Matlab Multiple Choice
Quiz 1
1
2
3
4
5
6
7
8
9
10
Q.1
What is the output of the following code? A=[0 00 91 2 3]; nnz[A]
a) 4
b) 5
c) 3
d) Error
Q.2
What is the output of the following code? A=[1 20 0 0]; spones(A)
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
Q.3
The space located for the matrix generated from the spones command is _______
a) Same as a sparse matrix
b) Same as the original matrix
c) Same as an identity matrix
d) Double that of the sparse matrix
Q.4
What is the output of the following code? A=[1 24 57 8 9];if( nzmax(A)==nzmax(spones(A) ) disp(‘Yeah !’)
a) No output
b) Error
c) Yeah !
d) Output suppressed
Q.5
What is the output of the following code? nnz(spconvert([1 24 57 8 9])
a) 3
b) 2
c) 1
d) 6
Q.6
What is the output of the following code? nzmax(spconvert([1 24 57 8 9])
a) 2
b) 3
c) 1
d) Error
Q.7
A memory for sparse matrix is dedicated by the ______ command.
a) spalloc
b) sparsealloc
c) allocspar
d) no such command
Q.8
What is the output of the following command? spalloc(2,7)
a) A 2*3 sparse matrix
b) Memory is allocated for a 2*3 sparse matrix
c) A 3*2 sparse matrix
d) Error
Q.9
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
Q.10
The pattern generated by the spy command is a measure of the number of zeros in the input matrix.
a) True
b) False
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page