Skip to content
Official PYQ · 2017

GATE CS 2017 Set 1 QGA-9 — General Aptitude

Explain with AI

Arun, Gulab, Neel and Shweta must choose one shirt each from a pile of four shirts coloured red, pink, blue and white respectively. Arun dislikes the colour red and Shweta dislikes the colour white. Gulab and Neel like all the colours. In how many different ways can they choose the shirts so that no one has a shirt with a colour he or she dislikes?

Choose one option
View worked solution

Answer: D

We need to find the number of ways to distribute four distinct shirts—Red (RR), Pink (PP), Blue (BB), and White (WW)—to four people—Arun (AA), Gulab (GG), Neel (NN), and Shweta (SS)—such that:

  • Arun (AA) does not get Red (RR).
  • Shweta (SS) does not get White (WW).
  • Gulab (GG) and Neel (NN) can get any color.

We can solve this using the Principle of Inclusion-Exclusion (PIE):

Let UU be the set of all possible distributions of the 4 shirts to the 4 people without any restrictions.
Total unrestricted ways ∣U∣=4!=24\text{Total unrestricted ways } |U| = 4! = 24

Let ARA_R be the set of distributions where Arun gets the Red shirt:
If Arun gets RR, the remaining 3 shirts can be distributed among G,N,SG, N, S in 3!=63! = 6 ways.
∣AR∣=6|A_R| = 6

Let SWS_W be the set of distributions where Shweta gets the White shirt:
If Shweta gets WW, the remaining 3 shirts can be distributed among A,G,NA, G, N in 3!=63! = 6 ways.
∣SW∣=6|S_W| = 6

Let AR∩SWA_R \cap S_W be the set of distributions where Arun gets Red and Shweta gets White:
If Arun gets RR and Shweta gets WW, the remaining 2 shirts can be distributed among GG and NN in 2!=22! = 2 ways.
∣AR∩SW∣=2|A_R \cap S_W| = 2

Using the Principle of Inclusion-Exclusion, the number of valid ways is: Valid Ways=∣U∣−(∣AR∣+∣SW∣−∣AR∩SW∣)\text{Valid Ways} = |U| - (|A_R| + |S_W| - |A_R \cap S_W|) Valid Ways=24−(6+6−2)=24−10=14\text{Valid Ways} = 24 - (6 + 6 - 2) = 24 - 10 = 14

Thus, there are 14 different ways to choose the shirts.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore General Aptitude questions