Placement AptitudeHardTCS NQT · Infosys

Five different books A, B, C, D, E are arranged on a shelf. Book C must be at one of the two ends, and books A and B must not be side by side. How many arrangements are possible?

  1. A. 48
  2. B. 36
  3. C. 24
  4. D. 12

Correct answer: C. 24

Put C at an end (2 ways). The other four books fill four consecutive places: 4! = 24, of which 2 × 3! = 12 have A and B together. So 2 × 12 = 24.

More Permutations, Combinations and Probability (Placement) questions

Exams that ask this topic