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 Optimisation PYQ (June 2024 Re-Exam)

10 questions · answer key at the end · updated 11 Oct 2026
Q7. Consider the following relations on {1, 2, 3, 4}. Which of the following relations are reflexive?
(A) R₁ = {(1,1),(1,2),(2,1),(2,2),(3,4),(4,1),(4,4)}
(B) R₂ = {(1,1),(1,2),(2,1)}
(C) R₃ = {(1,1),(1,2),(1,4),(2,1),(2,2),(3,3),(4,1),(4,4)}
(D) R₄ = {(2,1),(3,1),(3,2),(4,1),(4,2),(4,3)}
(E) R₅ = {(1,1),(1,2),(1,3),(1,4),(2,2),(2,3),(2,4),(3,3),(3,4),(4,4)}
Choose the correct answer from the options given below:
  1. (A), (B) and (C) Only
  2. (A), (D) and (E) Only
  3. (D) and (E) Only
  4. (C) and (E) Only
Answer & explanation →
Q24. Let p be "It is a hot day" and q be "The temperature is 48°C". Write in simple sentences the meaning of ¬p ∧ ¬q.
  1. It is a hot day or the temperature is 48°C
  2. It is a cold day or the temperature is 48°C
  3. It is neither a hot day nor is the temperature 48°C
  4. It is not a hot day
Answer & explanation →
Q34. A graph G with n ≥ 3 vertices is a Hamiltonian graph if the degree of each vertex is greater than or equal to
  1. the number of vertices
  2. double the number of vertices
  3. half the number of vertices
  4. four times the number of vertices
Answer & explanation →
Q45. A coin is tossed successively three times. For the event E of getting exactly one head or exactly two heads, with sample space S (n denotes the number of outcomes):
(A) n(S) = 8 and n(E) = 4
(B) n(E) = 6 and n(S) = 8
(C) P(E) = 3/4
(D) P(E) = 1/2
Choose the correct answer from the options given below:
  1. (A), (B), (C) and (D)
  2. (B) and (C) Only
  3. (A) and (D) Only
  4. (C) and (D) Only
Answer & explanation →
Q47. Consider the following, where p and q are two statements.
(A) ~(p ∧ q) ≡ ~p ∨ ~q
(B) ~(p ∨ q) ≡ ~p ∧ ~q
(C) p ∧ ~p ≡ T
(D) ~(p ⇒ q) ≡ p ∧ ~q
(E) p ∨ q ≡ ~p ∨ ~q
Which of these equivalences are correct?
  1. (A), (B) and (D) only
  2. (A), (C) and (D) only
  3. (C), (D) and (E) only
  4. (A), (B) and (C) only
Answer & explanation →
Q61. Let L(x, y) be the statement "x loves y", where the domain for both x and y consists of all people in the world. Use quantifiers to express "Joy is loved by everyone".
  1. ∀x L(x, Joy)
  2. ∀y L(Joy, y)
  3. ∃y ∀x L(x, y)
  4. ∃x ¬L(Joy, x)
Answer & explanation →
Q72. Match List I (Queries) with List II (Probability)
List IList II
(A) A bag contains 6 white and 4 red balls. Two balls are drawn at random. What is the chance they will be the same colour?(I) 3/68
(B) In a pack of 52 cards, one card is drawn at random. What is the probability that it is either a king or a queen?(II) 14/68
(C) A bag contains 6 red, 4 white and 8 blue balls. If three balls are drawn at random, find the probability of 1 red and 2 white balls.(III) 2/13
(D) A bag contains 6 red, 4 white and 8 blue balls. If three balls are drawn at random, find the probability of 2 blue and 1 red ball.(IV) 7/15
  1. (A)-(III), (B)-(IV), (C)-(I), (D)-(II)
  2. (A)-(III), (B)-(IV), (C)-(II), (D)-(I)
  3. (A)-(IV), (B)-(III), (C)-(II), (D)-(I)
  4. (A)-(IV), (B)-(III), (C)-(I), (D)-(II)
Answer & explanation →
Q78. Let G(V, E) be an undirected graph with l edges. Then the sum of the degrees of all vertices is equal to
  1. 2l
  2. l/2
  3. l²
  4. √l
Answer & explanation →
Q79. 40 software professionals were interviewed for a job. 25 knew PYTHON, 20 knew JAVA and 7 knew neither language. How many knew both languages?
  1. 12
  2. 53
  3. 10
  4. 88
Answer & explanation →
Q87. Translate ∀x ∃y (x < y) into English, considering the domain as real numbers for both variables.
  1. For all real numbers x, there exists a real number y such that x is less than y
  2. For every real number y, there exists a real number x such that x is less than y
  3. For some real number x, there exists a real number y such that x is less than y
  4. For each and every real number x and y, x is less than y
Answer & explanation →

Answer key

  1. 7 – D
  2. 24 – C
  3. 34 – C
  4. 45 – B
  5. 47 – A
  6. 61 – A
  7. 72 – D
  8. 78 – A
  9. 79 – A
  10. 87 – A