Sarkari RiseLogin
NDA 2024 · PYQ · Functions / Combinatorics · easy

Let A = {1, 2, 3, 4, 5} and B = {6, 7}. What is the number of onto functions from A to B?

  1. A.10
  2. B.20
  3. C.30✓ Correct
  4. D.32

Explanation

Total functions from A (5 elements) to B (2 elements) = 2⁵ = 32. Non-onto functions are those mapping all elements to either 6 only or 7 only, which is 2 functions. Onto functions = 32 – 2 = 30.
💡 Practice unlimited NDA PYQs + AI-tracked progress on each topic. Sign up free →

Want more NDA practice?

Free daily 10-Q quiz · adaptive mocks · 4,000+ verified PYQs · AI doubt solver in Hindi + English

Sign up freeMore Functions / Combinatorics practice