All mock tests are FREE till 31 December — register to save your progress
UGC NET · PAPER 2

UGC NET Paper 2 Computer Science – Unit 1: Discrete Structures and Optimization PYQ (December 2023)

17 questions · answer key at the end · updated 11 Oct 2026
Q1. What is the probability that a positive integer selected at random from the set of positive integers not exceeding 100 is divisible by either 2 or 5?
  1. 10/5
  2. 3/5
  3. 2/5
  4. 1/5
Answer & explanation →
Q41. If the universe of discourse is all real numbers, which of the following are true?
(A) ∃x ∀y (x + y = y)
(B) ∀x ∀y (((x ≥ 0) ∧ (y < 0)) → (x − y > 0))
(C) ∃x ∃y (((x ≤ 0) ∧ (y ≤ 0)) ∧ (x − y > 0))
(D) ∀x ∀y ((x ≠ 0) ∧ (y ≠ 0) ↔ (xy ≠ 0))
Choose the correct answer from the options given below:
  1. (A) and (B) Only
  2. (A), (C) and (D) Only
  3. (A), (B) and (D) Only
  4. (A), (B), (C) and (D)
Answer & explanation →
Q42. If the universe of discourse is the set of integers, which of the following are TRUE?
(A) ∀n ∃m (n² < m)
(B) ∃n ∀m (n < m²)
(C) ∃n ∀m (nm = m)
(D) ∃n ∃m (n² + m² = 6)
(E) ∃n ∃m (n + m = 4 ∧ n − m = 1)
Choose the correct answer from the options given below:
  1. (A), (B) and (C) Only
  2. (B) and (C) Only
  3. (C), (D) and (E) Only
  4. (C) and (E) Only
Answer & explanation →
Q43. If N² = N × N, where N is the set of natural numbers, and R is a relation on N² such that ⟨x, y⟩ R ⟨u, v⟩ ⇔ xv = yu, which of the following are TRUE?
(A) Reflexive
(B) Symmetric
(C) Transitive
(D) Asymmetric
Choose the correct answer from the options given below:
  1. (A) and (B) Only
  2. (B) and (C) Only
  3. (A), (C) and (D) Only
  4. (A), (B) and (C) Only
Answer & explanation →
Q46. Which of the following are tautologies?
(A) (P → (P → Q)) → (P → Q)
(B) ((P → Q) → Q) → (P ∨ Q)
(C) ((P ∨ ¬P) → Q) → ((P ∨ ¬P) → R)
(D) (Q → (P ∧ ¬P)) → (R → (P ∧ ¬P))
Choose the correct answer from the options given below:
  1. (A) Only
  2. (B) Only
  3. (A) and (B) Only
  4. (C) and (D) Only
Answer & explanation →
Q56. Let P(x) be the statement "x = x²". If the universe of discourse is the integers, which of the following have truth value TRUE?
(A) P(0)
(B) P(1)
(C) P(2)
(D) ∃x P(x)
(E) ∀x P(x)
Choose the correct answer from the options given below:
  1. (A), (B) and (E) Only
  2. (A), (B) and (C) Only
  3. (A), (B) and (D) Only
  4. (B), (C) and (D) Only
Answer & explanation →
Q57. Which of the following statements are true if the universe of discourse is the set of integers?
(A) ∀n (n² ≥ 0)
(B) ∃n (n² = 2)
(C) ∀n (n² ≥ n)
(D) ∃n (n² < 0)
Choose the correct answer from the options given below:
  1. (A) and (B) Only
  2. (B) and (C) Only
  3. (C) and (D) Only
  4. (A) and (C) Only
Answer & explanation →
Q58. Which of the following graphs (on vertices a–f) are trees?
(A) edges: ac, bc, cd, cf, ef
(B) edges: ac, af, df, ef, be
(C) edges: ab, ac, ad, be, cf, de
(D) edges: af, be, bd, ce
Choose the correct answer from the options given below:
  1. (A) and (B) only
  2. (A), (B) and (D) only
  3. (A) and (D) only
  4. (A), (B), (C) and (D) only
Answer & explanation →
Q66. Match List I with List II
List IList II
(A) φ ∩ {φ}(I) φ
(B) {φ} ∩ {φ}(II) {φ}
(C) {φ, {φ}} − φ(III) {{φ}}
(D) φ ∪ {{φ}}(IV) {φ, {φ}}
  1. (A)-(I), (B)-(II), (C)-(III), (D)-(IV)
  2. (A)-(II), (B)-(I), (C)-(III), (D)-(IV)
  3. (A)-(II), (B)-(I), (C)-(IV), (D)-(III)
  4. (A)-(I), (B)-(II), (C)-(IV), (D)-(III)
