

MCQOPTIONS
Saved Bookmarks
This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Matlab knowledge and support exam preparation. Choose a topic below to get started.
1. |
The non-zero elements in a sparse matrix are shown by the ______ command.$ |
A. | nzeros |
B. | nonzeros |
C. | notzeros |
D. | nozero |
Answer» B. nonzeros | |
2. |
11$ |
A. | 10 |
B. | Error while declaring A |
C. | Error while making sparse matrix |
Answer» B. Error while declaring A | |
3. |
The maximum space allocated for sparse matrices is given by the ____ command. |
A. | maxsparse |
B. | sparsemax |
C. | nzmax |
D. | no such command |
Answer» C. nzmax | |
4. |
The size of the sparse matrix will be ___ the original matrix. |
A. | equal |
B. | greater than |
C. | less than |
D. | not equal to |
Answer» D. not equal to | |
5. |
l = a |
A. | l<sub>memory</sub> > a<sub>memory</sub> |
B. | l<sub>memory</sub> < a<sub>memory</sub> |
C. | l<sub>memory</sub> != a<sub>memory</sub> |
Answer» B. l<sub>memory</sub> < a<sub>memory</sub> | |
6. |
What is the command used to generate a sparse normally generated matrix? |
A. | sparserndn |
B. | sprandom |
C. | sprandn |
D. | no such command |
Answer» B. sprandom | |
7. |
A sparse identity matrix is generated by the ______ command. |
A. | sparseid |
B. | isparse |
C. | speye |
D. | idensparse |
Answer» D. idensparse | |
8. |
To check whether the input matrix is sparse or not, we use the ________ command. |
A. | issparse |
B. | besparse |
C. | ifsparse |
D. | sparse |
Answer» B. besparse | |
9. |
Which of the following can be the space taken up by a sparse matrix? |
A. | .25 megabytes |
B. | 600 megabytes |
C. | .5 GB |
D. | 450 megabytes |
Answer» B. 600 megabytes | |
10. |
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 mentioned |
Answer» B. Only positive imaginary part | |
11. |
What is the attribute of sparse matrices? |
A. | sparse |
B. | double |
C. | vector |
D. | no attribute |
Answer» B. double | |