Placement AptitudeHardTCS NQT · Infosys
How many 3-digit numbers (100 to 999) have exactly two equal digits (the third digit different)?
- A. 252
- B. 270
- C. 243
- D. 216
Correct answer: C. 243
Complement: all 900 numbers − all digits different (9 × 9 × 8 = 648) − all three equal (9) = 243. Directly: the patterns AAB, ABA and BAA each give 9 × 9 = 81 numbers, and 3 × 81 = 243.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- All the different 4-digit numbers that can be formed by arranging the digits 1, 2, 2, 3 are written down. What is their sum?
- How many ordered triples (x, y, z) of positive integers satisfy x × y × z = 30?
- How many ordered pairs (x, y) of positive integers satisfy 1/x + 1/y = 1/6?
- In how many ways can two different numbers be chosen from 1, 2, …, 100 so that their sum is divisible by 5?
- A leap year is chosen at random. What is the probability that it has 53 Sundays?
- A number is chosen at random from 1 to 100. What is the probability that it is a perfect square or a perfect cube?