Question

An urn contains one red ball and one blue ball. At each step, a ball is picked uniformly at random from the urn, and this ball together with another ball of the same color is put back in the urn. The probability that there are equal number of red and blue balls after two steps is

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2026 answer key

Solution

Compute the probability of picking one red ball and one blue ball in either order across the two steps.

Initially the urn has 11 red (RR) and 11 blue (BB) ball (22 balls total). After two steps, the urn has 44 balls, so having an equal number of red and blue balls means 22 red and 22 blue (one RR and one BB picked in the two steps):

  • Step 1 picks RR and Step 2 picks BB: 12×13=16\frac{1}{2} \times \frac{1}{3} = \frac{1}{6}
  • Step 1 picks BB and Step 2 picks RR: 12×13=16\frac{1}{2} \times \frac{1}{3} = \frac{1}{6}

Adding the two mutually exclusive cases gives 16+16=13\frac{1}{6} + \frac{1}{6} = \frac{1}{3}.

Final answer

Option (B)

Common trap

Assuming independent steps with probability 1/21/2 at the second step.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2026 Computer Science and Information Technology - Session 1 (CS1)
Question
11 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.