All mock tests are FREE till 31 December — register to save your progress
Paper 2 CS · UNIT 01

Discrete Structures and Optimization – Previous Year Questions

272 questions from past UGC NET Paper 2 – Computer Science papers, each with the correct answer. Open any question for its explanation.

  1. Let R = {x | x ∈ N, x is a multiple of 3 and x ≤ 100} and S = {x | x ∈ N, x is a multiple of 5 and x < 100}. What is the number of elements in (R ∩ S) × (S ∩ R)?
    Answer: A. 36 Paper 2 CS · June 2023
  2. There are m points on one straight line AB and n points on another straight line AC, none of them being A. How many triangles can be formed with these points as vertices?
    Answer: B. ½ mn(m + n − 2) Paper 2 CS · June 2023
  3. Let N be the set of natural numbers and R the relation on N × N defined by (a, b) R (c, d) if ad(b + c) = bc(a + d). Then R is
    Answer: D. An equivalence relation Paper 2 CS · June 2023
  4. How many integral solutions are there to x + y + z + w = 29, where x ≥ 1, y ≥ 2, z ≥ 3 and w ≥ 0?
    Answer: B. 2600 Paper 2 CS · June 2023
  5. In a multi-user operating system, on average 20 requests are made to use a particular resource per hour. The probability that no request is made in 45 minutes is
    Answer: A. e⁻¹⁵ Paper 2 CS · June 2023
  6. Let G = R \ {0} (non-zero reals) and H = {−1, 1} be groups under multiplication. Then the map φ : G → H defined by φ(x) = x/|x| is
    Answer: C. An onto homomorphism, which is not one-one Paper 2 CS · June 2023
  7. Find the sum of all four-digit numbers formed using the digits 1, 2, 4 and 6 (each used once).
    Answer: A. 86,658 Paper 2 CS · June 2023
  8. Match List I with List IIList I List II A. A △ B I. (A − B) ∪ (A − C) B. A − (B ∪ C) II. (A − B) ∩ (A − C) C. A − (B ∩ C) III. (A − B) ∪ (B − A) D. A ∩ (B − C) IV. (A ∩ B) − (A ∩ C)
    Answer: A. A-III, B-II, C-I, D-IV Paper 2 CS · June 2023
  9. Consider the following statements: A. The identity is unique in any monoid. B. A monoid is a group if every element of the monoid has an inverse. C. A semigroup has closure, associative and identity properties. D. A qua…
    Answer: A. A, B and D only Paper 2 CS · June 2023
  10. If A = {4n + 2 | n is a natural number} and B = {3n | n is a natural number}, which of the following is correct for A ∩ B?
    Answer: D. {12n − 6 | n is a natural number} Paper 2 CS · June 2023
  11. If f(n) = 5f(n/2) + 3 and f(1) = 7 is a recurrence relation, where k is a positive integer, then f(2ᵏ) =
    Answer: A. 5ᵏ(31/4) − 3/4 Paper 2 CS · June 2024 (Cancelled Exam)
  12. Which of the following are TRUE if the universe of discourse consists of all integers? A. ∀n ∃m (n² < m) B. ∃n ∀m (n < m²) C. ∃n ∃m (n² + m² = 5) D. ∃n ∃m (n² + m² = 6) E. ∃n ∃m (m + n = 4 ∧ n − m = 1) Choose the correc…
    Answer: A. A, B, C Only Paper 2 CS · June 2024 (Cancelled Exam)
  13. Which of the following sequences aₙ is a solution of the recurrence relation aₙ = 8aₙ₋₁ − 16aₙ₋₂? A. aₙ = 1 B. aₙ = 2ⁿ C. aₙ = 4ⁿ D. aₙ = n·4ⁿ E. aₙ = (−4)ⁿ Choose the most appropriate answer from the options given belo…
    Answer: C. C, D Only Paper 2 CS · June 2024 (Cancelled Exam)
  14. Arrange the following simple graphs by the number of spanning trees they have (increasing): A. K₃ (complete graph on 3 nodes) B. K₄ (complete graph on 4 nodes) C. K₂,₂ (complete bipartite graph with 2 nodes in each part…
    Answer: C. A, C, D, B Paper 2 CS · June 2024 (Cancelled Exam)
  15. A bit string of length four is generated at random. What is the probability that it contains at least two consecutive 0s, given that the first bit is 0?
    Answer: C. 5/8 Paper 2 CS · June 2024 (Cancelled Exam)
  16. Arrange the following sets in increasing order of their cardinality: A. A1 = {{1, 2}, {3}} B. A2 = {{1}, {2}, {3}, {4}} C. A3 = {{1, 2, 3, 4, 5, 6}} D. A4 = {{1, 2}, {2, 3, 4}, {5}} E. A5 = {{1}, {2}, {3}, {4}, {5}} Cho…
    Answer: D. C, A, D, B, E Paper 2 CS · June 2024 (Cancelled Exam)
  17. The chairs of an auditorium are to be labelled with a letter followed by a positive two-digit integer, starting with A01. What is the maximum number of chairs that can be labelled this way?
    Answer: B. 2574 Paper 2 CS · June 2024 (Cancelled Exam)
  18. Z is the set of integers. ⟨Z, *⟩ forms a group if * is:
    Answer: A. a * b = a + b + 2 Paper 2 CS · June 2024 (Cancelled Exam)
  19. Arrange the steps of mathematical modelling: A. Solution fitting with data B. Formulation mathematically C. Solve mathematically D. Repeat formulation if it fits poorly with the data E. Interpret results Choose the corr…
    Answer: A. B, C, A, D, E Paper 2 CS · June 2024 (Cancelled Exam)
  20. Which of the following are tautologies? A. (p ∨ r) → p B. p → (p ∧ r) C. ~p → (p → r) D. (p ∧ r) → (p → r) E. ~(p → r) → p Choose the correct answer from the options given below:
    Answer: D. C, D, E Only Paper 2 CS · June 2024 (Cancelled Exam)
  21. Which of the following is NOT a common property of social networks?
    Answer: B. Average shortest path lengths are short in connected networks Paper 2 CS · June 2024 (Cancelled Exam)
  22. When the LPP is formulated from the passage, which of the following is the objective function of its dual problem?
    Answer: B. Min P = 8u + 10v + 15w Paper 2 CS · June 2024 (Cancelled Exam)
  23. Which of the following is the appropriate objective function for the given problem?
    Answer: C. 30x + 50y Paper 2 CS · June 2024 (Cancelled Exam)
  24. How many unit lengths of cloth A are used when income is maximised (as per the keyed answer)?
    Answer: C. 2.8 unit Paper 2 CS · June 2024 (Cancelled Exam)
  25. If x unit lengths of type A and y unit lengths of type B cloth are produced, the constraints of the LPP are:
    Answer: B. y ≤ 7.5, 2x + 3y ≤ 8, 3x + 2y ≤ 10 Paper 2 CS · June 2024 (Cancelled Exam)
  26. On the basis of the available material, the maximum total income is:
    Answer: A. ₹133.3 Paper 2 CS · June 2024 (Cancelled Exam)
  27. Which of the following is NOT logically equivalent to P → Q?
    Answer: D. ~Q → P Paper 2 CS · December 2022 Shift 1
  28. Seven people enter a lift. The lift stops at only three (unspecified) floors. At each of the three floors no one enters, but at least one person leaves. After the three stops the lift is empty. In how many ways can this…
    Answer: C. 1806 Paper 2 CS · December 2022 Shift 1
  29. The coefficient of x²y³z² in the expansion of (x + y + z)⁷ is
    Answer: B. C(7, 2) × C(5, 3) Paper 2 CS · December 2022 Shift 1
  30. What is the minimum number of students in a discrete mathematics class to be sure that at least six will receive the same grade, if there are seven possible grades: S, A, B, C, D, P and F?
    Answer: C. 36 Paper 2 CS · December 2022 Shift 1