Q.1.
What is the output of the following code? A=[0 00 91 2 3]; nnz[A]
Q.2.
What is the output of the following code? A=[1 20 0 0]; spones(A)
Q.3.
The space located for the matrix generated from the spones command is _______
Q.4.
What is the output of the following code? A=[1 24 57 8 9];if( nzmax(A)==nzmax(spones(A) ) disp(‘Yeah !’)
Q.5.
What is the output of the following code? nnz(spconvert([1 24 57 8 9])
Q.6.
What is the output of the following code? nzmax(spconvert([1 24 57 8 9])
Q.7.
A memory for sparse matrix is dedicated by the ______ command.
Q.8.
What is the output of the following command? spalloc(2,7)
Q.9.
The default number of non-zero elements which can be put into the memory allocated by the spalloc command is > 1.
Q.10.
The pattern generated by the spy command is a measure of the number of zeros in the input matrix.