

MCQOPTIONS
Saved Bookmarks
This section includes 14 Mcqs, each offering curated multiple-choice questions to sharpen your Matlab knowledge and support exam preparation. Choose a topic below to get started.
1. |
Choose the function to solve the following problem, symbolically, in the easiest way. |
A. | linsolve(x,y) where x and y are the co-efficient and result matrix respectively |
B. | solve(x,y) where x and y are the co-efficient and result matrix respectively |
C. | sol(x,y) where x and y are the co-efficient and result matrix respectively |
D. | the equations are not solvableView Answer |
Answer» B. solve(x,y) where x and y are the co-efficient and result matrix respectively | |
2. |
What is the difference between a[] and a{}? |
A. | a[] is for empty cell array while a{} is for empty linear array |
B. | a[] is for empty linear array while a{} is for empty cell array |
C. | No difference |
D. | a[] is an empty row vector while a{} is an empty column vector |
Answer» C. No difference | |
3. |
If a./b=(b./a)T, what can be concluded about the matrices a and b? |
A. | a = bT |
B. | a = b-1 |
C. | a = b’ |
D. | nothing special |
Answer» B. a = b-1 | |
4. |
If A and B are two matrices, such that a./b=b.\a, what is concluded? |
A. | Nothing special |
B. | A = AT |
C. | A = A-1 |
D. | A = A |
Answer» B. A = AT | |
5. |
Which operator set is used for left and right division respectively? |
A. | .\ and ./ |
B. | ./ and .\ |
C. | Left division and right division is not available in MATLAB |
D. | / and \ |
Answer» B. ./ and .\ | |
6. |
Which code is used to solve the system of linear equation: A.(x2)= B? |
A. | sqrt([1 4;1 4]/[1 2;1 2]) |
B. | Inf |
C. | sqrt([1 4,1 4]/[1 2,1 2]) |
D. | sqrt[(1 4;1 4]/[1 2;1 2)] View Answer |
Answer» B. Inf | |
7. |
What is the function used to multiply a matrix, A, with itself n times?a) mtimes(A,n)b) ntimes(A,n)c) mtimes(n, |
A. | mtimes(A,n) |
B. | ntimes(A,n) |
C. | mtimes(n,A) |
D. | mtimes(A^n) |
Answer» B. ntimes(A,n) | |
8. |
Which code can be used for changing the dimensions of a matrix as follows? |
A. | reshape([1,2,3;4,5,6],1,6) |
B. | reshape([1,2,3;4,5,6];1;6) |
C. | reshape([1,2,3;4,5,6]:1:6) |
D. | reshape([1,2,3;4,5,6],6,1)View Answer |
Answer» B. reshape([1,2,3;4,5,6];1;6) | |
9. |
Which code will help to concatenate two matrices easily in 2 dimensions? |
A. | cat(A,B) |
B. | cat(2,[1 2;3 4], [1 2; 3 4]) |
C. | cat(2;[1 2,3 4]; [1 2, 3 4]) |
D. | cat([1 2;3 4], [1 2; 3 4])View Answer |
Answer» C. cat(2;[1 2,3 4]; [1 2, 3 4]) | |
10. |
What is the advantage of MATLAB over other computing software with matrix dimensions? |
A. | No advantage |
B. | Real time pre-defined memory allocation |
C. | Real time user-defined memory allocation |
D. | Matrix operations are easily computed |
Answer» D. Matrix operations are easily computed | |
11. |
What is the symbol used to evaluate the transpose of a vector? |
A. | “ ^ ” |
B. | “ * ” |
C. | “ ‘ ” |
D. | “ ~ ” |
Answer» D. “ ~ ” | |
12. |
To see the sub-matrix with aij for 2<=i<=4 and 1<=j<=2 of a matrix a, of order 5*6, which code is used? |
A. | a(2;4,1;2) |
B. | a(2,4:1,2) |
C. | a(2:4,1:2) |
D. | a(2,4;1,2) |
Answer» D. a(2,4;1,2) | |
13. |
How many errors will MATLAB show if the following code entered? |
A. | 2 |
B. | 1 |
C. | No error |
D. | 4View Answer |
Answer» C. No error | |
14. |
Vectors depend upon brackets while scalars don’t. |
A. | True |
B. | False |
Answer» B. False | |