GATE CS 2014, set 3 · Question 59 · Engineering Mathematics · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

Consider the set of all functions f: {0,1,…,2014} → {0,1,…,2014} such that f(f(i)) = i, for all 0 ≤ i ≤ 2014. Consider the following statements:
P. For each such function it must be the case that for every i, f(i) = i.
Q. For each such function it must be the case that for some i, f(i) = i.
R. Each such function must be onto.
Which one of the following is CORRECT?

  1. (A) P, Q and R are true
  2. (B) Only Q and R are true
  3. (C) Only P and Q are true
  4. (D) Only R is true
Answer

Answer (B)

Answer from the official GATE CS 2014 answer key.

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