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

Quiz: NumPy · Question 2 of 10

For a 3×3 array of student scores (rows = students), which gives each student's average?

For a 3×3 array of student scores (rows = students), which gives each student's average?

  1. A.scores.mean(axis=0)
  2. B.scores.mean(axis=1)
  3. C.scores.mean()
  4. D.scores.sum(axis=0)
Answer & explanation

Correct answer: scores.mean(axis=1)

axis=1 works across each row.

Can you get the rest right without peeking?

Take the timed Quiz: NumPy quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →