UPSC CSAT 2022 Q76: Counting Passwords with Fixed Positions — Solved
One non-zero digit, one vowel and one consonant from English alphabet (in capital) are to be used in forming passwords, such that each password has to start with a vowel and end with a consonant. How many such passwords can be generated?
- 105
- 525
- 945
- 1050
Answer: (c) 945
Solution
- Fix the length. Each password uses exactly three characters: one non-zero digit, one vowel and one consonant. So every password has 3 positions.
- Place the letters. The password must start with a vowel, so position 1 is the vowel. It must end with a consonant, so position 3 is the consonant.
- Place the digit. Only position 2 is left, so the digit goes there. The pattern is fixed: Vowel – Digit – Consonant. No rearrangement is possible.
-
Count choices for each position. - Vowels in capital English letters: A, E, I, O, U = 5 choices. - Non-zero digits: 1, 2, 3, 4, 5, 6, 7, 8, 9 = 9 choices. (0 is excluded.) - Consonants: 26 − 5 = 21 choices.
-
Apply the multiplication principle. The three choices are independent, so multiply: 5 × 9 × 21 = 45 × 21 = 945.
-
Answer: 945 passwords can be generated.
Option-wise explanation
- a: incorrect — 105 = 5 × 21. It counts only the vowel and consonant choices and leaves out the 9 choices for the digit in the middle.
- b: incorrect — 525 = 5 × 5 × 21. It would need only 5 choices for the digit, for example taking only odd digits. The question allows any non-zero digit, which gives 9 choices.
- c: correct — The pattern is fixed as Vowel – Digit – Consonant, so the count is 5 × 9 × 21 = 945.
- d: incorrect — 1050 = 5 × 10 × 21. This is the trap of counting 0 as a digit; the question says non-zero digit, so there are only 9 choices.
How to eliminate
The digit always has 9 choices, so the final count must be a multiple of 9. Check the digit sum of each option:
- 105 → 1 + 0 + 5 = 6, not divisible by 9.
- 525 → 5 + 2 + 5 = 12, not divisible by 9.
- 945 → 9 + 4 + 5 = 18, divisible by 9.
- 1050 → 1 + 0 + 5 + 0 = 6, not divisible by 9.
Only 945 survives. You can also check it directly: 945 ÷ 9 = 105 = 5 × 21, which is vowels × consonants.
Time: about 20–40 seconds. Attempt this one first; it is a sure mark.
Know more
Fundamental Counting Principle with fixed positions
If a task is done in stages and stage 1 has m choices, stage 2 has n choices, and so on, the total is m × n × … . First use the conditions to lock as many positions as you can. Then multiply the number of choices for each position.
Two checks avoid most slips:
- Read the pool carefully. "Non-zero" removes 0. "Distinct" or "no repetition" reduces the choices at each later position.
- Check whether the arrangement is free. If no position is fixed, multiply by the number of ways to arrange the items (3! for three different types).
| Pool | Size |
|---|---|
| Letters | 26 |
| Vowels | 5 |
| Consonants | 21 |
| Digits (0–9) | 10 |
| Non-zero digits | 9 |
Worked variant 1: A password has one vowel, one consonant and one non-zero digit, in any order. Choices: 5 × 21 × 9 = 945. Arrangements of 3 different types: 3! = 6. Total = 945 × 6 = 5670.
Worked variant 2: A 4-character password starts with a vowel, ends with a consonant, and has two different non-zero digits in the middle. Total = 5 × 9 × 8 × 21 = 7560.
Fixed positions mean you only multiply. Free positions mean you multiply and then also count the arrangements.