Matrix DSA self paced Quiz

Last Updated : 26 Sep, 2023

Question 1

Two matrices having dimensions ( r1 * c1 ) and ( r2 * c2 ) can be multiplied only if,

Cross

c1 = c2

Tick

c1 = r2

Cross

r1 = c2

Cross

r1 = r2



Question 1-Explanation: 

If the number of columns of the 1st matrix is equal to the number of rows of the 2nd matrix, then only they can be multiplied.

Question 2

What is the dimension of the matrix which is found after multiplying two matrices of dimensions ( r1 * c1 ) and ( r2 * c2 ) ?

Tick

r1 * c2

Cross

c1 * r2

Cross

r1 * r2

Cross

c1 * c2



Question 2-Explanation: 

The dimension of the resulting matrix after multiplying two matrices of dimension ( r1 * c1 ) and ( r2 * c2 ) is equal to ( r1 * c2 ) is r1 * c2.

Question 3

What is the output matrix after multiplying given 2 matrices?

 

Cross
12
34
56
Cross
14
916
2536
Tick

The matrices cannot be multiplied

Cross

None of the above



Question 3-Explanation: 

The given matrices cannot be multiplied because number of columns of the 1st matrix is not equal to the no of rows of the 2nd matrix.

Question 4

What is the output of, 

 

Tick
2228
4964
Cross
2128
4556
Cross

The matrices cannot be multiplied

Cross

None of the above



Question 4-Explanation: 

When the given matrices are multiplied. the output will be,

1*1 + 2*3 + 3*51*2 + 2*4 + 3*6
4*1 + 5*3 + 6*54*2 + 5*4 + 6*6

=>

2228
4964
Question 5

Does the multiplication of 3 matrices of ( 3 x 3 ) follow the associative property? 

Cross

No, they do not follow associativity

Tick

Yes, multiplication of these matrices follow associative property

Cross

It depends on the matrix given.

Cross

There is no such property



Question 5-Explanation: 

Yes, multiplication of 3 matrices of 3x3 dimensions follow associativity i.e,

A(BC) = (AB)C

There are 5 questions to complete.


Share your thoughts in the comments

Similar Reads