🎙 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 12 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), round(p_a_and_b / p_b, 2))
  1. A.1.09 0.36
  2. B.0.73 0.52
  3. C.0.73 0.9
  4. D.0.33 0.9
Answer & explanation

Correct answer: 0.73 0.9

Addition rule gives P(placed or internship); dividing by P(internship) gives P(placed | internship).

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 →