🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Matrix Programs in C: all 10 questions

Quiz: Matrix Programs in C · Question 8 of 10

Roughly how many multiplications does the triple-loop method need for two n × n matrices?

Roughly how many multiplications does the triple-loop method need for two n × n matrices?

  1. A.n
  2. B.n²
  3. C.n³
  4. D.2ⁿ
Answer & explanation

Correct answer: n³

There are n² result cells, each needing n multiplications.

Can you get the rest right without peeking?

Take the timed Quiz: Matrix Programs in C quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →