Skip to content
DenseChip
Learn
PracticeCode labInterview

DenseChip

Navigate

Menu

LearnPracticeCode labInterview

Tools

All toolsSV editorCode repoResume
DenseChip

Practice, courses, and chip-design tools in one focused workspace.

LearnPracticeCode labInterviewToolsLearning paths

© 2026 DenseChip

AboutRoadmapCareersInternshipsFAQContactPrivacyTerms
Skip to lesson

Course contents

  • How to Use This Puzzle Bank
  • SystemVerilog Language Puzzles25
  • Difficulty Guide
  • Full Topic Map
  • Interview-Day Tips
  • Study Route: One Week Before the Interview
  • Study Route: Two Weeks
  • Study Route: Four Weeks (Full Course)4
  • OOP & Testbench Puzzles25
  • Concurrency & Timing Puzzles25
  • Randomization & Constraint Puzzles25
  • SVA Assertion Puzzles25
  • Functional Coverage Puzzles25
  • Logic & Aptitude Puzzles25
    • Classic Brain Teasers
    • Probability Puzzles
      • Biased Coin to Fair Bit (Von Neumann)
      • Expected Tosses Until First HH
      • Two Children, At Least One Boy
      • Monty Hall Switching Odds
      • Birthday Collision Threshold
      • Bayes on Failing Test Alerts
    • Digital Logic Puzzles
    • Debugging Riddles
    • Logic & Aptitude Puzzles: Tricky Q&A
  • Scenario & Debug Puzzles25
  • UVM Testbench Puzzles25
  • Clock, Reset & CDC Puzzles25
  • Bus and Interface Protocol Puzzles25
  • Interview Prep: Puzzle Rounds7
  • DV Puzzle Cheatsheet
Loading lesson

←Probability Puzzles
  1. Topics
  2. DV Interview Puzzles
  3. Logic & Aptitude Puzzles
  4. Probability Puzzles
  5. Two Children, At Least One Boy
On this page

    VLSI DV Interview PuzzlesAll levels

    Two Children, At Least One Boy

    A family has two children. Given that at least one child is a boy, what is P(both are boys)? Assume boy/girl equally likely and independent.

    Puzzle

    Difficulty: Easy · Puzzle 3 of 6 · Topic: Probability Puzzles

    A family has two children. Given that at least one child is a boy, what is P(both are boys)? Assume boy/girl equally likely and independent.

    Hint

    Write conditioned sample space explicitly.

    Step-by-step solution

    Diagram
    1) Unconditioned equiprobable outcomes: BB, BG, GB, GG.
    2) Condition 'at least one boy' removes GG.
    3) Remaining equally likely outcomes: BB, BG, GB.
    4) Only BB satisfies 'both boys'.
    5) Therefore probability is 1/3.

    Answer

    Answer: P(both boys | at least one boy) = 1/3.

    How this was checked

    Checked by running a model of the rule in a Python model. A computational check: enumerating the four equally likely families gives 1/3 for 'at least one boy' and 1/2 for 'older child is a boy'.

    Why candidates get it wrong

    Answering 1/2 by saying 'the other child is a coin flip'. The condition 'at least one boy' keeps BB, BG and GB, so BB is 1 case out of 3, not 1 of 2.

    Interviewer follow-up

    How does answer change if condition is 'older child is a boy'? Model answer: it becomes 1/2. The condition keeps only BB and BG (older is B), so BB is 1 of 2. Naming which child you know about breaks the symmetry between BG and GB.

    Say it out loud

    Let me list the equally likely families: boy-boy, boy-girl, girl-boy and girl-girl. Knowing that at least one is a boy removes girl-girl, which leaves three equally likely cases. Only one of those three is boy-boy, so the answer is one third. The trap is saying one half because the other child looks like a coin flip, but that ignores that boy-girl can happen in two orders.

    Related topics

    • Back to Probability Puzzles

    • Logic & Aptitude Puzzles section

    Previous

    169 / 293

    Next: Monty Hall Switching Odds

    Up next

    Up nextMonty Hall Switching Odds

    Sign in to save progress

    Practice this lessonPrevious lessonReport an error

    See also

    • Biased Coin to Fair Bit (Von Neumann)
    • Birthday Collision Threshold
    • Bayes on Failing Test Alerts