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

Quiz: Probability and Bayes · Question 9 of 15

What does this print? (code)

What does this print?

p_a, p_b, p_a_and_b = 0.69, 0.4, 0.36
print(round(p_a + p_b - p_a_and_b, 2))
  1. A.1.09
  2. B.0.73
  3. C.0.33
  4. D.0.36
Answer & explanation

Correct answer: 0.73

The addition rule subtracts the overlap so it isn't counted twice.

Can you get the rest right without peeking?

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

Start the quiz →