Skip to content

GATE CS Sets, Relations and Functions questions

Practise Sets, Relations and Functions questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
The number of onto functions (surjective functions) from set X={1,2,3,4}X = \{1, 2, 3, 4\} to set Y={a,b,c}Y=\{a,b,c\} is ______.
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
The cardinality of the power set of {0,1,2,…,10}\{0, 1, 2, \dots , 10\} is _______
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let RR be the relation on the set of positive integers such that aRbaRb and only if aa and bb are distinct and let have a common divisor other than 1.1. Which one of the following statements about RR is true?
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
The number of divisors of 21002100 is ____.
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let RR be a relation on the set of ordered pairs of positive integers such that ((p,q),(r,s))∈R((p,q),(r,s)) \in R if and only if p−s=q−rp-s=q-r. Which one of the following is true about RR?
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Suppose UU is the power set of the set S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\}. For any T∈UT \in U, let ∣T∣|T| denote the number of elements in TT and T′T' denote the complement of TT. For any T,R∈U let T\RT, R \in U \text{ let } T \backslash R be the set of all elements in TT which are not in RR. Which one of the following is true?
Official PYQ2015Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let #\# be the binary operator defined as X#Y=X′+Y′X\#Y = X'+Y' where XX and YY are Boolean variables. Consider the following two statements. (S1)(S_1) (P#Q)#R=P#(Q#R)(P\#Q)\#R = P\#(Q\#R) (S2)(S_2) Q#R=(R#Q)Q\#R = (R\#Q) Which are the following is/are true for the Boolean variables P,QP, Q and RR?
Official PYQ2014Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
Let ܵSS denote the set of all functions f:{0,1}4→{0,1}f:\{0,1\}^4 \to \{0,1\}. Denote by NN the number of functions from S to the set {0,1}\{0,1\}. The value of log⁡2log⁡2N\log_2 \log_2N is _______.
Official PYQ2014Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Consider the following relation on subsets of the set SS of integers between 11 and 20142014. For two distinct subsets UU and VV of SS we say U < VU\:<\:V if the minimum element in the symmetric difference of the two sets is in UU. Consider the following two statements: S1S1: There is a subset of SS that is larger than every other …
Official PYQ2014Engineering MathematicsSets, Relations and FunctionsNAT · 1 mark
The number of distinct positive integral factors of 20142014 is _____________
Official PYQ2014Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
A non-zero polynomial f(x)f(x) of degree 3 has roots at x=1x=1, x=2x=2 and x=3x=3. Which one of the following must be TRUE?
Official PYQ2014Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Consider the set of all functions f:{0,1,…,2014}→{0,1,…,2014}f:\{0,1, \dots,2014\} \to \{0,1,\dots, 2014\} such that f(f(i))=if\left(f\left(i\right)\right)=i, for all 0≤i≤20140 \leq i \leq 2014. Consider the following statements: PP. For each such function it must be the case that for every i,f(i)=ii,f(i) = i. QQ. For each such function it must be the case that for some i,f(i)=ii,f(i)=i. …
Official PYQ2014Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let XX and YY be finite sets and f:X→Yf:X \to Y be a function. Which one of the following statements is TRUE?
Official PYQ2013Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
A binary operation ⊕\oplus on a set of integers is defined as x⊕y=x2+y2x \oplus y = x^{2}+y^{2}. Which one of the following statements is TRUE about ⊕\oplus?
Official PYQ2012Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
How many onto (or surjective) functions are there from an nn-element (n≥2)(n ≥ 2) set to a 22-element set?
Official PYQ2010Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
What is the possible number of reflexive relations on a set of 55 elements?
Official PYQ2009Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Consider the binary relation R={(x,y),(x,z),(z,x),(z,y)}R = \left\{(x,y), (x,z), (z,x), (z,y)\right\} on the set {x,y,z}\{x,y,z\}. Which one of the following is TRUE?
Official PYQ2008Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
If P,Q,RP, Q, R are subsets of the universal set U, then (P∩Q∩R)∪(Pc∩Q∩R)∪Qc∪Rc(P\cap Q\cap R) \cup (P^c \cap Q \cap R) \cup Q^c \cup R^c is
Official PYQ2007Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
What is the maximum number of different Boolean functions involving nn Boolean variables?
Official PYQ2007Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let SS be a set of nn elements. The number of ordered pairs in the largest and the smallest equivalence relations on SS are: