GATE CS 2012 · Question 37 · Engineering Mathematics · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

How many onto (or surjective) functions are there from an n-element (n ≥ 2) set to a 2-element set?

  1. (A) 2ⁿ
  2. (B) 2ⁿ - 1
  3. (C) 2ⁿ - 2
  4. (D) 2(2ⁿ - 2)
Answer

Answer (C)

Answer from the official GATE CS 2012 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes