GateAI
Sets, Relations and Functions

GATE CSE 2021 Set 2 · Q11

MSQ1 markEasy

Time

Consider the following sets, where n≥2n \ge 2: S1S_1: Set of all n×nn \times n matrices with entries from the set {a,b,c}\{a, b, c\} S2S_2: Set of all functions from the set {0,1,2,…,n2−1}\{0, 1, 2, \dots, n^2 - 1\} to the set {0,1,2}\{0, 1, 2\} Which of the following choice(s) is/are correct?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: B) There exists a surjection from S1 to S2.; C) There exists a bijection from S1 to S2.

Sets, Relations and Functions

Let us determine the cardinalities of both sets S1S_1 and S2S_2:

  1. Cardinality of S1S_1: An n×nn \times n matrix contains n2n^2 entries. Each entry can take one of 33 possible values from the set {a,b,c}\{a, b, c\}.

    ∣S1∣=3n2|S_1| = 3^{n^2}
  2. Cardinality of S2S_2: The domain {0,1,2,…,n2−1}\{0, 1, 2, \dots, n^2 - 1\} has n2n^2 elements and the codomain {0,1,2}\{0, 1, 2\} has 33 elements. The number of functions from a domain of size n2n^2 to a codomain of size 33 is:

    ∣S2∣=3n2|S_2| = 3^{n^2}

Since ∣S1∣=∣S2∣=3n2|S_1| = |S_2| = 3^{n^2} and both sets are finite, there exists a bijection (one-to-one and onto mapping) between S1S_1 and S2S_2.

Because a bijection is both surjective and injective:

  • (B) is correct: A surjection exists.

  • (C) is correct: A bijection exists.

  • (A) and (D) are incorrect because a bijection and an injection both exist.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Sets, Relations and Functions previous year question is Q11 of the GATE CSE 2021 Set 2 paper. Find more GATE CSE PYQs on Sets, Relations and Functions in Engineering Mathematics, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Sets, Relations and Functions PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Sets, Relations and Functions in GATE CSE

Sets, Relations and Functions has 5 GATE CSE PYQs across 5 papers from 2014 to 2024. This is the only 1-mark MSQ among them, and it is the only one in GATE CSE 2021 Set 2.

How GATE tests Sets, Relations and Functions

More from GATE CSE 2021 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2021 Set 2 · Q11 · MSQ

Consider the following sets, where n ≥ 2: S1: Set of all n × n matrices with entries from the set {a, b, c} S2: Set of all functions from the set {0, 1, 2, , n2 - 1} to the set {0, 1, 2} Which of the following choice(s) is/are correct?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.