Answer & explanation →
Q72. Match List I with List II (logically equivalent expressions)
List IList II
(a) P ∧ (P → Q)(I) P ∨ Q
(b) ¬(P ∨ Q) → (P ∧ Q)(II) (P ∧ ¬P) ∨ (P ∧ Q)
(c) P → Q(III) (¬P) ∨ Q
(d) P ∨ (Q ∧ R)(IV) (P ∧ P) ∨ (P ∧ Q) ∨ (P ∧ R) ∨ (Q ∧ R)
  1. (a)-(I), (b)-(II), (c)-(III), (d)-(IV)
  2. (a)-(II), (b)-(I), (c)-(III), (d)-(IV)
  3. (a)-(III), (b)-(I), (c)-(II), (d)-(IV)
  4. (a)-(IV), (b)-(III), (c)-(II), (d)-(I)
Answer & explanation →
Q76. Arrange the following in ascending order:
(a) Remainder of 4916 when divided by 17
(b) Remainder of 2446 when divided by 9
(c) Remainder of 15517 when divided by 17
(d) Last digit of the number 745
Choose the correct answer from the options given below:
  1. (a), (b), (c), (d)
  2. (a), (b), (d), (c)
  3. (a), (c), (b), (d)
  4. (d), (c), (b), (a)
Answer & explanation →
Q86. Statement (I): If H is a non-empty finite subset of a group G and ab ∈ H for all a, b ∈ H, then H is also a group.
Statement (II): There is no homomorphism from (Z, +) to (Q, +), where Z is the set of integers and Q the set of rationals.
In the light of the above statements, choose the most appropriate answer from the options given below:
  1. Both Statement I and Statement II are correct
  2. Both Statement I and Statement II are incorrect
  3. Statement I is correct but Statement II is incorrect
  4. Statement I is incorrect but Statement II is correct
Answer & explanation →

Directions (Q91–95): Food X contains 6 units of vitamin D per gram and 7 units of vitamin E per gram and costs Rs 12 per gram. Food Y contains 8 units of vitamin D per gram and 12 units of vitamin E per gram and costs Rs 20 per gram. The daily minimum requirements of vitamin D and E are 100 units and 120 units respectively. Let x be the quantity (in grams) of food X and y the quantity (in grams) of food Y.

Q91. The cost function of the total food is:
  1. Z = 6x + 7y
  2. Z = 8x + 12y
  3. Z = 12x + 20y
  4. Z = 20x + 12y
Answer & explanation →
Q92. Which of the following are the constraints when formulating the LPP?
  1. 6x + 7y ≤ 100, 8x + 12y ≤ 120, x, y ≥ 0
  2. 6x + 8y ≤ 100, 7x + 12y ≤ 120, x, y ≥ 0
  3. 6x + 7y ≥ 100, 8x + 12y ≥ 120, x, y ≥ 0
  4. 6x + 8y ≥ 100, 7x + 12y ≥ 120, x, y ≥ 0
Answer & explanation →
Q93. What are the quantities (in grams) of food X and Y respectively when the cost of food is minimum?
  1. 0 and 12½
  2. 15 and 5/4
  3. 120/7 and 0
  4. 0 and 10
Answer & explanation →
Q94. The dual of the formulated LPP is:
  1. Max Z = 100u + 120v s.t. 6u + 7v ≤ 12, 8u + 12v ≤ 20, u, v ≥ 0
  2. Max Z = 12u + 20v s.t. 6u + 7v ≤ 100, 8u + 12v ≤ 120, u, v ≥ 0
  3. Max Z = 100u + 120v s.t. 6u + 7v ≤ 12, 8u + 7v ≤ 20, u, v unrestricted
  4. Max Z = 100u + 120v s.t. 6u + 7v ≥ 12, 8u + 12v ≥ 20, u, v ≥ 0
Answer & explanation →
Q95. The minimum cost of food is:
  1. 205
  2. 250
  3. 330
  4. 200
Answer & explanation →

Answer key

  1. 1 – B
  2. 41 – D
  3. 42 – A
  4. 43 – D
  5. 46 – C
  6. 56 – C
  7. 57 – D
  8. 58 – A
  9. 66 – D
  10. 72 – B
  11. 76 – C
  12. 86 – C
  13. 91 – C
  14. 92 – D
  15. 93 – B
  16. 94 – A
  17. 95 – A