Skills101
← All practice quizzes

Quiz: Discrete Probability

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Probability on finite sample spaces, the way discrete maths courses teach it: counting outcomes, complements, conditional probability, independent events, the law of total probability and Bayes' theorem, random variables, expectation and its linearity, and the binomial distribution — every answer computed exactly with Python fractions.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Two fair dice are rolled. What is P(sum = 7)?

  2. Question 2

    Why is P(sum = 7) not 1/11, even though 11 sums are possible?

  3. Question 3

    Three fair coins are tossed. What is P(at least one head)?

  4. Question 4

    What does this print?

    from fractions import Fraction
    from itertools import product
    S = list(product(range(1, 7), repeat=2))
    F = [o for o in S if o[0] == 6]
    print(Fraction(sum(1 for o in F if sum(o) >= 10), len(F)))
    
  5. Question 5

    Events E and F have P(E) = 0.5, P(F) = 0.4 and P(E ∩ F) = 0.2. Which statement is true?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →