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