TomoLink
TCS NQT GuideTCS NQT Coding Capability & AlgorithmsMatrix Operations (Transposition, Rotation, Multiplication)

Matrix Operations (Transposition, Rotation, Multiplication)

Learn core concepts, essential formulas, and attempt practice questions designed on the latest TCS NQT testing patterns.

Key Concepts & Formulas

  • 1Transposition: Swapping row indices with column indices (matrix[i][j] = matrix[j][i]).
  • 2Multiplication: Matrix A (m x n) and B (n x p) yield product C (m x p).

TCS NQT Style Practice Questions

Practice Question 1

What is the size of transposed matrix of a 3x2 matrix?

A) 2x3
B) 3x2
C) 3x3
D) 2x2

Correct Answer: A) 2x3

Step-by-step Solution: Transposition swaps rows and columns, turning a 3x2 matrix into a 2x3 matrix.

Practice Question 2

What condition must be met to multiply two matrices A and B?

A) Columns of A must equal rows of B
B) Rows of A must equal columns of B
C) Sizes must be equal
D) Must be square matrices

Correct Answer: A) Columns of A must equal rows of B

Step-by-step Solution: To compute dot products of rows and columns, A's column count must equal B's row count.

Study Pro-Tip

Matrix rotations (e.g. 90 degrees) can be solved by combining transposition and row reversal.