🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Sampling and Confidence Intervals: all 15 questions

Quiz: Sampling and Confidence Intervals · Question 12 of 15

What does this print? (code)

What does this print?

import math
s, n = 40, 64
se = s / math.sqrt(n)
print(se, round(100 - 1.96 * se, 1), round(100 + 1.96 * se, 1))
  1. A.0.625 98.8 101.2
  2. B.5.0 95.0 105.0
  3. C.5.0 90.2 109.8
  4. D.40.0 21.6 178.4
Answer & explanation

Correct answer: 5.0 90.2 109.8

SE = 40 / 8 = 5, and the 95% interval is 100 ± 9.8.

Can you get the rest right without peeking?

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

Start the quiz →