Placement AptitudeHardTCS NQT · Infosys
How many strings of length 6 over the letters A, B, C have no two neighbouring letters equal?
- A. 96
- B. 729
- C. 120
- D. 48
Correct answer: A. 96
The first letter has 3 choices and every later letter must differ from the one before it: 2 choices each. 3 × 2⁵ = 96.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- A bag has 2 red balls and some blue balls. When two balls are drawn together at random, the probability that both are red is 1/15. How…
- 40% of a firm's staff are engineers. Half of the engineers and a quarter of the others attended a workshop. A person who attended is…
- A 4-digit number (1000 to 9999) is chosen at random. What is the probability that its digits are strictly increasing from left to right?
- Four friends each pick, independently and at random, one of 4 different restaurants. What is the probability that exactly two restaurants…
- In how many ways can the letters of DAUGHTER be arranged so that the vowels (A, U, E) always come together?
- In how many ways can the letters of DAUGHTER be arranged so that no two vowels (A, U, E) are next to each other?