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

Quiz: Statistics · Question 6 of 10

What does this print? (code)

What does this print?

import numpy as np
packages = np.array([4, 4, 5, 6, 41])
print(packages.mean(), np.median(packages))
  1. A.5.0 12.0
  2. B.12.0 5.0
  3. C.12.0 6.0
  4. D.5.0 5.0
Answer & explanation

Correct answer: 12.0 5.0

One 41 LPA offer pulls the mean to 12; the median stays at 5.

Can you get the rest right without peeking?

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

Start the quiz →