← 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))
- A.0.625 98.8 101.2
- B.5.0 95.0 105.0
- C.5.0 90.2 109.8
- 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 →