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 PYQ2006Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let S={1,2,3,…,m},m>3.S = \{1, 2, 3,\ldots, m\}, m >3. Let X1,…,XnX_1,\ldots,X_n be subsets of SS each of size 3.3. Define a function ff from SS to the set of natural numbers as, f(i)f(i) is the number of sets XjX_j that contain the element i.i. That is f(i)=∣{j∣i∈Xj}∣f(i)=\left | \left\{j \mid i\in X_j \right\} \right| then ∑i=1mf(i)\sum_{i=1}^{m} f(i) is:
Official PYQ2006Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Given a set of elements N=1,2,...,nN = {1, 2, ..., n} and two arbitrary subsets A⊆NA⊆N and B⊆NB⊆N, how many of the n! permutations π\pi from NN to NN satisfy min⁡(π(A))=min⁡(π(B))\min(\pi(A)) = \min(\pi(B)), where min⁡(S)\min(S) is the smallest integer in the set of integers SS, and π\pi(S) is the set of integers obtained by applying permutation π\pi to each …
Official PYQ2006Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let E,FE, F and GG be finite sets. Let X=(E∩F)−(F∩G)X = (E ∩ F) - (F ∩ G) and Y=(E−(E∩G))−(E−F)Y = (E - (E ∩ G)) - (E - F). Which one of the following is true?
Official PYQ2006Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
A relation RR is defined on ordered pairs of integers as follows: (x,y)R(u,v) if x<u and y>v(x,y)R(u,v) \text{ if } x<u \text{ and } y>v Then RR is:
Official PYQ2006Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let X,Y,ZX,Y,Z be sets of sizes x,yx, y and zz respectively. Let W=X×YW = X \times Y and EE be the set of all subsets of WW. The number of functions from ZZ to EE is
Official PYQ2005Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
The time complexity of computing the transitive closure of a binary relation on a set of nn elements is known to be:
Official PYQ2005Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let f:B→Cf: B \to C and g:A→Bg: A \to B be two functions and let h=fogh = f o g. Given that hh is an onto function which one of the following is TRUE?
Official PYQ2005Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let RR and SS be any two equivalence relations on a non-empty set AA. Which one of the following statements is TRUE?
Official PYQ2005Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let A,BA, B and CC be non-empty sets and let X=(A−B)−CX = ( A - B ) - C and Y=(A−C)−(B−C).Y = ( A - C ) - ( B - C ). Which one of the following is TRUE?
Official PYQ2004Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Consider the binary relation: S={(x,y)∣y=x+1 and x,y∈{0,1,2}}S= \left\{\left(x, y\right) \mid y=x+1 \text{ and } x, y \in \left\{0, 1, 2\right\} \right\} The reflexive transitive closure is SS is
Official PYQ2003Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let Σ={a,b,c,d,e}\Sigma = \left\{a, b, c, d, e\right\} be an alphabet. We define an encoding scheme as follows: g(a)=3,g(b)=5,g(c)=7,g(d)=9,g(e)=11g(a) = 3, g(b) = 5, g(c) = 7, g(d) = 9, g(e) = 11. Let pip_i denote the i-th prime number (p1=2)\left(p_1 = 2\right). For a non-empty string s=a1…ans=a_1 \dots a_n, where each ai∈Σa_i \in \Sigma, define f(s)=Πi=1nPig(ai)f(s)= \Pi^n_{i=1}P_i^{g(a_i)}. For a non-empty …
Official PYQ2003Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let f:A→Bf : A \to B be an injective (one-to-one) function. Define g:2A→2Bg : 2^A \to 2^B as: g(C)={f(x)∣x∈C}g(C) = \left \{f(x) \mid x \in C\right\}, for all subsets CC of AA. Define h:2B→2Ah : 2^B \to 2^A as: h(D)={x∣x∈A,f(x)∈D}h(D) = \{x \mid x \in A, f(x) \in D\}, for all subsets DD of BB. Which of the following statements is always true?
Official PYQ2003Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Consider the set {a,b,c}\{a, b, c\} with binary operators ++ and ∗* defined as follows: …
Official PYQ2003Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let (S,≤)(S, \leq) be a partial order with two minimal elements a and b, and a maximum element c. Let P: S →\to {True, False} be a predicate defined on S. Suppose that P(a) = True, P(b) = False and P(x)   ⟹  \implies P(y) for all x,y∈Sx, y \in S satisfying x≤yx \leq y, where   ⟹  \implies stands for logical implication. Which of the following statements …
Official PYQ2002Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
The binary relation S=ϕ(empty set)S= \phi \text{(empty set)} on a set A={1,2,3}A = \left \{ 1,2,3 \right \} is
Official PYQ2001Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let f:A→Bf: A \rightarrow B a function, and let E and F be subsets of AA. Consider the following statements about images. S1:f(E∪F)=f(E)∪f(F)S_1: f(E \cup F) = f(E) \cup f(F) S2:f(E∩F)=f(E)∩f(F)S_2: f(E \cap F)=f(E) \cap f(F) Which of the following is true about S1 and S2?
Official PYQ2001Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Consider the following statements: S1:S_1: There exists infinite sets AA, BB, CC such that A∩(B∪C)A \cap (B \cup C) is finite. S2:S_2: There exists two irrational numbers xx and y such that (x+y)(x+y) is rational. Which of the following is true about S1S_1 and S2S_2?
Official PYQ2001Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Consider the following relations: R1 (a,b)R_1\:(a,b) iff (a+b)(a+b) is even over the set of integers R2 (a,b)R_2 \:(a,b) iff (a+b)(a+b) is odd over the set of integers R3 (a,b)R_3 \:(a,b) iff a.b>0a.b > 0 over the set of non-zero rational numbers R4 (a,b)R_4\:(a,b) iff ∣a−b∣≤2|a-b| \leq 2 over the set of natural numbers Which of the following statements is correct?
Official PYQ2000Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
Let P(S)P(S) denotes the power set of set S.S. Which of the following is always true?
Official PYQ2000Engineering MathematicsSets, Relations and FunctionsMCQ · 1 mark
A relation RR is defined on the set of integers as xRyxRy iff (x+y)(x + y) is even. Which of the following statements is true?