

MCQOPTIONS
Saved Bookmarks
This section includes 15 Mcqs, each offering curated multiple-choice questions to sharpen your Data Structures and Algorithms knowledge and support exam preparation. Choose a topic below to get started.
1. |
Matrix A when multiplied with Matrix C gives the Identity matrix I, what is C? |
A. | Identity matrix |
B. | Inverse of A |
C. | Square of A |
D. | Transpose of A |
Answer» C. Square of A | |
2. |
Which of the following is an advantage of matrices? |
A. | Internal complexity |
B. | Searching through a matrix is complex |
C. | Not space efficient |
D. | Graph Plotting |
Answer» E. | |
3. |
Which of the following don’t use matrices? |
A. | In solving linear equations |
B. | Image processing |
C. | Graph theory |
D. | Sorting numbers |
Answer» E. | |
4. |
If column-major order is used, how is the following matrix stored in memory?a b cd e fg h i |
A. | ihgfedcba |
B. | abcdefghi |
C. | cfibehadg |
D. | adgbehcfi |
Answer» E. | |
5. |
If row-major order is used, how is the following matrix stored in memory?a b cd e fg h i |
A. | ihgfedcba |
B. | abcdefghi |
C. | cfibehadg |
D. | adgbehcfi |
Answer» C. cfibehadg | |
6. |
What does the following piece of code do? |
A. | Normal of a matrix |
B. | Trace of a matrix |
C. | Square of a matrix |
D. | Transpose of a matrixView Answer |
Answer» C. Square of a matrix | |
7. |
A stiffness matrix is to be generated for beam AB as a horizontal flexural member. As per the method adopted for calculation of stiffness matrix, if end A is given translational displacement in a vertically upward direction, the end forces generated at the end ‘B’ are |
A. | No force at end B |
B. | -12EI/L3 vertical force and 6EI/L2moment |
C. | -6EI/L3 vertical force and 2EI/L moment |
D. | -6EI/L2 vertical force and 4EI/L moment |
Answer» C. -6EI/L3 vertical force and 2EI/L moment | |
8. |
For the beam shown below, the stiffness coefficient K22 can be written as |
A. | \(\frac{{6EI}}{{{L^2}}}\) |
B. | \(\frac{{12EI}}{{{L^3}}}\) |
C. | \(\frac{{3EI}}{L}\) |
D. | \(\frac{{EI}}{{6{L^2}}}\) |
Answer» C. \(\frac{{3EI}}{L}\) | |
9. |
For stable structures, one of the important properties of flexibility and stiffness matrices is that the elements on the main diagonal1. must be positive of stiffness matrix2. must be negative of stiffness matrix3. must be positive of flexibility matrix4. must be negative of flexibility matrixThe correct answer is |
A. | 1 and 3 |
B. | 2 and 3 |
C. | 1 and 4 |
D. | 2 and 4 |
Answer» B. 2 and 3 | |
10. |
If the stiffness matrix of the beam element is given as \(\frac{{2EI}}{L}\left[ {\begin{array}{*{20}{c}} 2&{ - 1}\\ { - 1}&2 \end{array}} \right]\)then the flexibility matrix is |
A. | \(\frac{L}{{6EI}}\;\left[ {\begin{array}{*{20}{c}} 2&1\\ 1&2 \end{array}} \right]\) |
B. | \(\frac{L}{{2EI}}\;\left[ {\begin{array}{*{20}{c}} 2&1\\ 1&2 \end{array}} \right]\) |
C. | \(\frac{L}{{3EI}}\;\left[ {\begin{array}{*{20}{c}} 2&1\\ 1&2 \end{array}} \right]\) |
D. | \(\frac{L}{{6EI}}\;\left[ {\begin{array}{*{20}{c}} { - 1}&2\\ 2&{ - 1} \end{array}} \right]\) |
Answer» B. \(\frac{L}{{2EI}}\;\left[ {\begin{array}{*{20}{c}} 2&1\\ 1&2 \end{array}} \right]\) | |
11. |
Displacement Coordinate for a beam are shown in the given figure. The stiffness matrix is given by: |
A. | \(\left( {\begin{array}{*{20}{c}} {3EI}&{EI}\\ {EI}&{2EI} \end{array}} \right)\) |
B. | \(\left( {\begin{array}{*{20}{c}} {3EI}&{ - 0.5EI}\\ { - 0.5EI}&{2EI} \end{array}} \right)\) |
C. | \(\left( {\begin{array}{*{20}{c}} {3EI}&0\\ 0&{2EI} \end{array}} \right)\) |
D. | \(\left( {\begin{array}{*{20}{c}} {3EI}&{0.5EI}\\ {0.5EI}&{2EI} \end{array}} \right)\) |
Answer» E. | |
12. |
In the continuous beam shown in the following figure, the support moment M32 (in kN-m) is |
A. | 93.8 |
B. | 46.9 |
C. | 62.5 |
D. | -93.5 |
E. | 0 |
Answer» F. | |
13. |
How do you allocate a matrix using a single pointer in C?(r and c are the number of rows and columns respectively) |
A. | int *arr = malloc(r * c * sizeof(int)); |
B. | int *arr = (int *)malloc(r * c * sizeof(int)); |
C. | int *arr = (int *)malloc(r + c * sizeof(int)); |
D. | int *arr = (int *)malloc(r * c * sizeof(arr)); |
Answer» C. int *arr = (int *)malloc(r + c * sizeof(int)); | |
14. |
Which of the following property does not hold for matrix multiplication? |
A. | Associative |
B. | Distributive |
C. | Commutative |
D. | None of the mentioned |
Answer» D. None of the mentioned | |
15. |
What is the order of a matrix? |
A. | number of rows X number of columns |
B. | number of columns X number of rows |
C. | number of rows X number of rows |
D. | number of columns X number of columns |
Answer» B. number of columns X number of rows | |