Set Theory: GATE CS Previous Year Questions

Set Theory · Discrete Mathematics

26 questions · asked in 13 of 27 years (2000–2026)

MCQ 20 · NAT 61-mark 19 · 2-mark 7

2000Questions per year2026

Questions 16–20 of 26

Q16GATE 20071 markMCQ−0.33 if wrong
A partial order P is defined on the set of natural numbers as follows. Here xy\frac{x}{y} denotes integer division.
i.(0,0)∈P.(0, 0) \in P.
ii.(a,b)∈P(a, b) \in P if and only if (a%10)≤(b%10)(a \% 10) \leq (b \% 10) and (a10,b10)∈P(\frac{a}{10},\frac{b}{10})\in P.

Consider the following ordered pairs:

i. (101, 22)
ii. (22, 101)
iii. (145, 265)
iv. (0, 153)

Which of these ordered pairs of natural numbers are contained in P?

Q17GATE 20071 markMCQ−0.33 if wrong
Consider the set S = {a, b, c, d}. Consider the following 4 partitions π1,π2,π3,π4 on S : π1 = { abcd } ,π2 = { ab, cd } ,π3 = { abc, d } ,π4 = { a, b, c, d } . Let p be the partial order on the set of partitions S′ = {π1,π2,π3,π4} defined as follows: πi p πj if and only if πi refines πj. The poset diagram for (S′,p) is: (A) (B) π1 π2 π3 π4 π1 π2 π3 π4
(C) (D) π1 π2 π3 π4 π1 π2 π3 π4

Q18GATE 20071 markMCQ−0.33 if wrong
Which of the following is TRUE?

Q19GATE 20071 markMCQ−0.33 if wrong
Let S be a set of n elements. The number of ordered pairs in the largest and the smallest equivalence relations on S are:

Q20GATE 20061 markMCQ−0.33 if wrong
A set X can be represented by an array x[n] as follows
x[i]={1ifi∈X0otherwisex[i]=\left\{\begin{matrix} 1 &if i\in X \\ 0& otherwise \end{matrix}\right.
Consider the following algorithm in which x,y and z are boolean arrays of size n;
algorithm zzz(x[] , y[], z [])
{
   int i;
   for (i=O; i < n; ++i)
         z[i] = (x[i] ^ ~y[i]) V (~x[i] ^ y[i])
}
The set Z computed by the algorithm is

Keep practising

Topics in Discrete Mathematics

All CS topics ›