🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Matrix Programs in C: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. A matrix A is 2 × 3 and B is 3 × 4. What is the size of A × B?
  2. Q2. What does this print? (code)
  3. Q3. What is the transpose of a matrix?
  4. Q4. To add up one student's marks in marks[3][4] (students in rows), which index stays fixed?
  5. Q5. What does this print? (code)
  6. Q6. When is a square matrix symmetric?
  7. Q7. Why does the product matrix need to be set to 0 before the multiplication loops?
  8. Q8. Roughly how many multiplications does the triple-loop method need for two n × n matrices?
  9. Q9. In-place transpose of a square matrix swaps a[i][j] with a[j][i]. Why must j start at i + 1?
  10. Q10. In the spiral-order program, why are there checks before printing the bottom row and the left column?