Qus : 4
UGC NET Computer Science PYQ
4
Consider the following properties: A. Reflexive B. Antisymmetric C. Symmetric Let $A=\{a,b,c,d,e,f,g\}$ and $R=\{(a,a),(b,b),(c,d),(c,g),(d,g),(e,e),(f,f),(g,g)\}$ be a relation on $A$. Which of the following property/properties is/are satisfied by the relation $R$?
1
Only A 2
Only c 3
Both A and B 4
B and not A Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2020 (Paper II) PYQ
Solution For reflexive relation, every element must have pair $(x,x)$. But $(c,c)$ and $(d,d)$ are missing. So, relation is not reflexive. For antisymmetric relation, if $(x,y)$ and $(y,x)$ both exist, then $x=y$. Here, no reverse pair exists for $(c,d),(c,g),(d,g)$. So, relation is antisymmetric. For symmetric relation, if $(x,y)$ exists, then $(y,x)$ must also exist. But $(c,d)$ exists and $(d,c)$ does not exist. So, relation is not symmetric. Therefore, relation satisfies B and not A.
Qus : 5
UGC NET Computer Science PYQ
3
Arrange the following simple graphs based on number of spanning trees they have:
A. $K_3$ (Complete graph with 3 nodes)
B. $K_4$ (Complete graph with 4 nodes)
C. $K_{2,2}$ (Complete bipartite graph with 2 nodes in each partition)
D. $C_5$ (Cycle graph with 5 nodes)
1
A, B, C, D 2
A, C, B, D 3
A, C, D, B 4
D, B, C, A Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ
Solution Number of spanning trees:
For complete graph:
$\tau(K_n)=n^{n-2}$
A: $K_3 = 3^{1} = 3$
B: $K_4 = 4^{2} = 16$
For complete bipartite graph:
$\tau(K_{m,n}) = m^{n-1} n^{m-1}$
C: $K_{2,2} = 2^{1} \times 2^{1} = 4$
For cycle graph:
$\tau(C_n)=n$
D: $C_5 = 5$
Thus:
A = 3
C = 4
D = 5
B = 16
Increasing order:
A, C, D, B
Qus : 6
UGC NET Computer Science PYQ
2
Consider the following argument with premise $\forall x(P(x)\vee Q(x))$ and conclusion $(\forall xP(x))\wedge(\forall xQ(x))$
(A) $\forall x(P(x)\vee Q(x))$ Premise (B) $P(c)\vee Q(c)$ Universal instantiation from (A) (C) $P(c)$ Simplification from (B) (D) $\forall xP(x)$ Universal generalization of (C) (E) $Q(c)$ Simplification from (B) (F) $\forall xQ(x)$ Universal generalization of (E) (G) $(\forall xP(x))\wedge(\forall xQ(x))$ Conjunction of (D) and (F)
1
This is a valid argument. 2
Steps (C) and (E) are not correct inferences. 3
Steps (D) and (F) are not correct inferences. 4
Step (G) is not a correct inference. Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2020 (Paper II) PYQ
Solution From $\forall x(P(x)\vee Q(x))$, we can get: $P(c)\vee Q(c)$ So, step (B) is correct. But from $P(c)\vee Q(c)$, we cannot conclude $P(c)$ alone. Also, we cannot conclude $Q(c)$ alone. So, steps (C) and (E) are not correct inferences. Step (G) would be correct only if (D) and (F) were validly obtained. Hence, the main error is in steps (C) and (E).
Qus : 7
UGC NET Computer Science PYQ
2
Four persons: P, Q, R and S are in police custody and one of them has committed a crime. They confess as follows:
A. Person P: Q did it.
B. Person Q: S did it.
C. Person R: I did not do it.
D. Person S: Q lied.
If exactly one of the statements is false, which of the following is the guilty person.
1
P 2
Q 3
R 4
S Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift II (Paper II) PYQ
Solution Check each case one by one.
Case 1: Suppose P is guilty.
P says: Q did it → False
Q says: S did it → False
R says: I did not do it → True
S says: Q lied → True
Here, two statements are false. So, P is not guilty.
Case 2: Suppose Q is guilty.
P says: Q did it → True
Q says: S did it → False
R says: I did not do it → True
S says: Q lied → True
Here, exactly one statement is false.
So, Q can be guilty.
Case 3: Suppose R is guilty.
P says: Q did it → False
Q says: S did it → False
R says: I did not do it → False
S says: Q lied → True
Here, three statements are false. So, R is not guilty.
Case 4: Suppose S is guilty.
P says: Q did it → False
Q says: S did it → True
R says: I did not do it → True
S says: Q lied → False
Here, two statements are false. So, S is not guilty.
Therefore, the guilty person is Q.
Qus : 8
UGC NET Computer Science PYQ
4
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?
1
{12n² + 6n | n is a natural number} 2
{24n - 12 | n is a natural number} 3
{60n + 30 | n is a natural number} 4
{12n - 6 | n is a natural number} Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2023 (Paper II) PYQ
Solution A contains numbers of the form:
$4n + 2$
So, numbers in A are:
$6, 10, 14, 18, 22, 26, 30, ...$
B contains multiples of 3:
$3, 6, 9, 12, 15, 18, 21, 24, 27, 30, ...$
Common elements are:
$6, 18, 30, 42, ...$
These can be written as:
$12n - 6$
Qus : 9
UGC NET Computer Science PYQ
3
Statement 1:
Given a graph $G=(V,E)$ in which each vertex $v \in V$ has an associated positive weight $w(v)$, we can use linear programming to find the lower bound on the weight of the minimum-weight vertex cover.
Statement 2:
The lower bound can be found by maximizing the following
$ \sum_{v \in V} w(v)x(v) $
subject to
$ x(u)+x(v) \ge 1 $ for each $(u,v) \in E$
$ x(v) \le 1 $ for each $v \in V$
$ x(v) \ge 0 $ for each $v \in V$
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 and Statement II is correct Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift II (Paper II) PYQ
Solution For minimum-weight vertex cover, we can write an integer linear programming formulation.
Its LP relaxation can be used to find a lower bound.
So, Statement 1 is correct.
But for minimum-weight vertex cover, the objective should be minimized, not maximized.
Correct objective should be:
$ \text{Minimize } \sum_{v \in V} w(v)x(v) $
Statement 2 says maximizing the objective, so Statement 2 is incorrect.
Qus : 10
UGC NET Computer Science PYQ
4
Which of the following are tautology?
A. $(p \lor r) \rightarrow p$
B. $p \rightarrow (p \land r)$
C. $\sim p \rightarrow (p \rightarrow r)$
D. $(p \land r) \rightarrow (p \rightarrow r)$
E. $\sim(p \rightarrow r) \rightarrow p$
1
A, B Only 2
A, B, C Only 3
B, C, D Only 4
C, D, E Only Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ
Solution A: False when $r=1, p=0$ → Not tautology
B: False when $p=1, r=0$ → Not tautology
C:
$\sim p \rightarrow (p \rightarrow r)$
Always true → Tautology
D:
$(p \land r) \rightarrow (p \rightarrow r)$
Always true → Tautology
E:
$\sim(p \rightarrow r) \rightarrow p$
Always true → Tautology
Thus tautologies:
C, D, E
Qus : 11
UGC NET Computer Science PYQ
4
Match List-I with List-II:
List-I List-II A. Back Tracking I. Automata B. Infinite languages with matching numbers II. Undecidable Problem C. Canonical LR Parser III. Predictive Parser D. Post Correspondence Problem
IV. Large number of states
1
A-I, B-II, C-III, D-IV 2
A-II, B-IV, C-I, D-III 3
A-IV, B-III, C-II, D-I 4
A-III, B-I, C-IV, D-II Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ
Solution Backtracking → Predictive parsing may require backtracking → III
Infinite languages with matching numbers → handled using Automata → I
Canonical LR parser → requires large number of states → IV
Post Correspondence Problem → Undecidable problem → II
Matching:
A → III
B → I
C → IV
D → II
Qus : 12
UGC NET Computer Science PYQ
3
Consider the following statements: (A) Any tree is 2-colorable (B) A graph G has no cycles of even length if it is bipartite. (C) A graph G is 2-colorable if it is bipartite. (D) A graph G can be colored with d+1 colors if d is the maximum degree of any vertex in the graph G. (E) A graph G can be colored with O(log|V|) colors if it has O(|V|) edges. Choose the correct answer from the options given below:
1
(C) and (E) are incorrect 2
(B) and (C) are incorrect 3
(B) and (E) are incorrect 4
(A) and (D) are incorrect Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2020 (Paper II) PYQ
Solution (A) True, because every tree is bipartite, so it is 2-colorable. (B) False, because a bipartite graph has no odd cycle, but it can have even cycles. (C) True, because every bipartite graph is 2-colorable. (D) True, by greedy coloring, any graph with maximum degree $d$ can be colored using at most $d+1$ colors. (E) False, because having $O(|V|)$ edges does not guarantee coloring with only $O(\log |V|)$ colors. So, incorrect statements are (B) and (E).
Qus : 13
UGC NET Computer Science PYQ
4
Consider the poset $\left({3,5,9,15,24,45}, \mid\right)$.
Which of the following is correct for the given poset?
1
There exists a greatest element and a least element 2
There exists a greatest element but not a least element 3
There exists a least element but not a greatest element 4
There does not exist a greatest element and a least element Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2019 (Paper II) PYQ
Solution In divisibility poset, least element means an element which divides every element.
Here, $3$ does not divide $5$, so $3$ is not the least element.
Similarly, no other element divides all elements of the set.
So, least element does not exist.
Greatest element means an element which is divisible by every element.
Here, $45$ is not divisible by $24$.
Also, no other element is divisible by all elements of the set.
So, greatest element does not exist.
Therefore, there does not exist a greatest element and a least element.
Qus : 16
UGC NET Computer Science PYQ
3
How many bit strings of length ten either start with a $1$ bit or end with two bits $00$?
1
320 2
480 3
640 4
768 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2019 (Paper II) PYQ
Solution Total length of bit string is $10$.
Let $A$ be the set of bit strings starting with $1$.
So, first bit is fixed and remaining $9$ bits are free.
$n(A)=2^9=512$
Let $B$ be the set of bit strings ending with $00$.
So, last two bits are fixed and remaining $8$ bits are free.
$n(B)=2^8=256$
Now, strings which start with $1$ and end with $00$:
First bit is fixed as $1$ and last two bits are fixed as $00$.
Remaining $7$ bits are free.
$n(A \cap B)=2^7=128$
Therefore,
$n(A \cup B)=n(A)+n(B)-n(A \cap B)$
$=512+256-128$
$=640$
Qus : 18
UGC NET Computer Science PYQ
3
For which values of $m$ and $n$ does the complete bipartite graph $K_{m,n}$ have a Hamilton circuit?
1
$m \ne n,\ m,n \ge 2$ 2
$m \ne n,\ m,n \ge 3$ 3
$m=n,\ m,n \ge 2$ 4
$m=n,\ m,n \ge 3$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2019 (Paper II) PYQ
Solution In a complete bipartite graph $K_{m,n}$, vertices are divided into two parts.
A Hamilton circuit must visit every vertex exactly once and return to the starting vertex.
In a bipartite graph, every cycle alternates between the two parts.
So, for a Hamilton circuit to include all vertices, both parts must have the same number of vertices.
Therefore,
$m=n$
Also, a cycle needs at least $2$ vertices in each part.
So,
$m,n \ge 2$
Hence, $K_{m,n}$ has a Hamilton circuit when
$m=n,\ m,n \ge 2$
Qus : 19
UGC NET Computer Science PYQ
1
There are three boxes. First box has $2$ white, $3$ black and $4$ red balls. Second box has $3$ white, $2$ black and $2$ red balls. Third box has $4$ white, $1$ black and $3$ red balls. A box is chosen at random and $2$ balls are drawn out of which $1$ is white, and $1$ is red. What is the probability that the balls came from first box?
1
$0.237$ 2
$0.723$ 3
$0.18$ 4
$0.452$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Sep 2022 (Paper II) PYQ
Solution Let the boxes be $B_1, B_2, B_3$ and event $E$ be drawing $1$ white and $1$ red ball.
Since one box is chosen randomly,
$P(B_1)=P(B_2)=P(B_3)=\frac{1}{3}$
For first box,
$P(E|B_1)=\frac{\binom{2}{1}\binom{4}{1}}{\binom{9}{2}}=\frac{8}{36}=\frac{2}{9}$
For second box,
$P(E|B_2)=\frac{\binom{3}{1}\binom{2}{1}}{\binom{7}{2}}=\frac{6}{21}=\frac{2}{7}$
For third box,
$P(E|B_3)=\frac{\binom{4}{1}\binom{3}{1}}{\binom{8}{2}}=\frac{12}{28}=\frac{3}{7}$
Using Bayes theorem,
$P(B_1|E)=\frac{P(B_1)P(E|B_1)}{P(B_1)P(E|B_1)+P(B_2)P(E|B_2)+P(B_3)P(E|B_3)}$
$P(B_1|E)=\frac{\frac{1}{3}\times\frac{2}{9}}{\frac{1}{3}\times\frac{2}{9}+\frac{1}{3}\times\frac{2}{7}+\frac{1}{3}\times\frac{3}{7}}$
$P(B_1|E)=\frac{\frac{2}{9}}{\frac{2}{9}+\frac{2}{7}+\frac{3}{7}}$
$P(B_1|E)=\frac{\frac{2}{9}}{\frac{59}{63}}=\frac{14}{59}=0.237$
Qus : 20
UGC NET Computer Science PYQ
2
Which of the following is principal conjunctive normal form for $[(p \vee q)\wedge[p \to q]]$?
1
$p \vee \neg q$ 2
$p \vee q$ 3
$\neg p \vee q$ 4
$\neg p \vee \neg q$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2019 (Paper II) PYQ
Solution Given statement is
$[(p \vee q)\wedge[p \to q]]$
We know that
$p \to q \equiv \neg p \vee q$
So,
$[(p \vee q)\wedge[p \to q]]=(p \vee q)\wedge(\neg p \vee q)$
Now truth table se false cases:
When $p=0,\ q=0$, expression false hoti hai.
Corresponding maxterm is
$p \vee q$
When $p=1,\ q=0$, expression false hoti hai.
Corresponding maxterm is
$\neg p \vee q$
Therefore, PCNF is
$(p \vee q)\wedge(\neg p \vee q)$
Hence, correct PCNF is $(p \vee q)\wedge(\neg p \vee q)$ .
Qus : 22
UGC NET Computer Science PYQ
3
For the regular languages and context free languages which is not correct?
A. both are closed under union operation
B. both are closed under concatenation operation
C. both are closed under intersection operation
D. both are closed under complementation operation
E. both are closed under kleene star operation
1
A and B Only 2
B and C Only 3
C and D Only 4
D and E Only Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ
Solution Regular languages:
Closed under union, concatenation, intersection, complement, kleene star.
Context-free languages:
Closed under union, concatenation, kleene star.
Not closed under intersection and complement.
Thus incorrect statements:
C and D
Qus : 23
UGC NET Computer Science PYQ
4
List-I
List-II
(a) $p \to q$
(i) $\neg(q \to \neg p)$
(b) $p \vee q$
(ii) $p \wedge \neg q$
(c) $p \wedge q$
(iii) $\neg p \to q$
(d) $\neg(p \to q)$
(iv) $\neg p \vee q$
Choose the correct option from those given below:
1
$(a)-(ii);\ (b)-(iii);\ (c)-(i);\ (d)-(iv)$ 2
$(a)-(ii);\ (b)-(i);\ (c)-(iii);\ (d)-(iv)$ 3
$(a)-(iv);\ (b)-(i);\ (c)-(iii);\ (d)-(ii)$ 4
$(a)-(iv);\ (b)-(iii);\ (c)-(i);\ (d)-(ii)$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2019 (Paper II) PYQ
Solution First,
$p \to q \equiv \neg p \vee q$
So,
$(a) \rightarrow (iv)$
Now,
$\neg p \to q \equiv p \vee q$
So,
$(b) \rightarrow (iii)$
Now,
$q \to \neg p \equiv \neg q \vee \neg p$
Therefore,
$\neg(q \to \neg p)=\neg(\neg q \vee \neg p)$
Using De Morgan’s law,
$\neg(\neg q \vee \neg p)=q \wedge p$
$=p \wedge q$
So,
$(c) \rightarrow (i)$
Now,
$\neg(p \to q)=\neg(\neg p \vee q)$
Using De Morgan’s law,
$\neg(\neg p \vee q)=p \wedge \neg q$
So,
$(d) \rightarrow (ii)$
Therefore, the correct matching is
$(a)-(iv);\ (b)-(iii);\ (c)-(i);\ (d)-(ii)$
Qus : 24
UGC NET Computer Science PYQ
4
Consider the statement below. A person who is radical $(R)$ is electable $(E)$ if he or she is conservative $(C)$, but otherwise is not electable. Few probable logical assertions of the above sentence are given below. (A) $(R\land E)\Leftrightarrow C$ (B) $R\Rightarrow(E\Leftrightarrow C)$ (C) $R\Rightarrow((C\Rightarrow E)\lor \neg E)$ (D) $(\neg R\lor \neg E\lor C)\land(\neg R\lor \neg C\lor E)$ Which of the above logical assertions are true? Choose the correct answer from the options given below:
1
(B) only 2
(C) only 3
(A) and (C) only 4
(B) and (D) only Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2020 (Paper II) PYQ
Solution Given statement says that a radical person is electable if he or she is conservative, otherwise not electable. This means, for a radical person, electability depends exactly on conservativeness. So, the correct logical form is: $R\Rightarrow(E\Leftrightarrow C)$ Therefore, statement (B) is true. Now, $E\Leftrightarrow C$ can be written as: $(E\Rightarrow C)\land(C\Rightarrow E)$ So, $R\Rightarrow[(E\Rightarrow C)\land(C\Rightarrow E)]$ Now convert implications: $E\Rightarrow C\equiv \neg E\lor C$ $C\Rightarrow E\equiv \neg C\lor E$ Therefore, $R\Rightarrow[(\neg E\lor C)\land(\neg C\lor E)]$ This is equivalent to: $(\neg R\lor \neg E\lor C)\land(\neg R\lor \neg C\lor E)$ So, statement (D) is also true. Statement (A) is not correct because it says that a person is conservative if and only if the person is radical and electable, which is not the meaning of the given sentence. Statement (C) is not the exact logical assertion of the given sentence. Therefore, correct statements are (B) and (D).
Qus : 25
UGC NET Computer Science PYQ
1
Find the zero-one matrix of the transitive closure of the relation given by the matrix $A$:
1
$\left[\begin{array}{ccc}1 & 1 & 1\\0 & 1 & 0\\1 & 1 & 1\end{array}\right]$ 2
$\left[\begin{array}{ccc}1 & 0 & 1\\0 & 1 & 0\\1 & 1 & 0\end{array}\right]$ 3
$\left[\begin{array}{ccc}1 & 0 & 1\\0 & 1 & 0\\1 & 0 & 1\end{array}\right]$ 4
$\left[\begin{array}{ccc}1 & 1 & 1\\0 & 1 & 0\\1 & 0 & 1\end{array}\right]$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2019 (Paper II) PYQ
Solution Given matrix is
$A=\left[\begin{array}{ccc}1 & 0 & 1\\0 & 1 & 0\\1 & 1 & 0\end{array}\right]$
From the matrix, the relation contains:
$1 \to 1,\ 1 \to 3,\ 2 \to 2,\ 3 \to 1,\ 3 \to 2$
Now, since $1 \to 3$ and $3 \to 2$, therefore $1 \to 2$ must be added.
Also, since $3 \to 1$ and $1 \to 3$, therefore $3 \to 3$ must be added.
So, the transitive closure matrix is
$\left[\begin{array}{ccc}1 & 1 & 1\\0 & 1 & 0\\1 & 1 & 1\end{array}\right]$
Hence, the correct answer is Option 1 .
Qus : 26
UGC NET Computer Science PYQ
2
Consider an LPP given as:
$\text{Max } Z=2x_1-x_2+2x_3$
subject to the constraints:
$2x_1+x_2\le 10$
$x_1+2x_2-2x_3\le 20$
$x_1+2x_3\le 5$
$x_1,x_2,x_3\ge 0$
What shall be the solution of the LPP after applying first iteration of the Simplex Method?
1
$x_1=\dfrac{5}{2},\ x_2=0,\ x_3=0,\ Z=5$ 2
$x_1=0,\ x_2=0,\ x_3=\dfrac{5}{2},\ Z=5$ 3
$x_1=0,\ x_2=\dfrac{5}{2},\ x_3=0,\ Z=-\dfrac{5}{2}$ 4
$x_1=0,\ x_2=0,\ x_3=10,\ Z=20$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2019 (Paper II) PYQ
Solution Given objective function is
$\text{Max } Z=2x_1-x_2+2x_3$
In the objective function, the positive coefficient of $x_3$ is $2$.
Taking $x_3$ as the entering variable, we apply the minimum ratio test.
From the constraints:
$2x_1+x_2\le 10$
$x_1+2x_2-2x_3\le 20$
$x_1+2x_3\le 5$
Only the third constraint has positive coefficient of $x_3$.
So,
$2x_3=5$
$x_3=\dfrac{5}{2}$
At the first iteration,
$x_1=0,\ x_2=0,\ x_3=\dfrac{5}{2}$
Now,
$Z=2x_1-x_2+2x_3$
$Z=2(0)-0+2\left(\dfrac{5}{2}\right)$
$Z=5$
Qus : 27
UGC NET Computer Science PYQ
4
Arrange the following sets in increasing order, on the basis of their cardinality :
A. $A_1 = {{1,2},{3}}$
B. $A_2 = {{1},{2},{3},{4}}$
C. $A_3 = {{1,2,3,4,5,6}}$
D. $A_4 = {{1,2},{2,3,4},{5}}$
E. $A_5 = {{1},{2},{3},{4},{5}}$
Choose the correct answer from the options given below :
1
A, B, D, E, C 2
A, B, E, D, C 3
A, C, D, B, E 4
C, A, D, B, E Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ
Solution Cardinality means number of elements in the set.
$|A_1| = 2$
$|A_2| = 4$
$|A_3| = 1$
$|A_4| = 3$
$|A_5| = 5$
Increasing order:
$1 < 2 < 3 < 4 < 5$
So order becomes:
$A_3, A_1, A_4, A_2, A_5$
Qus : 28
UGC NET Computer Science PYQ
1
Which of the following have truth values if universe of discourse consists of all integers?
A. $\forall n \exists m (n^2 < m)$
B. $\exists m \forall n (n < m^2)$
C. $\exists n \exists m (n^2 + m^2 = 5)$
D. $\exists n \exists m (n^2 + m^2 = 6)$
E. $\exists n \exists m (n+m=4 \land n-m=1)$
Choose the correct answer from the options given below :
1
A, ,C Only 2
B, C, E Only 3
C, D, E Only 4
B, D Only Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ
Solution A:
For every integer $n$, choose $m=n^2+1$
Then $n^2<m$ → True
B:
$\exists m$ such that $n<m^2$ for all integers $n$.
But integers are unbounded → False
C:
$n^2+m^2=5$
Example: $1^2+2^2=5$ → True
D:
$n^2+m^2=6$
No integer solution → False
E:
$n+m=4$
$n-m=1$
Add equations:
$2n=5$ → $n=2.5$ (not integer) → False
True statements: A and C
Qus : 29
UGC NET Computer Science PYQ
4
Match List I with List II.Let $R_1=\{(1,1),(2,2),(3,3)\}$ and$R_2=\{(1,1),(1,2),(1,3),(1,4)\}$
List I
List II
(A) $R_1\cup R_2$
I. $\{(1,1),(1,2),(1,3),(1,4),(2,2),(3,3)\}$
(B) $R_1-R_2$
II. $\{(1,1)\}$
(C) $R_1\cap R_2$
III. $\{(1,2),(1,3),(1,4)\}$
(D) $R_2-R_1$
IV. $\{(2,2),(3,3)\}$
Choose the correct answer from the options given below:
1
A-I, B-II, C-IV, D-III 2
A-I, B-IV, C-III, D-II 3
A-I, B-III, C-II, D-IV 4
A-I, B-IV, C-II, D-III Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2020 (Paper II) PYQ
Solution Given, $R_1=\{(1,1),(2,2),(3,3)\}$ $R_2=\{(1,1),(1,2),(1,3),(1,4)\}$ Now, $R_1\cup R_2$ means all elements of $R_1$ and $R_2$. So, $R_1\cup R_2=\{(1,1),(1,2),(1,3),(1,4),(2,2),(3,3)\}$ Therefore, (A) matches with I. Now, $R_1-R_2$ means elements that are in $R_1$ but not in $R_2$. Common element is $(1,1)$. So, $R_1-R_2=\{(2,2),(3,3)\}$ Therefore, (B) matches with IV. Now, $R_1\cap R_2$ means common elements of $R_1$ and $R_2$. So, $R_1\cap R_2=\{(1,1)\}$ Therefore, (C) matches with II. Now, $R_2-R_1$ means elements that are in $R_2$ but not in $R_1$. So, $R_2-R_1=\{(1,2),(1,3),(1,4)\}$ Therefore, (D) matches with III. Final matching is: A-I, B-IV, C-II, D-III
Qus : 30
UGC NET Computer Science PYQ
3
Maximize $z=5x_1+12x_2+4x_3$ Subject to $x_1+2x_2+x_3=10$ $2x_1-x_2+3x_3=8$ $x_1,x_2,x_3\ge 0$ its dual problem is Minimize $w=10y_1+8y_2$ Subject to $y_1+2y_2\ge 5$ $2y_1-y_2\ge 12$ $y_1+3y_2\ge 4$ Which of the following is correct?
1
$y_1\ge 0,y_2$ unrestricted 2
$y_1\ge 0,y_2\ge 0$ 3
$y_1$ is unrestricted, $y_2\ge 0$ 4
$y_1$ is unrestricted, $y_2$ restricted Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Sep 2022 (Paper II) PYQ
Solution In primal maximization problem, If the constraint is equality type, then the corresponding dual variable is unrestricted. Here, first constraint is equality type, so $y_1$ is unrestricted. The expected condition for second dual variable is $y_2\ge 0$
Qus : 35
UGC NET Computer Science PYQ
2
In lexicographic ordering, comparison is done from left to right. Given order is: $0<1$ Now compare the given strings: $0001$ comes before $001$ because at the third position, $0<1$. So, $0001<001$ Now, $001<010$ because at the second position, $0<1$. Also, $010<0101$ because $010$ is a prefix of $0101$. Now compare $0101$ and $011$: First digit is same. Second digit is same. Third digit gives: $0<1$ So, $0101<011$ Therefore, the correct lexicographic order is: $0001<001<010<0101<011$
1
$001<010<011<0001<0101$ 2
$0001<001<010<0101<011$ 3
$0001<0101<001<010<011$ 4
$001<010<0001<0101<011$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2020 (Paper II) PYQ
Solution Greedy Best-First Search selects the node that appears closest to the goal according to heuristic value. It may get trapped and can be incomplete even if the search space is finite. So, (A) matches with II. $A^*$ search is optimal and complete under proper conditions, but its computation and space complexity are very high because it stores many generated nodes. So, (B) matches with IV. Recursive Best-First Search uses limited memory and its space complexity is linear in depth. So, (C) matches with I. $SMA^*$ means Simplified Memory-Bounded $A^*$. It is optimal if the optimal solution is reachable within available memory; otherwise, it returns the best reachable solution. So, (D) matches with III. Final matching is: A-II, B-IV, C-I, D-III
Qus : 36
UGC NET Computer Science PYQ
1
Arrange the steps of Mathematical Modeling:
A. Solution fitting with data
B. Formulation mathematically
C. Solve mathematically
D. Repeat formulation if it fits worst with data
E. Interpretation results
1
B, C, A, D, E 2
B, A, D, C, E 3
D, A, B, C, E 4
E, D, C, A, B Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ
Solution Typical modeling steps:
Formulate model mathematically → B
Solve mathematically → C
Fit solution with data → A
If poor fit, reformulate → D
Interpret results → E
Correct sequence:
B → C → A → D → E
Qus : 37
UGC NET Computer Science PYQ
2
Arrange in appropriate order, the construction of a finite automata:
A. Minimum State DFA
B. Regular Expression
C. NFA-ε
D. Problem Statement
E. DFA
1
B, C, E, A, D 2
D, B, C, E, A 3
C, E, B, A, D 4
A, D, C, B, E Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ
Solution Typical construction steps:
Problem statement → D
Convert to regular expression → B
Convert to NFA-ε → C
Convert to DFA → E
Minimize DFA → A
Order:
D → B → C → E → A
Qus : 38
UGC NET Computer Science PYQ
1
Given below are two statements: Statement I: $5$ divides $n^5-n$ whenever $n$ is a nonnegative integer. Statement II: $6$ divides $n^3-n$ whenever $n$ is a nonnegative integer. In the light of the above statements, choose the correct 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 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2020 (Paper II) PYQ
Solution Statement I: We need to check whether $5$ divides $n^5-n$. By Fermat's theorem, $n^5\equiv n\pmod 5$ So, $n^5-n\equiv 0\pmod 5$ Therefore, $5$ divides $n^5-n$. So, Statement I is correct. Statement II: $n^3-n=n(n-1)(n+1)$ This is the product of three consecutive integers. In any three consecutive integers, one number is divisible by $3$ and at least one number is divisible by $2$. So, the product is divisible by $6$. Therefore, $6$ divides $n^3-n$. So, Statement II is also correct.
Qus : 43
UGC NET Computer Science PYQ
1
Consider universe positive integer $X = {1 \le n \le 8}$, proposition P = "n is an even integers", Q = "$(3 \le n \le 7) \land (n \ne 6)$". Then truth set of $P \leftrightarrow Q$ is
1
{1, 4} 2
{2, 6} 3
{3, 4, 5} 4
{1} Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2023 (Paper II) PYQ
Solution Universe:
$X = {1,2,3,4,5,6,7,8}$
P is true for even integers:
$P = {2,4,6,8}$
Q is true for:
$Q = {3,4,5,7}$
$P \leftrightarrow Q$ is true when both P and Q have same truth value.
Both true:
$P \cap Q = {4}$
Both false:
Elements not in $P \cup Q = {1}$
Therefore,
Truth set = ${1,4}$
Qus : 44
UGC NET Computer Science PYQ
1
If $f(n) = 5f(n/2) + 3$ and $f(1) = 7$ is a recurrence relation where $k$ is a positive integer, then $f(2^k) =$
1
$5^k\left(\frac{31}{4}\right) - \frac{3}{4}$ 2
$5^k\left(\frac{29}{4}\right)$ 3
$2^k\left(\frac{31}{4}\right) - \frac{3}{4}$ 4
$2^k\left(\frac{29}{4}\right)$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ
Solution Let
$f(2^k) = g(k)$
Then recurrence becomes
$g(k) = 5g(k-1) + 3$
with
$g(0) = f(1) = 7$
Solve recurrence.
Homogeneous solution:
$g_h(k) = C5^k$
Particular solution:
Assume constant $A$
$A = 5A + 3$
$-4A = 3$
$A = -\frac{3}{4}$
General solution:
$g(k) = C5^k - \frac{3}{4}$
Use initial condition
$g(0) = 7$
$C - \frac{3}{4} = 7$
$C = \frac{31}{4}$
Thus
$f(2^k) = \frac{31}{4}5^k - \frac{3}{4}$
Qus : 45
UGC NET Computer Science PYQ
2
A basic feasible solution of an $m \times n$ transportation problem is said to be non-degenerate, if basic feasible solution contains exactly $...............$ number of individual allocation in $...............$ positions.
1
$m+n+1$, independent 2
$m+n-1$, independent 3
$m+n-1$, appropriate 4
$m-n+1$, independent Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2019 (Paper II) PYQ
Solution In an $m \times n$ transportation problem, a basic feasible solution is called non-degenerate when it has exactly $m+n-1$ occupied cells or allocations.
These allocations should be in independent positions, means they should not form a closed loop.
So, the required blanks are $m+n-1$ and independent.
Qus : 46
UGC NET Computer Science PYQ
3
Consider the following Linear Programming Problem $($LPP$)$:
Maximize $z=x_1+x_2$
Subject to the constraints:
$x_1+2x_2\le 2000$
$x_1+x_2\le 1500$
$x_2\le 600$
and $x_1,x_2\ge 0$
The solution of the above LPP is:
1
$x_1=750,\ x_2=750,\ z=1500$ 2
$x_1=500,\ x_2=1000,\ z=1500$ 3
$x_1=1000,\ x_2=500,\ z=1500$ 4
$x_1=900,\ x_2=600,\ z=1500$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2019 (Paper II) PYQ
Solution $x_1=1000,\ x_2=500$
Now,
$x_1+2x_2=1000+2(500)=2000\le 2000$
$x_1+x_2=1000+500=1500\le 1500$
$x_2=500\le 600$
Also,
$z=x_1+x_2=1000+500=1500$
So, all constraints are satisfied.
Qus : 49
UGC NET Computer Science PYQ
1
What are the greatest lower bound $($GLB$)$ and the least upper bound $($LUB$)$ of the sets $A={3,9,12}$ and $B={1,2,4,5,10}$ if they exist in poset $(Z^+,/)$?
1
$A(GLB-3,\ LUB-36):B(GLB-1,\ LUB-20)$ 2
$A(GLB-3,\ LUB-12):B(GLB-1,\ LUB-10)$ 3
$A(GLB-1,\ LUB-36):B(GLB-2,\ LUB-20)$ 4
$A(GLB-1,\ LUB-12):B(GLB-2,\ LUB-10)$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2019 (Paper II) PYQ
Solution In the poset $(Z^+,/)$, the relation is based on divisibility.
Here,
$GLB=$ greatest common divisor $($GCD$)$
$LUB=$ least common multiple $($LCM$)$
For set $A={3,9,12}$:
$GLB(A)=GCD(3,9,12)=3$
$LUB(A)=LCM(3,9,12)=36$
For set $B={1,2,4,5,10}$:
$GLB(B)=GCD(1,2,4,5,10)=1$
$LUB(B)=LCM(1,2,4,5,10)=20$
So,
$A(GLB-3,\ LUB-36)$
and
$B(GLB-1,\ LUB-20)$
Qus : 50
UGC NET Computer Science PYQ
2
The coefficient of $x^2y^3z^2$ in the expansion of $(x+y+z)^7$ is
1
$C(7,3)\times C(5,2)$ 2
$C(7,2)\times C(5,3)$ 3
$C(7,3)\times C(7,2)$ 4
$C(5,3)\times C(5,2)$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ
Solution In $(x+y+z)^7$, the general coefficient of $x^ay^bz^c$ is
$\frac{7!}{a!b!c!}$
Here,
$a=2,\ b=3,\ c=2$
So, coefficient is
$\frac{7!}{2!3!2!}$
$=C(7,2)\times C(5,3)$
Qus : 51
UGC NET Computer Science PYQ
3
Let $P$ be the set of all people. Let $R$ be a binary relation on $P$ such that $(a,b)\in R$ if $a$ is a brother of $b$. Is $R$ symmetric, transitive, an equivalence relation, a partial order relation?
1
$NO,\ NO,\ NO,\ NO$ 2
$NO,\ NO,\ YES,\ NO$ 3
$NO,\ YES,\ NO,\ NO$ 4
$NO,\ YES,\ YES,\ NO$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2019 (Paper II) PYQ
Solution Relation $R$ is defined as:
$(a,b)\in R$ if $a$ is a brother of $b$.
Symmetric:
If $a$ is brother of $b$, then it is not necessary that $b$ is brother of $a$.
For example, $b$ can be female. So, $b$ will not be brother of $a$.
Therefore, $R$ is not symmetric.
Transitive:
If $a$ is brother of $b$ and $b$ is brother of $c$, then $a$ is also brother of $c$.
Therefore, $R$ is transitive.
Equivalence relation:
For equivalence relation, relation must be reflexive, symmetric and transitive.
Here, $R$ is not symmetric and not reflexive.
So, $R$ is not an equivalence relation.
Partial order relation:
For partial order relation, relation must be reflexive, antisymmetric and transitive.
Here, $R$ is not reflexive.
So, $R$ is not a partial order relation.
Qus : 56
UGC NET Computer Science PYQ
3
Consider the complexity class $CO-NP$ as the set of languages $L$ such that $\overline{L}\in NP$, and the following two statements:
$S_1: P\subseteq CO-NP$
$S_2:$ If $NP\ne CO-NP$, then $P\ne NP$
Which of the following is/are correct?
1
Only $S_1$ 2
Only $S_2$ 3
Both $S_1$ and $S_2$ 4
Neither $S_1$ nor $S_2$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2019 (Paper II) PYQ
Solution Statement $S_1$ is true.
Class $P$ is closed under complement. Also, $P\subseteq NP$.
So,
$P\subseteq CO-NP$
Statement $S_2$ is also true.
If $P=NP$, then since $P$ is closed under complement, we would get
$NP=CO-NP$
But the statement says $NP\ne CO-NP$.
Therefore, $P\ne NP$.
Hence, both $S_1$ and $S_2$ are correct.
Qus : 57
UGC NET Computer Science PYQ
1
Consider the following statements:
$S_1$: For any integer $n>1$, $a^{\phi(n)}\equiv 1\ (\text{mod }n)$ for all $a\in Z_n^*$, where $\phi(n)$ is Euler's phi function.
$S_2$: If $p$ is prime, then $a^p\equiv 1\ (\text{mod }p)$ for all $a\in Z_p^*$.
Which one of the following is/are correct?
1
Only $S_1$ 2
Only $S_2$ 3
Both $S_1$ and $S_2$ 4
Neither $S_1$ nor $S_2$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2019 (Paper II) PYQ
Solution Statement $S_1$ is true by Euler's theorem.
If $a\in Z_n^*$, then $a$ and $n$ are relatively prime.
So,
$a^{\phi(n)}\equiv 1\ (\text{mod }n)$
Now consider $S_2$.
For prime $p$, Fermat's theorem gives
$a^{p-1}\equiv 1\ (\text{mod }p)$
for $a\in Z_p^*$.
But $S_2$ says
$a^p\equiv 1\ (\text{mod }p)$
This is not generally true.
Actually,
$a^p\equiv a\ (\text{mod }p)$
So, $S_2$ is false.
Qus : 59
UGC NET Computer Science PYQ
3
Consider $\alpha,\beta,\gamma$ as logical variables. Identify which of the following represents correct logical equivalence: (A) $(\alpha\land(\beta\lor\gamma))\equiv((\alpha\land\beta)\lor(\alpha\land\gamma))$ (B) $(\alpha\lor\beta)\equiv\neg\alpha\lor\beta$ (C) $(\alpha\Rightarrow\beta)\equiv(\neg\beta\Rightarrow\neg\alpha)$ (D) $(\neg(\alpha\lor\beta))\equiv(\neg\alpha\Rightarrow\neg\beta)$ Choose the correct answer from the options given below:
1
(A) and (D) only 2
(B) and (C) only 3
(A) and (C) only 4
(B) and (D) only Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Sep 2022 (Paper II) PYQ
Solution Check statement (A): $(\alpha\land(\beta\lor\gamma))\equiv((\alpha\land\beta)\lor(\alpha\land\gamma))$ This is distributive law of logic. So, statement (A) is true. Check statement (B): $(\alpha\lor\beta)\equiv\neg\alpha\lor\beta$ This is not always true. For example, let $\alpha=True$ and $\beta=False$. Then, $\alpha\lor\beta=True\lor False=True$ But, $\neg\alpha\lor\beta=False\lor False=False$ Both values are different. So, statement (B) is false. Check statement (C): $(\alpha\Rightarrow\beta)\equiv(\neg\beta\Rightarrow\neg\alpha)$ This is contrapositive law. Also, $\alpha\Rightarrow\beta\equiv\neg\alpha\lor\beta$ And, $\neg\beta\Rightarrow\neg\alpha\equiv\beta\lor\neg\alpha$ Since, $\neg\alpha\lor\beta\equiv\beta\lor\neg\alpha$ So, statement (C) is true. Check statement (D): $(\neg(\alpha\lor\beta))\equiv(\neg\alpha\Rightarrow\neg\beta)$ Using De Morgan's law, $\neg(\alpha\lor\beta)\equiv\neg\alpha\land\neg\beta$ Now, $\neg\alpha\Rightarrow\neg\beta\equiv\alpha\lor\neg\beta$ These two are not equivalent. So, statement (D) is false. Therefore, only (A) and (C) are correct.
Qus : 60
UGC NET Computer Science PYQ
3
Let $(\{a,b\},*)$ be a semigroup, where $a*a=b$. (A) $a*b=b*a$ (B) $b*b=b$ Choose the most appropriate answer from the options given below:
1
(A) only true 2
(B) only true 3
Both (A) and (B) true 4
Neither (A) nor (B) true Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Sep 2022 (Paper II) PYQ
Solution Given, $(\{a,b\},*)$ is a semigroup. So, the operation $*$ is associative. That means, $(x*y)*z=x*(y*z)$ Also given, $a*a=b$ Now check statement (A): Using associativity, $(a*a)*a=a*(a*a)$ Since $a*a=b$, we get: $b*a=a*b$ So, $a*b=b*a$ Therefore, statement (A) is true. Now check statement (B): We need to prove $b*b=b$. Since $b=a*a$, we can write: $b*b=(a*a)*b$ Using associativity, $(a*a)*b=a*(a*b)$ Now, $a*b$ must be either $a$ or $b$ because the set is $\{a,b\}$. Case 1: If $a*b=a$, then $a*(a*b)=a*a=b$ Case 2: If $a*b=b$, then $a*(a*b)=a*b=b$ In both cases, $b*b=b$ Therefore, statement (B) is also true. Hence, both (A) and (B) are true.
Qus : 61
UGC NET Computer Science PYQ
1
Let $\epsilon=0.0005$ and Let $R_e$ be the relation $\{(x,y)\in R^2:|x-y|<\epsilon\}$, $R_e$ could be interpreted as the relation approximately equal. $R_e$ is (A) Reflexive (B) Symmetric (C) transitive Choose the correct answer from the options given below:
1
(A) and (B) only true 2
(B) and (C) only true 3
(A) and (C) only true 4
(A), (B) and (C) true Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Sep 2022 (Paper II) PYQ
Solution
Solution:
Given relation is:
$R_e=\{(x,y)\in R^2:|x-y|<\epsilon\}$
where,
$\epsilon=0.0005$
Now check each property.
Check reflexive:
A relation is reflexive if every element is related to itself.
For any real number $x$,
$|x-x|=0$
Since,
$0<\epsilon$
So,
$|x-x|<\epsilon$
Therefore, $(x,x)\in R_e$.
Hence, $R_e$ is reflexive.
So, statement (A) is true.
Check symmetric:
A relation is symmetric if $(x,y)\in R_e$ implies $(y,x)\in R_e$.
If,
$(x,y)\in R_e$
then,
$|x-y|<\epsilon$
But,
$|x-y|=|y-x|$
So,
$|y-x|<\epsilon$
Therefore, $(y,x)\in R_e$.
Hence, $R_e$ is symmetric.
So, statement (B) is true.
Check transitive:
A relation is transitive if $(x,y)\in R_e$ and $(y,z)\in R_e$ imply $(x,z)\in R_e$.
Let,
$x=0,\ y=0.0004,\ z=0.0008$
Now,
$|x-y|=|0-0.0004|=0.0004<0.0005$
So, $(x,y)\in R_e$.
Also,
$|y-z|=|0.0004-0.0008|=0.0004<0.0005$
So, $(y,z)\in R_e$.
But,
$|x-z|=|0-0.0008|=0.0008$
Since,
$0.0008>0.0005$
So, $(x,z)\notin R_e$.
Therefore, $R_e$ is not transitive.
So, statement (C) is false.
Hence, only (A) and (B) are true.
Qus : 62
UGC NET Computer Science PYQ
3
Which of the following problems is/are decidable problem(s) on Turing machine $M$?
$(a)$ $G$ is a CFG with $L(G)=\phi$
$(b)$ There exist two TMs $M_1$ and $M_2$ such that $L(M)\subseteq L(M_1)\cup L(M_2)$
$(c)$ $M$ is a TM that accepts $\omega$ using at most $2^{|\omega|}$ cells of tape
1
$(a)$ and $(b)$ only 2
$(a)$ only 3
$(a),(b)$ and $(c)$ 4
$(c)$ only Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2019 (Paper II) PYQ
Solution Statement $(a)$ is decidable because emptiness of a context-free grammar is decidable.
Statement $(b)$ is also decidable in this form, because recursively enumerable languages are closed under union, and the condition can be satisfied by suitable Turing machines.
Statement $(c)$ is decidable because the tape usage is bounded by $2^{|\omega|}$. With bounded tape, the number of configurations becomes finite, so we can decide whether $M$ accepts $\omega$ within this bound.
Therefore, all three statements are decidable.
Qus : 63
UGC NET Computer Science PYQ
3
for a statement, a language $L\subseteq \Sigma^*$ is recursive if there exists some Turing machine $M$.
Which of the following conditions is satisfied for any string $\omega$?
1
If $\omega\in L$, then $M$ accepts $\omega$ and $M$ will not halt 2
If $\omega\notin L$, then $M$ accepts $\omega$ and $M$ will halt by reaching at final state 3
If $\omega\notin L$, then $M$ halts without reaching to acceptable state 4
If $\omega\in L$, then $M$ halts without reaching to an acceptable state Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2019 (Paper II) PYQ
Solution A recursive language is decided by a Turing machine that halts on every input.
If $\omega\in L$, then the machine halts and accepts $\omega$.
If $\omega\notin L$, then the machine halts and rejects $\omega$.
Rejecting means it halts without reaching an acceptable state.
Therefore, the correct condition is:
If $\omega\notin L$, then $M$ halts without reaching an acceptable state.
Qus : 67
UGC NET Computer Science PYQ
1
Consider the following statements:
A. A group can have zero elements.
B. A group cannot have any element which is idempotent except the identity element.
C. An isomorphism from a group $\langle G,\rangle$ to $\langle G,\rangle$ is called an automorphism.
D. If every element in a group is its own inverse, then the group must be abelian.
Choose the correct answer about the four statements given above.
1
B, C and D are correct 2
Only A and C are correct
3
Only B and C are correct 4
All A, B, C and D are correct. Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ
Solution Statement A is false.
A group cannot have zero elements because every group must contain an identity element.
Statement B is true.
If $a$ is idempotent, then
$a*a=a$
Multiplying by $a^{-1}$,
$a=e$
So, only identity element is idempotent.
Statement C is true.
An isomorphism from a group to itself is called an automorphism.
Statement D is true.
If every element is its own inverse, then
$a^{-1}=a$ and $b^{-1}=b$
Now,
$(ab)^{-1}=b^{-1}a^{-1}=ba$
But every element is its own inverse, so
$(ab)^{-1}=ab$
Therefore,
$ab=ba$
Hence, the group is abelian.
So, correct option is:
$\boxed{(a)\ \text{B, C and D are correct}}$
Qus : 68
UGC NET Computer Science PYQ
2
Consider the following statements:
A. The number of labelled binary trees possible with $n$ nodes is $\frac{(2n)!}{(n+1)!}$
B. The number of binary search trees possible with $n$ nodes is $\frac{(2n)!}{(n+1)!n!}$
C. The number of unlabeled binary trees possible with $n$ nodes is $\frac{C(2n,n)}{(n+1)!}$
D. The number of simple, undirected and labelled graphs possible with $n$ vertices is $2^{\frac{n(n-1)}{2}}$
1
A, B and C are only correct 2
A, B and D are only correct
3
B, C and D are only correct 4
A, C and D are only correct Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ
Solution A is correct.
Number of labelled binary trees with $n$ nodes:
$=C_n\times n!$
$=\frac{(2n)!}{(n+1)!n!}\times n!$
$=\frac{(2n)!}{(n+1)!}$
B is correct.
Number of binary search trees with $n$ nodes:
$=C_n=\frac{(2n)!}{(n+1)!n!}$
C is incorrect.
Correct formula for unlabeled binary trees is:
$C_n=\frac{1}{n+1}C(2n,n)$
D is correct.
Number of simple undirected labelled graphs:
$=2^{\frac{n(n-1)}{2}}$
So, correct option is:
$\boxed{(b)\ \text{A, B and D are only correct}}$
Qus : 69
UGC NET Computer Science PYQ
4
The relation
$R={(1,3),(1,1),(3,1),(1,2),(3,3),(4,4)}$
defined in ${1,2,3,4}$ is ____
1
Reflexive, Symmetric but not Transitive 2
Symmetric, anti-symmetric and transitive
3
Asymmetric, anti-symmetric and not transitive 4
Not reflexive, not symmetric and not transitive Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ
Solution For reflexive relation, $(1,1),(2,2),(3,3),(4,4)$ must be present.
But $(2,2)$ is missing.
So, relation is not reflexive.
For symmetric relation, if $(1,2)$ is present, then $(2,1)$ must also be present.
But $(2,1)$ is missing.
So, relation is not symmetric.
For transitive relation, since $(3,1)$ and $(1,2)$ are present, then $(3,2)$ must be present.
But $(3,2)$ is missing.
So, relation is not transitive.
Qus : 70
UGC NET Computer Science PYQ
3
Let P denote “She is intelligent” and Q denote “She is happy.”
Given statements:
(a) If she is intelligent, then she is unhappy.
(b) She is neither intelligent nor happy.
(c) It is necessary to be not intelligent in order to be happy.
(d) To be not intelligent is to be unhappy.
Which option gives the correct propositional expressions?
(a) P→¬Q; (b) P ∧ ¬Q; (c) Q→¬P; (d) P→¬Q
(a) P→Q; (b) ¬P ∧ ¬Q; (c) ¬Q→P; (d) ¬P→¬Q
(a) P→¬Q; (b) ¬P ∧ ¬Q; (c) Q→¬P; (d) ¬P→¬Q
(a) P→¬Q; (b) P ∧ ¬Q; (c) Q↔P; (d) ¬P→¬Q
1
1 2
2 3
3 4
4 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science 26 June 2025 (Paper II) PYQ
Solution
Translate each statement:
(a) “If intelligent then unhappy” ⇒ P → ¬Q.
(b) “Neither intelligent nor happy” ⇒ ¬P ∧ ¬Q.
(c) “Being not intelligent is necessary for being happy” ⇒ Q → ¬P.
(d) “Not intelligent implies unhappy” ⇒ ¬P → ¬Q.
Only Option 3 matches all four translations.
Answer: 3
Qus : 71
UGC NET Computer Science PYQ
1
Given below are two statements: one is labelled as Assertion (A) and the other is labelled as Reason (R): Assertion (A): $\bar{p}$ Reason (R): $(r\to \bar{q},\ r\lor s,\ s\to \bar{q},\ p\to q)$ In the light of the above statements, choose the correct answer from the options given below:
1
Both (A) and (R) are true and (R) is the correct explanation of (A) 2
Both (A) and (R) are true but (R) is NOT the correct explanation of (A) 3
(A) is true but (R) is false 4
(A) is false but (R) is true Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Sep 2022 (Paper II) PYQ
Solution Given Reason statements are: $r\to \bar{q}$ $r\lor s$ $s\to \bar{q}$ $p\to q$ From $r\lor s$, either $r$ is true or $s$ is true. Case 1: If $r$ is true, then using $r\to \bar{q}$, we get: $\bar{q}$ Case 2: If $s$ is true, then using $s\to \bar{q}$, we get: $\bar{q}$ So, in both cases: $\bar{q}$ is true. Now we also have: $p\to q$ Using modus tollens: $p\to q$ and $\bar{q}$ imply $\bar{p}$. Therefore, Assertion (A), that is $\bar{p}$, is true. Also, Reason (R) correctly explains how $\bar{p}$ is obtained. Hence, both (A) and (R) are true and (R) is the correct explanation of (A).
Qus : 72
UGC NET Computer Science PYQ
1
In mathematical logic, which of the following are statements?
$(i)$ There will be snow in January.
$(ii)$ What is the time now?
$(iii)$ Today is Sunday.
$(iv)$ You must study Discrete Mathematics.
Choose the correct answer from the code given below:
1
$(i)$ and $(iii)$ 2
$(i)$ and $(ii)$ 3
$(ii)$ and $(iv)$ 4
$(iii)$ and $(iv)$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2018 (Paper II) PYQ
Solution A statement in mathematical logic is a declarative sentence which has a definite truth value, either true or false.
$(i)$ There will be snow in January.
This is a declarative sentence. So, it is a statement.
$(ii)$ What is the time now?
This is a question. So, it is not a statement.
$(iii)$ Today is Sunday.
This is a declarative sentence. So, it is a statement.
$(iv)$ You must study Discrete Mathematics.
This is a command or advice. So, it is not a statement.
Therefore, only $(i)$ and $(iii)$ are statements.
Qus : 73
UGC NET Computer Science PYQ
4
Match List I with List II and choose the correct answer from the code given below.
List I
List II
$(a)$ Equivalence
$(i)\ p\Rightarrow q$
$(b)$ Contrapositive
$(ii)\ p\Rightarrow q : q\Rightarrow p$
$(c)$ Converse
$(iii)\ p\Rightarrow q : \sim q\Rightarrow \sim p$
$(d)$ Implication
$(iv)\ p\Leftrightarrow q$
1
$(a)-(i),\ (b)-(ii),\ (c)-(iii),\ (d)-(iv)$ 2
$(a)-(ii),\ (b)-(i),\ (c)-(iii),\ (d)-(iv)$ 3
$(a)-(iii),\ (b)-(iv),\ (c)-(ii),\ (d)-(i)$ 4
$(a)-(iv),\ (b)-(iii),\ (c)-(ii),\ (d)-(i)$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2018 (Paper II) PYQ
Solution Equivalence is represented by
$p\Leftrightarrow q$
So,
$(a)\rightarrow(iv)$
Contrapositive of $p\Rightarrow q$ is
$\sim q\Rightarrow \sim p$
So,
$(b)\rightarrow(iii)$
Converse of $p\Rightarrow q$ is
$q\Rightarrow p$
So,
$(c)\rightarrow(ii)$
Implication is represented by
$p\Rightarrow q$
So,
$(d)\rightarrow(i)$
Therefore, correct matching is
$(a)-(iv),\ (b)-(iii),\ (c)-(ii),\ (d)-(i)$
Qus : 74
UGC NET Computer Science PYQ
2
A box contains six red balls and four green balls. Four balls are selected at random from the box. What is the probability that two of the selected balls will be red and two will be green?
1
$\dfrac{1}{14}$ 2
$\dfrac{3}{7}$ 3
$\dfrac{1}{35}$ 4
$\dfrac{1}{9}$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2018 (Paper II) PYQ
Solution Total balls are
$6+4=10$
Number of ways to select $4$ balls from $10$ balls is
${}^{10}C_4$
We need exactly $2$ red balls and $2$ green balls.
Number of ways to select $2$ red balls from $6$ red balls is
${}^{6}C_2$
Number of ways to select $2$ green balls from $4$ green balls is
${}^{4}C_2$
So, required probability is
$\dfrac{{}^{6}C_2 \times {}^{4}C_2}{{}^{10}C_4}$
$=\dfrac{15 \times 6}{210}$
$=\dfrac{90}{210}$
$=\dfrac{3}{7}$
Qus : 75
UGC NET Computer Science PYQ
3
Which of the following rotations are correctly explained in the context of an AVL tree?
A. LL rotation: The new node is inserted in the left sub-tree of the left sub-tree of the critical node.
B. RR rotation: The new node is inserted in the right sub-tree of the right sub-tree of the critical node.
C. LR rotation: The new node is inserted in the right sub-tree of the left sub-tree of the critical node.
D. RL rotation: The new node is inserted in the left sub-tree of the right sub-tree of the critical node.
Choose the correct answer from the options given below:
1
A, D only 2
A, C Only
3
A, B, C and D 4
B, C Only Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ
Solution All four AVL rotation cases are correctly explained:
LL case: left of left
RR case: right of right
LR case: right of left
RL case: left of right
So, correct option is:
$\boxed{(c)\ \text{A, B, C and D}}$
Qus : 76
UGC NET Computer Science PYQ
1
A survey has been conducted on methods of commuter travel. Each respondent was asked to check Bus, Train or Automobile as a major method of travelling to work. More than one answer was permitted. The results reported were as follows:
Bus $30$ people; Train $35$ people; Automobile $100$ people; Bus and Train $15$ people; Bus and Automobile $15$ people, Train and Automobile $20$ people; and all the three methods $5$ people. How many people completed the survey form?
1
120 2
165 3
160 4
115 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2018 (Paper II) PYQ
Solution Let Bus, Train and Automobile be represented by $B,T,A$ respectively.
Given,
$n(B)=30$
$n(T)=35$
$n(A)=100$
$n(B\cap T)=15$
$n(B\cap A)=15$
$n(T\cap A)=20$
$n(B\cap T\cap A)=5$
Using the formula,
$n(B\cup T\cup A)=n(B)+n(T)+n(A)-n(B\cap T)-n(B\cap A)-n(T\cap A)+n(B\cap T\cap A)$
Now,
$n(B\cup T\cup A)=30+35+100-15-15-20+5$
$=165-50+5$
$=120$
Therefore, $120$ people completed the survey form.
Qus : 77
UGC NET Computer Science PYQ
1
For matrix multiplication, if we use divide and conquer algorithm, then ______
A. the running time is $T(n)=\Theta(n^3)$
B. the running time is $T(n)=\Theta(n^2\log n)$
C. The recurrence can be defined as $T(n)=8T(n/2)+\Theta(n^2)$
D. the recurrence relation is $T(n)=8T(2n)+\Theta(n^2\log n)$
E. Masters theorem, one of the cases is applicable
Choose the most appropriate answer from the options given below:
1
A, C, E only 2
A, D, E only
3
B, D, E only 4
B, C, D only Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ
Solution In divide and conquer matrix multiplication, matrix is divided into smaller submatrices.
There are $8$ recursive multiplications of size $n/2$.
So, recurrence is:
$T(n)=8T(n/2)+\Theta(n^2)$
Using Master Theorem:
$a=8,\ b=2$
$n^{\log_b a}=n^{\log_2 8}=n^3$
So,
$T(n)=\Theta(n^3)$
Therefore, A, C and E are correct.
Correct option is:
$\boxed{(a)\ \text{A, C, E only}}$
Qus : 78
UGC NET Computer Science PYQ
3
Consider the following statements:
$S_1:\forall xP(x)\vee \forall xQ(x)$ and $\forall x(P(x)\vee Q(x))$ are not logically equivalent.
$S_2:\exists xP(x)\wedge \exists xQ(x)$ and $\exists x(P(x)\wedge Q(x))$ are not logically equivalent.
Which of the following statements is/are correct?
1
Only $S_1$ 2
Only $S_2$ 3
Both $S_1$ and $S_2$ 4
Neither $S_1$ nor $S_2$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2019 (Paper II) PYQ
Solution For $S_1$:
$\forall xP(x)\vee \forall xQ(x)$ means either $P(x)$ is true for all $x$, or $Q(x)$ is true for all $x$.
But $\forall x(P(x)\vee Q(x))$ means for every $x$, at least one of $P(x)$ or $Q(x)$ is true.
These two statements are not logically equivalent.
So, $S_1$ is true.
For $S_2$:
$\exists xP(x)\wedge \exists xQ(x)$ means there exists some $x$ for $P(x)$ and there exists some $x$ for $Q(x)$. These may be different values.
But $\exists x(P(x)\wedge Q(x))$ means there exists the same $x$ for which both $P(x)$ and $Q(x)$ are true.
These two statements are also not logically equivalent.
So, $S_2$ is true.
Qus : 80
UGC NET Computer Science PYQ
1
Use Dual Simplex Method to solve the following problem:
Maximize
$z=-2x_1-3x_2$
subject to:
$x_1+x_2\geq 2$
$2x_1+x_2\leq 10$
$x_1+x_2\leq 8$
$x_1,x_2\geq 0$
1
$x_1=2,\ x_2=0,\ z=-4$ 2
$x_1=2,\ x_2=6,\ z=-22$ 3
$x_1=0,\ x_2=2,\ z=-6$ 4
$x_1=6,\ x_2=2,\ z=-18$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2018 (Paper II) PYQ
Solution Given objective function is
$z=-2x_1-3x_2$
To maximize $z=-2x_1-3x_2$, we need to minimize the negative loss.
The main lower constraint is
$x_1+x_2\geq 2$
Now check the feasible corner points on $x_1+x_2=2$:
If $x_2=0$, then
$x_1=2$
So, point is $(2,0)$.
At $(2,0)$,
$z=-2(2)-3(0)$
$z=-4$
If $x_1=0$, then
$x_2=2$
So, point is $(0,2)$.
At $(0,2)$,
$z=-2(0)-3(2)$
$z=-6$
Since $-4>-6$, maximum value is $-4$.
Also, $(2,0)$ satisfies the other constraints:
$2x_1+x_2=2(2)+0=4\leq 10$
$x_1+x_2=2+0=2\leq 8$
Therefore, optimal solution is
$x_1=2,\ x_2=0,\ z=-4$
Qus : 81
UGC NET Computer Science PYQ
3
Consider the graph shown below :
Use Kruskal's algorithm to find the minimum
spanning tree of the graph. The weight of this
minimum spanning tree is
1
17 2
14 3
16 4
13 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2018 (Paper II) PYQ
Solution Using Kruskal's algorithm, we select edges in increasing order of weights, without forming a cycle.
From the graph, the selected edge weights are:
$1,1,1,2,2,2,3,4$
Since the graph has $9$ vertices, the minimum spanning tree must have
$9-1=8$ edges.
Now, total weight of MST is
$1+1+1+2+2+2+3+4$
$=16$
Therefore, the weight of the minimum spanning tree is
$16$
Qus : 82
UGC NET Computer Science PYQ
3
Consider the following statements:
$S_1:$ If a group $(G,*)$ is of order $n$, and $a\in G$ is such that $a^m=e$ for some integer $m\le n$, then $m$ must divide $n$.
$S_2:$ If a group $(G,)$ is of even order, then there must be an element $a\in G$ such that $a\ne e$ and $aa=e$.
Which of the statements is/are correct?
1
Only $S_1$ 2
Only $S_2$ 3
Both $S_1$ and $S_2$ 4
Neither $S_1$ nor $S_2$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2019 (Paper II) PYQ
Solution For $S_1$:
By Lagrange theorem, the order of every element of a finite group divides the order of the group.
So, if $m$ is the order of element $a$, then $m$ divides $n$.
Hence, $S_1$ is true.
For $S_2$:
If a finite group has even order, then there exists at least one non-identity element of order $2$.
So, there exists $a\ne e$ such that:
$a*a=e$
Hence, $S_2$ is also true.
Qus : 83
UGC NET Computer Science PYQ
4
Consider the following statements with respect to duality in LPP:
(a) The final simplex table giving optimal solution of the primal also contains optimal solution of its dual in itself.
(b) If either the primal or the dual problem has a finite optimal solution, then the other problem also has a finite optimal solution.
(c) If either problem has an unbounded optimum solution, then the other problem has no feasible solution at all.
Which of the statements is/are correct?
1
only (a) and (b) 2
only (a) and (c) 3
only (b) and (c) 4
(a), (b) and (c) Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2019 (Paper II) PYQ
Solution The final simplex table of the primal problem also gives information about the optimal solution of the dual problem.
Statement (b) is correct.
By strong duality theorem, if one problem has a finite optimal solution, then the other also has a finite optimal solution.
Statement (c) is correct.
If one problem is unbounded, then the other problem is infeasible.
So, all three statements are correct.
Qus : 87
UGC NET Computer Science PYQ
2
A coin is tossed successively three times. Find the Probability $(P)$, Event $(E)$, Sample space $(S)$ of getting exactly one head or two heads, where $n$ is number of occurrence.
(A) $n(S)=8$ and $n(E)=4$
(B) $n(E)=6$ and $n(S)=8$
(C) $P(E)=\frac{3}{4}$
(D) $P(E)=\frac{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 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ
Solution Sample space for 3 tosses:
$S={HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}$
Thus
$n(S)=8$
Event: exactly 1 head or 2 heads
1 head → ${HTT,THT,TTH}$
2 heads → ${HHT,HTH,THH}$
So
$n(E)=6$
Probability
$P(E)=\frac{6}{8}=\frac{3}{4}$
Thus correct statements:
(B) and (C)
Qus : 88
UGC NET Computer Science PYQ
3
Match List I with List II
List I
List II
A. 8-Queens problems
I. Divide and conquer
B. Closest Pair of points
II. Dynamic Programming
C. String Edit problem
III. Greedy Method
D. Knapsack problem
IV. Backtracking
Choose the correct answer from the options given below:
1
A-I, B-II, C-III, D-IV 2
A-I, B-IV, C-II, D-III
3
A-IV, B-I, C-II, D-III
4
A-II, B-III, C-IV, D-I Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ
Qus : 89
UGC NET Computer Science PYQ
2
If a graph $G$ has no loops or parallel edges, and if the number of vertices $n$ in the graph is $n\geq 3$, then graph $G$ is Hamiltonian if:
$(i)$ $\deg(v)\geq \dfrac{n}{3}$ for each vertex $v$
$(ii)$ $\deg(v)+\deg(w)\geq n$ whenever $v$ and $w$ are not connected by an edge.
$(iii)$ $E(G)\geq \dfrac{1}{3}(n-1)(n-2)+2$
Choose the correct answer from the code given below:
1
$(i)$ and $(iii)$ only 2
$(ii)$ only 3
$(ii)$ and $(iii)$ only 4
$(iii)$ only Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2018 (Paper II) PYQ
Solution Statement $(i)$ is not a standard sufficient condition for Hamiltonian graph.
By Dirac's theorem, the sufficient condition is
$\deg(v)\geq \dfrac{n}{2}$
for every vertex $v$.
So, statement $(i)$ is false.
Statement $(ii)$ is true by Ore's theorem.
Ore's theorem says that if for every pair of non-adjacent vertices $v$ and $w$,
$\deg(v)+\deg(w)\geq n$
then the graph is Hamiltonian.
Statement $(iii)$ is not the standard sufficient condition here.
Therefore, only statement $(ii)$ is correct.
Qus : 93
UGC NET Computer Science PYQ
1
Which of the following are logically equivalent? A. $\neg p\to(q\to r)$ and $q\to(p\lor r)$ B. $(p\to q)\to r$ and $p\to(q\to r)$ C. $(p\to q)\to(r\to s)$ and $(p\to r)\to(q\to s)$ Choose the correct answer from the options given below:
1
A only 2
A and B only 3
B and C only 4
A and C only Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2021 (Paper II) PYQ
Solution Check A: $\neg p\to(q\to r)\equiv p\lor(\neg q\lor r)$ $=p\lor\neg q\lor r$ Also, $q\to(p\lor r)\equiv\neg q\lor p\lor r$ Both are same, so A is true. Check B: $(p\to q)\to r\equiv(p\land\neg q)\lor r$ $p\to(q\to r)\equiv\neg p\lor\neg q\lor r$ Both are not always same, so B is false. Check C: Both expressions are not always logically equivalent. So, C is false. Therefore, only A is correct.
Qus : 94
UGC NET Computer Science PYQ
3
Which of these statements about the floor and ceiling functions are correct? Statement I: $\lfloor 2x\rfloor=\lfloor x\rfloor+\left\lfloor x+\frac{1}{2}\right\rfloor$ for all real number $x$ Statement II: $\lceil x+y\rceil=\lceil x\rceil+\lceil y\rceil$ for all real numbers $x$ and $y$
1
Both Statement I and Statement II are true 2
Both Statement I and Statement II are false 3
Statement I is true but Statement II is false 4
Statement I is false but Statement II is true Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2021 (Paper II) PYQ
Solution Statement I is a standard identity of floor function: $\lfloor 2x\rfloor=\lfloor x\rfloor+\left\lfloor x+\frac{1}{2}\right\rfloor$ So, Statement I is true. Statement II is not always true. Take $x=0.2$ and $y=0.2$. $\lceil x+y\rceil=\lceil 0.4\rceil=1$ But, $\lceil x\rceil+\lceil y\rceil=\lceil 0.2\rceil+\lceil 0.2\rceil=1+1=2$ So, Statement II is false.
Qus : 95
UGC NET Computer Science PYQ
3
How many ways are there to assign $5$ different jobs to $4$ different employees if every employee is assigned at least $1$ job?
1
$1024$ 2
$625$ 3
$240$ 4
$20$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2021 (Paper II) PYQ
Solution We need to assign $5$ different jobs to $4$ different employees such that every employee gets at least one job. This is an onto function problem. Total ways without restriction: $4^5=1024$ Subtract cases where at least one employee gets no job: $\binom{4}{1}3^5=4\times243=972$ Add cases where two employees get no job: $\binom{4}{2}2^5=6\times32=192$ Subtract cases where three employees get no job: $\binom{4}{3}1^5=4$ Required ways: $4^5-\binom{4}{1}3^5+\binom{4}{2}2^5-\binom{4}{3}1^5$ $=1024-972+192-4=240$
Qus : 96
UGC NET Computer Science PYQ
4
A company stores products in a warehouse. Storage bins in this warehouse are specified by their aisle, location in the aisle, and shelf. There are $50$ aisles, $85$ horizontal locations in each aisle, and $5$ shelves throughout the warehouse. What is the least number of products the company can have so that at least two products must be stored in the same bin?
1
$251$ 2
$426$ 3
$4251$ 4
$21251$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2021 (Paper II) PYQ
Solution Total number of storage bins: $50\times85\times5=21250$ By pigeonhole principle, if $21250$ products are stored, each product can be placed in a different bin. To guarantee that at least two products are stored in the same bin, we need one more product. So, least number of products: $21250+1=21251$
Qus : 100
UGC NET Computer Science PYQ
4
Let $(X,*)$ be a semigroup. Furthermore, for every $a$ and $b$ in $X$, if $a\ne b$, then $a*b\ne b*a$. Based on the defined semigroup, choose the correct equalities from the options given below. A. For every $a$ in $X,\ a*a=a$ B. For every $a,b$ in $X,\ a*b*a=a$ C. For every $a,b,c$ in $X,\ a*b*c=a*c$
1
A and B only 2
A and C only 3
B and C only 4
A, B and C Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2021 (Paper II) PYQ
Solution Given condition means if two elements commute, then they must be equal. For A: $a*(a*a)=(a*a)*a$ by associativity. So, $a$ and $a*a$ commute. Hence, $a=a*a$. So, A is true. For B: $a*(a*b*a)=(a*a)*b*a=a*b*a$ $(a*b*a)*a=a*b*(a*a)=a*b*a$ So, $a$ and $a*b*a$ commute. Hence, $a*b*a=a$. So, B is true. For C: Using B, $c*a*c=c$ and $a*c*a=a$. Now, $(a*b*c)(a*c)=a*b*(c*a*c)=a*b*c$ $(a*c)(a*b*c)=(a*c*a)*b*c=a*b*c$ So, $a*b*c$ and $a*c$ commute. Hence, $a*b*c=a*c$. So, C is also true.
Qus : 104
UGC NET Computer Science PYQ
1
List I (Statements) List II (Logic Type) A. If the Indian team wins, then it is raining IV. Conditional B. If the Indian team does not win, then it is not raining I. Inverse C. If it is raining, then the Indian team wins II. Converse D. If it is not raining, then the Indian team does not win III. Contrapositive
1
A–II, B–I, C–IV, D–III 2
A–III, B–I, C–II, D–IV 3
A–II, B–III, C–IV, D–I 4
A–III, B–II, C–IV, D–I Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science 26 June 2025 (Paper II) PYQ
Solution A → IV → Conditional statement
B → I → Inverse (negating both sides)
C → II → Converse (reversing condition and result)
D → III → Contrapositive (negating and reversing)
Qus : 105
UGC NET Computer Science PYQ
2
For a knapsack problem, $P$ and $W$ are profits and weights for a set of $7$ items as given below:
$P={9,5,2,7,6,16,9}$
$W={2,5,6,11,1,9,3}$ Find the optimal solution for fractional knapsack problem when its maximum capacity is $15$.
1
43 2
40
3
45 4
44 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ
Solution $P={9,5,2,7,6,16,9}$
$W={2,5,6,11,1,9,3}$
Find profit by weight ratio:
Item 5: $\frac{6}{1}=6$
Item 1: $\frac{9}{2}=4.5$
Item 7: $\frac{9}{3}=3$
Item 6: $\frac{16}{9}=1.77$
Now take items in decreasing ratio:
Total weight $=1+2+3+9=15$
Total profit $=6+9+9+16=40$
Correct option is:
$\boxed{(b)\ 40}$
Qus : 106
UGC NET Computer Science PYQ
1
For a knapsack problem, $P$ and $W$ are profits and weights for a set of $7$ items as given below:
$P={9,5,2,7,6,16,9}$
$W={2,5,6,11,1,9,3}$
What is the maximum value of items you can carry if maximum weight allowed is $25$ with a fractional knapsack?
1
48.1 2
49
3
47.9 4
40 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ
Solution Take items in decreasing profit by weight ratio:
Item 5: weight $1$, profit $6$
Item 1: weight $2$, profit $9$
Item 7: weight $3$, profit $9$
Item 6: weight $9$, profit $16$
Item 2: weight $5$, profit $5$
Total weight used:
$1+2+3+9+5=20$
Total profit:
$6+9+9+16+5=45$
Remaining capacity:
$25-20=5$
Next best item is item 4 with profit $7$ and weight $11$.
Fractional profit:
$5\times \frac{7}{11}=\frac{35}{11}=3.18$
Maximum profit:
$45+3.18=48.18\approx 48.1$
Correct option is:
$\boxed{(a)\ 48.1}$
Qus : 107
UGC NET Computer Science PYQ
1
For a knapsack problem, $P$ and $W$ are profits and weights for a set of $7$ items as given below:
$P={9,5,2,7,6,16,9}$
$W={2,5,6,11,1,9,3}$ If new item $(P=5,W=2)$ is added to the list, total items is $8$ and capacity is $25$, then the best-case time of fractional knapsack for this case is ______
1
$O(8)$ 2
$O(64)$
3
$O(24)$ 4
$O(56)$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ
Solution For fractional knapsack, if items are already arranged according to profit by weight ratio, then best-case selection can be done in linear time.
Here, total items are:
$n=8$
So, best-case time complexity is:
$O(n)=O(8)$
Correct option is:
$\boxed{(a)\ O(8)}$
Qus : 108
UGC NET Computer Science PYQ
3
For a knapsack problem, $P$ and $W$ are profits and weights for a set of $7$ items as given below:
$P={9,5,2,7,6,16,9}$
$W={2,5,6,11,1,9,3}$ The most efficient solution for the fractional knapsack problem with maximum capacity $15$ can be obtained by using ______
1
Divide and Conquer 2
Dynamic Programming
3
Greedy Algorithm 4
C++ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ
Solution Fractional knapsack allows taking fractions of items.
So, we choose items according to highest profit by weight ratio.
This is a greedy approach.
Correct option is:
$\boxed{(c)\ \text{Greedy Algorithm}}$
Qus : 109
UGC NET Computer Science PYQ
4
For a knapsack problem, $P$ and $W$ are profits and weights for a set of $7$ items as given below:
$P={9,5,2,7,6,16,9}$
$W={2,5,6,11,1,9,3}$ Which of the following statements is correct for a knapsack?
1
$0/1$ knapsack can be applied for all kinds of problems but fractional knapsack can be applied only if the problem meets certain conditions. 2
There is no difference between the two. They give the same solution for any problem.
3
We use the greedy algorithm for $0/1$ knapsack and dynamic programming for fractional knapsack. 4
In $0/1$ knapsack problem, items cannot be divided into smaller portions and in fractional knapsack we can divide the item into required proportions of weight. Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift I (Paper II) PYQ
Solution In $0/1$ knapsack, an item is either selected completely or rejected completely.
In fractional knapsack, an item can be divided into smaller parts according to required weight.
So, correct option is:
$\boxed{(d)\ \text{In }0/1\text{ knapsack problem, items cannot be divided into smaller portions and in fractional knapsack we can divide the item into required proportions of weight}}$
Qus : 110
UGC NET Computer Science PYQ
3
The tight asymptotic bound for the recurrence:
$T(n) = 2T(n/4) + \sqrt{n}$
1
$\Theta(\sqrt{n})$ 2
$\Theta(n \log n)$ 3
$\Theta(\sqrt{n} \log n)$ 4
$\Theta(n \log \sqrt{n})$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science 26 June 2025 (Paper II) PYQ
Solution We use the Master Theorem for $T(n) = aT(n/b) + f(n)$
Here, $a = 2$, $b = 4$, so
$n^{\log_b a} = n^{\log_4 2} = n^{1/2} = \sqrt{n}$
Thus, $f(n) = \sqrt{n}$ is of the same order as $n^{\log_b a}$.
Therefore, by Case 2 of Master Theorem,
$T(n) = \Theta(n^{\log_b a} \log n) = \Theta(\sqrt{n} \log n)$
✅ But wait! Let’s check growth dominance carefully:
Actually, when $f(n) = \Theta(n^{\log_b a})$, we multiply by $\log n$, hence the correct bound is
$\boxed{T(n) = \Theta(\sqrt{n} \log n)}$
Qus : 114
UGC NET Computer Science PYQ
1
A relation $R$ is defined on ordered pairs of integers as $(x, y) R(u, v)$ if $x < u$ and $y > v$. Then $R$ is
1
Neither a partial order nor an equivalence relation 2
A partial order but not a total order 3
A total order 4
An equivalence relation Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift II (Paper II) PYQ
Solution For reflexive relation, we need
$ (x, y) R(x, y) $
But according to the definition,
$ x < x $ and $ y > y $
Both are false.
So, $R$ is not reflexive.
A partial order relation must be reflexive, antisymmetric, and transitive.
Since $R$ is not reflexive, it is not a partial order.
An equivalence relation must be reflexive, symmetric, and transitive.
Since $R$ is not reflexive, it is not an equivalence relation.
Hence, $R$ is neither a partial order nor an equivalence relation.
Qus : 115
UGC NET Computer Science PYQ
1
Given below are two statements Statement I: In an undirected graph, number of odd degree vertices is even. Statement II: In an undirected graph, sum of degrees of all vertices is even. In light of the above statements, choose the correct answer from the options given below.
1
Both Statement I and Statement II are true. 2
Both Statement I and Statement II are false. 3
Statement I is true but Statement II is false. 4
Statement I is false but Statement II is true. Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2021 (Paper II) PYQ
Solution By Handshaking Theorem, sum of degrees of all vertices in an undirected graph is equal to twice the number of edges. So, $\sum deg(v)=2|E|$ This is always even. Hence, Statement II is true. Also, in any undirected graph, the number of vertices having odd degree is always even. Hence, Statement I is also true. Therefore, both statements are true.
Qus : 116
UGC NET Computer Science PYQ
3
Suppose you are married and you and your partner attend a party with three other married couples. Several handshakes took place. No one shook hands with himself or herself or with their partner, and no one shook hands with the same person more than once. After all handshaking was completed, suppose you asked each person, including your partner, how many hands they had shaken. Each person gave a different answer. How many hands did your spouse shake?
1
1 2
2 3
3 4
4 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift II (Paper II) PYQ
Solution There are $4$ married couples, so total persons are $8$.
You asked $7$ persons, and all gave different answers.
Maximum possible handshakes by one person are $6$ because a person cannot shake hands with himself or herself and cannot shake hands with spouse.
So the $7$ different answers must be:
$0,1,2,3,4,5,6$
Now, the person who shook $6$ hands must be paired with the person who shook $0$ hands.
Similarly,
$5$ is paired with $1$
$4$ is paired with $2$
The only remaining number is $3$.
So your spouse shook $3$ hands.
Final Answer: $ \boxed{(c)} $
Qus : 117
UGC NET Computer Science PYQ
1
Let m and n be positive integers.
(A) If n ≠ 1, then m < mn.
(B) If k is composite, then k = mn where 1 < m, n > k.
(C) If mn = 1, then m = 1 and n = 1.
(D) If k is composite, then k = mn where 1 < m, n < k.
1
(A), (C), (D) 2
(B), (C), (D) 3
(A), (B) 4
(A), (B), (C) Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science 26 June 2025 (Paper II) PYQ
Solution (B) is false (for composite k, both factors are < k). (A), (C), (D) are true for positive integers.
Qus : 118
UGC NET Computer Science PYQ
1
Choose the correct statement for a group G:
1
If for all x, y ∈ G, (xy)² = x²y² then G is commutative. 2
If for all x ∈ G, x³ = 1, then G is commutative. 1 is the identity element of G. 3
If for all x ∈ G, x⁵ = 1, then G is commutative. 1 is the identity element of G.
4
If G is commutative, the subgroup of G need not be commutative. Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science 26 June 2025 (Paper II) PYQ
Solution Reason: From (xy)² = xyxy = x²y² = xxyy. Left-multiply by x⁻¹ and right-multiply by y⁻¹ to get yx = xy, hence G is abelian.
(2) and (3) are false (there exist non-abelian groups where every element has order 3 or 5, e.g., unitriangular 3×3 matrices over ℤ₃/ℤ₅).
(4) is false because every subgroup of an abelian (commutative) group is abelian.
Qus : 119
UGC NET Computer Science PYQ
4
Consider the Graph below:
How many spanning trees can be found?
1
10 2
5 3
9 4
8 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift II (Paper II) PYQ
Solution The given graph has $4$ vertices.
Let the vertices be:
$A, B, C, D$
Edges are:
$AB, BC, AD, BD, CD$
So, total edges are $5$.
This graph is like complete graph $K_4$ with one edge missing.
Number of spanning trees in $K_4$ is given by Cayley’s formula:
$4^{4-2}=4^2=16$
In $K_4$, each edge appears in equal number of spanning trees.
Total edge appearances in all spanning trees:
$16 \times 3 = 48$
Because each spanning tree of $4$ vertices has $3$ edges.
Since $K_4$ has $6$ edges, each edge appears in:
$\frac{48}{6}=8$
Now, one edge is missing in the given graph.
So, spanning trees containing that missing edge are removed.
Number of spanning trees:
$16-8=8$
Qus : 120
UGC NET Computer Science PYQ
4
Consider the following statements:
P: There exists no simple, undirected and connected graph with $80$ vertices and $77$ edges.
Q: All vertices of Euler graph are of even degree.
R: Every simple, undirected, connected and acyclic graph with $50$ vertices has at least two vertices of degree one.
S: There exits a bipartite graph with more than ten vertices which are $2$-colorable.
What is the number of correct statements among the above statements?
1
1 2
2 3
3
4
4 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift II (Paper II) PYQ
Solution Statement P:
For a connected graph with $n$ vertices, minimum number of edges must be:
$n-1$
Here,
$n=80$
Minimum edges required:
$80-1=79$
But given edges are only $77$.
So, such a connected graph cannot exist.
Therefore, P is true.
Statement Q:
In an Euler graph, every vertex must have even degree.
So, Q is true.
Statement R:
A simple, undirected, connected and acyclic graph is a tree.
Every tree with more than one vertex has at least two vertices of degree $1$.
Here, vertices are $50$.
So, R is true.
Statement S:
Every bipartite graph is $2$-colorable.
A bipartite graph with more than ten vertices can exist.
So, S is true.
Therefore, all four statements are correct.
Number of correct statements:
$4$
Qus : 121
UGC NET Computer Science PYQ
4
Consider the following statements:
P: There exists no simple, undirected and connected graph with $80$ vertices and $77$ edges.
Q: All vertices of Euler graph are of even degree.
R: Every simple, undirected, connected and acyclic graph with $50$ vertices has at least two vertices of degree one.
S: There exits a bipartite graph with more than ten vertices which are $2$-colorable.
What is the number of correct statements among the above statements?
1
1 2
2 3
3
4
4 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift II (Paper II) PYQ
Solution Statement P:
For a connected graph with $n$ vertices, minimum number of edges must be:
$n-1$
Here,
$n=80$
Minimum edges required:
$80-1=79$
But given edges are only $77$.
So, such a connected graph cannot exist.
Therefore, P is true.
Statement Q:
In an Euler graph, every vertex must have even degree.
So, Q is true.
Statement R:
A simple, undirected, connected and acyclic graph is a tree.
Every tree with more than one vertex has at least two vertices of degree $1$.
Here, vertices are $50$.
So, R is true.
Statement S:
Every bipartite graph is $2$-colorable.
A bipartite graph with more than ten vertices can exist.
So, S is true.
Therefore, all four statements are correct.
Number of correct statements:
$4$
Qus : 122
UGC NET Computer Science PYQ
3
Circuit satisfiability problem: Given a Boolean combinatorial circuit composed of AND, OR, and NOT gates, is it satisfiable? A one-output Boolean combinatorial circuit is satisfiable means for the given inputs the output will be $1$.
The circuit satisfiability problem belongs to class NP
The circuit satisfiability problem is at least as hard as any language in NP
The circuit satisfiability is NP-Complete
The size of the circuit is $\theta(K^2+1)$
If $P \ne NP$, this situation would contradict the NP-Completeness of the problem.
Choose the correct answer from the options given below:
1
1, 3, 4 Only 2
2, 4, 5 Only 3
1, 2, 3 Only 4
2, 3, 4 Only Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift II (Paper II) PYQ
Solution Statement $1$:
Circuit satisfiability belongs to NP because if an input assignment is given, we can verify in polynomial time whether the circuit output is $1$.
So, statement $1$ is true.
Statement $2$:
Circuit satisfiability is at least as hard as any problem in NP.
So, it is NP-hard.
Therefore, statement $2$ is true.
Statement $3$:
A problem is NP-Complete if it is both in NP and NP-hard.
Circuit satisfiability is a standard NP-Complete problem.
So, statement $3$ is true.
Statement $4$:
The size $\theta(K^2+1)$ is not a general property of the circuit satisfiability problem.
So, statement $4$ is false.
Statement $5$:
This statement is not a basic defining property needed here for Circuit SAT classification.
So, statement $5$ is not selected.
Therefore, correct statements are:
$1,2,3$
Qus : 123
UGC NET Computer Science PYQ
3
The number of positive integers not exceeding $100$ that are either odd or the square of an integer is _____
1
63 2
59 3
55 4
50 Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2020 (Paper II) PYQ
Solution Positive odd integers not exceeding $100$ are: $1,3,5,\ldots,99$ Number of odd integers $=50$ Perfect squares not exceeding $100$ are: $1^2,2^2,3^2,\ldots,10^2$ Number of perfect squares $=10$ Odd perfect squares are: $1^2,3^2,5^2,7^2,9^2$ Number of odd perfect squares $=5$ Required number: $50+10-5=55$
Qus : 124
UGC NET Computer Science PYQ
1
Match List I with List II
LIST I LIST II A Δ B (A - B) ∪ (A - C) A - (B ∪ C) (A - B) ∩ (A - C) A - (B ∩ C) (A - B) ∪ (B - A) A ∩ (B - C) (A ∩ B) - (A ∩ C)
Choose the correct answer from the options given below:
1
A - III, B - II, C - I, D - IV 2
A - II, B - III, C - IV, D - I 3
A - IV, B - III, C - I, D - II 4
A - IV, B - I, C - III, D - II
Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2023 (Paper II) PYQ
Solution • A Δ B:
○ This represents the symmetric difference between sets A and B. It includes all those elements which are in A and B but not in their intersection. Mathematically, it can be represented as (A - B) ∪ (B - A). So, A matches with III.
• A - (B ∪ C):
○ This represents all elements in A not in (B or C). Another way to represent it would be (A - B) ∩ (A - C) because it is the intersection of elements that are only in A and not in B or C. So, B matches with II.
• A - (B ∩ C):
○ This represents all elements in A that are not common to both B and C, or equivalently, the elements just in A and not in the intersection of B and C. So, C matches with I.
• A ∩ (B - C):
○ This represents the intersection of A and the elements in B not in C. It is equivalent to (A ∩ B) - (A ∩ C) because you're taking all elements in both A and B, then removing any elements that are also in C. So, D matches with IV.
Therefore, the correct option is A - III, B - II, C - I, D - IV. So, the correct option is 1).
Qus : 126
UGC NET Computer Science PYQ
4
Which of the following pairs of propositions are not logically equivalent?
1
$((p\to r)\land(q\to r))$ and $((p\lor q)\to r)$ 2
$p\leftrightarrow q$ and $(\neg p\leftrightarrow \neg q)$ 3
$((p\land q)\lor(\neg p\land \neg q))$ and $p\leftrightarrow q$ 4
$((p\land q)\to r)$ and $((p\to r)\land(q\to r))$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Nov 2020 (Paper II) PYQ
Solution Check option (a): $(p\to r)\land(q\to r)$ $=(\neg p\lor r)\land(\neg q\lor r)$ $=(\neg p\land\neg q)\lor r$ $=\neg(p\lor q)\lor r$ $=(p\lor q)\to r$ So, option (a) is logically equivalent. Option (b) is also equivalent because if $p$ and $q$ have same truth value, then $\neg p$ and $\neg q$ also have same truth value. Option (c) is the standard form of biconditional: $p\leftrightarrow q\equiv(p\land q)\lor(\neg p\land\neg q)$ So, option (c) is logically equivalent. Now check option (d): $((p\land q)\to r)=\neg(p\land q)\lor r=\neg p\lor\neg q\lor r$ But, $(p\to r)\land(q\to r)=(\neg p\lor r)\land(\neg q\lor r)$ Both are not always same.
Qus : 127
UGC NET Computer Science PYQ
1
Let R = {x : x ∈ N, x is multiple of 3 and x ≤ 100} and S = {x : x ∈ N, x is multiple of 5 and x < 100}. What is the number of elements in (R ∩ S) × (S ∩ R)?
1
36 2
33 3
20 4
6
Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2023 (Paper II) PYQ
Solution Solution:
$R=\{x:x\in N,\ x\text{ is multiple of }3,\ x\le 100\}$
$S=\{x:x\in N,\ x\text{ is multiple of }5,\ x<100\}$
$R\cap S$ contains numbers which are multiples of both $3$ and $5$.
So, $R\cap S$ contains multiples of $15$.
Multiples of $15$ less than $100$ are:
$15,30,45,60,75,90$
So,
$|R\cap S|=6$
Also,
$S\cap R=R\cap S$
Therefore,
$|(R\cap S)\times(S\cap R)|=6\times6=36$
So, the correct answer is $36$.
Qus : 128
UGC NET Computer Science PYQ
4
Match the List-I and List-II
List-I
List-II
a. Planar Graph I. Probabilistic Model b. Bipartite Graph II. Deterministic Model c. PERT III. 4-Colorable d. CPM
IV. 2-Colorable
Choose the correct answer from the options
given below:
1
a-IV; b-III; c-I; d-II 2
a-III; b-IV; c-II; d-I 3
a-II; b-IV; c-I; d-III 4
a-III; b-IV; c-I; d-II Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift II (Paper II) PYQ
Solution Planar Graph:
According to the four color theorem, every planar graph is $4$-colorable.
So,
a → III
Bipartite Graph:
A bipartite graph can be colored using $2$ colors.
So,
b → IV
PERT:
PERT is used when activity time is uncertain. Hence, it is a probabilistic model.
So,
c → I
CPM:
CPM is used when activity time is fixed and known. Hence, it is a deterministic model.
So,
d → II
Correct matching:
a-III; b-IV; c-I; d-II
Qus : 131
UGC NET Computer Science PYQ
1
Consider the statements:
I. There does not exist a polynomial time algorithm to solve integer linear programming problems.
II. Main focus of PERT is 'minimizing time'.
Choose the correct option about statements I and II.
1
I is True; II is True 2
I is True; II is False 3
I is False; II is True 4
I is False; II is False Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science Dec 2022 Shift II (Paper II) PYQ
Solution Statement I:
Integer Linear Programming is a hard problem because variables are restricted to integer values.
General Integer Linear Programming is considered NP-hard.
So, it is not solved by a general polynomial time algorithm.
Therefore, statement I is true.
Statement II:
PERT stands for Program Evaluation and Review Technique.
PERT is mainly used for project scheduling when activity times are uncertain.
Its main focus is time estimation and completing the project in minimum possible time.
Therefore, statement II is true.
So,
I is True and II is True.
Qus : 134
UGC NET Computer Science PYQ
1
Consider the following statements.
A. The identity is unique in any monoid.
B. A monoid is a group if there exists inverse of each element of monoid.
C. Semi group has closure, associative and identity properties.
D. Quasi group has closure property.
Choose the correct answer from the options given below:
1
A, B and D only 2
B, C and D only 3
A, B and C only 4
A, C and D only Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2023 (Paper II) PYQ
Solution A is correct because identity element is always unique in a monoid.
B is correct because a monoid becomes a group if every element has an inverse.
C is incorrect because a semigroup has closure and associative property, but identity is not necessary.
D is correct because a quasigroup has closure property.
Qus : 135
UGC NET Computer Science PYQ
3
The language of the following PDA would be:
$\delta(q_0,a,z_0)=(q_0,aaaz_0)$
$\delta(q_0,a,a)=(q_0,aaa)$
$\delta(q_0,b,a)=(q_1,\lambda)$
$\delta(q_1,b,a)=(q_1,\lambda)$
$\delta(q_1,\epsilon,z_0)=(q_f,z_0)$ where $q_f$ is a final state.
1
${a^n b^n \mid n>0}$ 2
${a^n b^{2n} \mid n>0}$ 3
${a^n b^{3n} \mid n>0}$ 4
${a^n b^{4n} \mid n>0}$ Go to Discussion
UGC NET Computer Science UGC NET PYQ
UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ
Solution Each time an a is read:
$a \rightarrow$ push 3 a's onto the stack.
Each b pops one a from the stack.
Thus:
1 input a produces 3 stack symbols, so we need 3 b's to remove them.
Therefore the relation is:
$b = 3a$
Language:
${a^n b^{3n} \mid n>0}$
[{"qus_id":"14705","year":"2025"},{"qus_id":"15004","year":"2025"},{"qus_id":"15005","year":"2025"},{"qus_id":"15010","year":"2025"},{"qus_id":"15012","year":"2025"},{"qus_id":"15036","year":"2025"},{"qus_id":"15041","year":"2025"},{"qus_id":"17407","year":"2024"},{"qus_id":"17411","year":"2024"},{"qus_id":"17414","year":"2024"},{"qus_id":"17423","year":"2024"},{"qus_id":"17427","year":"2024"},{"qus_id":"17429","year":"2024"},{"qus_id":"17434","year":"2024"},{"qus_id":"17437","year":"2024"},{"qus_id":"17438","year":"2024"},{"qus_id":"17448","year":"2024"},{"qus_id":"17447","year":"2024"},{"qus_id":"17449","year":"2024"},{"qus_id":"17454","year":"2024"},{"qus_id":"17461","year":"2024"},{"qus_id":"17462","year":"2024"},{"qus_id":"17470","year":"2024"},{"qus_id":"17497","year":"2024"},{"qus_id":"17511","year":"2024"},{"qus_id":"17542","year":"2024"},{"qus_id":"17543","year":"2024"},{"qus_id":"17545","year":"2024"},{"qus_id":"17546","year":"2024"},{"qus_id":"17550","year":"2024"},{"qus_id":"17563","year":"2024"},{"qus_id":"17576","year":"2024"},{"qus_id":"18400","year":"2023"},{"qus_id":"18407","year":"2023"},{"qus_id":"18413","year":"2023"},{"qus_id":"18417","year":"2023"},{"qus_id":"18424","year":"2023"},{"qus_id":"18428","year":"2023"},{"qus_id":"18442","year":"2023"},{"qus_id":"18468","year":"2023"},{"qus_id":"18471","year":"2023"},{"qus_id":"18481","year":"2023"},{"qus_id":"18483","year":"2023"},{"qus_id":"18487","year":"2023"},{"qus_id":"18501","year":"2022"},{"qus_id":"18502","year":"2022"},{"qus_id":"18503","year":"2022"},{"qus_id":"18504","year":"2022"},{"qus_id":"18539","year":"2022"},{"qus_id":"18540","year":"2022"},{"qus_id":"18541","year":"2022"},{"qus_id":"18554","year":"2022"},{"qus_id":"18556","year":"2022"},{"qus_id":"18570","year":"2022"},{"qus_id":"18574","year":"2022"},{"qus_id":"18589","year":"2022"},{"qus_id":"18590","year":"2022"},{"qus_id":"18591","year":"2022"},{"qus_id":"18592","year":"2022"},{"qus_id":"18593","year":"2022"},{"qus_id":"18599","year":"2020"},{"qus_id":"18600","year":"2020"},{"qus_id":"18601","year":"2020"},{"qus_id":"18626","year":"2022"},{"qus_id":"18638","year":"2022"},{"qus_id":"18639","year":"2022"},{"qus_id":"18654","year":"2022"},{"qus_id":"18664","year":"2022"},{"qus_id":"18674","year":"2022"},{"qus_id":"18696","year":"2022"},{"qus_id":"18699","year":"2022"},{"qus_id":"18712","year":"2022"},{"qus_id":"18720","year":"2022"},{"qus_id":"18781","year":"2022"},{"qus_id":"18782","year":"2022"},{"qus_id":"18784","year":"2022"},{"qus_id":"18805","year":"2022"},{"qus_id":"18831","year":"2021"},{"qus_id":"18832","year":"2021"},{"qus_id":"18833","year":"2021"},{"qus_id":"18834","year":"2021"},{"qus_id":"18835","year":"2021"},{"qus_id":"18836","year":"2021"},{"qus_id":"18837","year":"2021"},{"qus_id":"18839","year":"2021"},{"qus_id":"18840","year":"2021"},{"qus_id":"18856","year":"2021"},{"qus_id":"18911","year":"2020"},{"qus_id":"18912","year":"2020"},{"qus_id":"18913","year":"2020"},{"qus_id":"18936","year":"2020"},{"qus_id":"18947","year":"2020"},{"qus_id":"18948","year":"2020"},{"qus_id":"18949","year":"2020"},{"qus_id":"18950","year":"2020"},{"qus_id":"18963","year":"2020"},{"qus_id":"18971","year":"2020"},{"qus_id":"18974","year":"2020"},{"qus_id":"18984","year":"2020"},{"qus_id":"18990","year":"2020"},{"qus_id":"19011","year":"2019"},{"qus_id":"19012","year":"2019"},{"qus_id":"19014","year":"2019"},{"qus_id":"19015","year":"2019"},{"qus_id":"19017","year":"2019"},{"qus_id":"19018","year":"2019"},{"qus_id":"19045","year":"2019"},{"qus_id":"19046","year":"2019"},{"qus_id":"19069","year":"2019"},{"qus_id":"19076","year":"2019"},{"qus_id":"19077","year":"2019"},{"qus_id":"19219","year":"2019"},{"qus_id":"19220","year":"2019"},{"qus_id":"19221","year":"2019"},{"qus_id":"19222","year":"2019"},{"qus_id":"19223","year":"2019"},{"qus_id":"19224","year":"2019"},{"qus_id":"19225","year":"2019"},{"qus_id":"19226","year":"2019"},{"qus_id":"19227","year":"2019"},{"qus_id":"19228","year":"2019"},{"qus_id":"19281","year":"2019"},{"qus_id":"19285","year":"2019"},{"qus_id":"19288","year":"2019"},{"qus_id":"19297","year":"2019"},{"qus_id":"19298","year":"2019"},{"qus_id":"19319","year":"2018"},{"qus_id":"19320","year":"2018"},{"qus_id":"19321","year":"2018"},{"qus_id":"19322","year":"2018"},{"qus_id":"19326","year":"2018"},{"qus_id":"19327","year":"2018"},{"qus_id":"19330","year":"2018"},{"qus_id":"19338","year":"2018"},{"qus_id":"19339","year":"2018"}]