Set Theory · Discrete Mathematics
26 questions · asked in 13 of 27 years (2000–2026)
MCQ 20 · NAT 61-mark 19 · 2-mark 7
Questions 16–20 of 26
i.
ii. if and only if and .
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?
Answer: (D)
- (i) : units , tens , hundreds is false. Not in P.
- (ii) : units is false. Not in P.
- (iii) : units , tens , hundreds . In P.
- (iv) : all digits of 0 are 0, and , , . In P.
So (iii) and (iv) are in P.
Answer: (D)
Answer: (C)
, , , .
- refines all the others, since single elements lie inside any block. It is the bottom.
- Every partition refines , since is the whole set. It is the top.
- and are not comparable. The block of is not inside or , so does not refine . The block of is not inside or , so does not refine .
So the poset is a diamond: at the bottom, and in the middle, at the top. A Hasse diagram leaves out edges that follow by transitivity, such as to .
Option A and option B put and in a chain, which needs one to refine the other. Option D shows and with no link to , but both refine .
Answer: (C)
Answer: (B)
Correct Option: B
Any finite subset of a non-regular set is regular.
A finite set is always regular.
Since is regular, every non regular language is a subset of it. So (A) is false.
Take a CFL that is not regular. Take its union with its complement. The complement is also not regular, because regular sets are closed under complement. The union gives , which is regular. So (C) is false.
Regular sets are not closed under infinite union. Example:
Let
Now take the infinite union over all . We get
, which is not regular.
So (D) is false.
Answer: (B)
Smallest: a reflexive relation must contain all the diagonal pairs , which are pairs. The relation with only these pairs is also symmetric and transitive. So the smallest equivalence relation has ordered pairs.
Largest: a relation on cannot have more than all the pairs of , which is . is itself reflexive, symmetric and transitive, so it is an equivalence relation. So the largest has ordered pairs.
Answer: (B)
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 isAnswer: (D)
Correct Option: D
The for loop in the algorithm uses this logical expression:
z[i] = (x[i] ∧ ~y[i]) ∨ (~x[i] ∧ y[i]);
Now write the same expression in set form. Let us take . Then we get:
Keep practising