Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations

UGC NET Computer Science Previous Year Questions (PYQs)

UGC NET Computer Science 2024 PYQ


UGC NET Computer Science PYQ 2024
According to the Nyquist theorem, to produce the original analog signal, one necessary condition is:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Nyquist Sampling Theorem states:


Sampling frequency must be at least twice the maximum frequency present in the signal.


$ f_s \ge 2f_{max} $


UGC NET Computer Science PYQ 2024
Match List-I with List-II:
 List-I (Boolean Expression)List-II (Dual of Boolean Expression) 
 A. $x(y+0)$
 I. $(x+0)(y\cdot z)$
 B. $\bar{x}+(\bar{y}+z)$
 II. $x+y\cdot1$
 C. $\bar{x}(y+0)$
 III. $\bar{x}+\bar{y}\cdot1$
 D. $x+(\bar{y}+z)$

 IV. $(x+0)(y\cdot \bar{z})$






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Dual is obtained by interchanging:


$+$ ↔ $\cdot$

$0$ ↔ $1$


Applying dual rule:


A → III

B → IV

C → II

D → I


UGC NET Computer Science PYQ 2024

The number of tokens in the following line:

for i in range(begin : end : step) :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Tokens are the smallest meaningful units of a program.


Break the statement:


for | i | in | range | ( | begin | : | end | : | step | ) | :


Tokens:


for


i


in


range


(


begin


:


end


:


step


)


:


Total tokens = 12


UGC NET Computer Science PYQ 2024

For the given two machines which of the following is correct?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

From the diagrams:


• Both machines are deterministic (each state has exactly one transition for each input symbol).

• The first machine has states A and B with transitions on a and b.

• The second machine has states A, B, C, but the accepted language behavior matches the first machine.


Both machines accept the same language, even though the number of states differs.


Thus they are equivalent machines.


UGC NET Computer Science PYQ 2024
For the fuzzy set
$A = {(x_1,0.3),(x_2,0.7),(x_3,0.4)}$, the complement of $A$ would be represented as:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Complement of fuzzy set:


$\mu_{A'}(x) = 1 - \mu_A(x)$


Compute:


$x_1$: $1 - 0.3 = 0.7$

$x_2$: $1 - 0.7 = 0.3$

$x_3$: $1 - 0.4 = 0.6$


Thus,


$A' = {(x_1,0.7),(x_2,0.3),(x_3,0.6)}$


UGC NET Computer Science PYQ 2024
Regarding the subroutines, see the following sequence of tasks to be performed:

A. Turn on the interrupt facility.
B. Service the device whose flag is set.
C. Save the contents of processor registers.
D. Check which flag is set.
E. Restore the contents of processor registers.





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Interrupt Service Routine (ISR) steps:


Save processor registers → C


Check which device raised interrupt → D


Service the device → B


Restore processor registers → E


Re-enable interrupt facility → A


Correct sequence:


C, D, B, E, A


UGC NET Computer Science PYQ 2024
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)





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


UGC NET Computer Science PYQ 2024
Techniques for performing I/O:

A. Programmed I/O
B. Interrupt-driven I/O
C. Rotational I/O
D. Direct memory access
E. Channelized I/O





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Standard I/O techniques are:


• Programmed I/O

• Interrupt-driven I/O

• Direct Memory Access (DMA)


Rotational I/O and Channelized I/O are not standard CPU I/O techniques.


Thus:


A, B, D are correct.


UGC NET Computer Science PYQ 2024
Which of the following is not the most common property in social network?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Common properties of social networks:


• Scale-free degree distribution → True

• Small world property → True

• Short average path length → True


However, most social networks are not necessarily directed; many are modeled as undirected networks.


Thus the statement that is not a common property is:


UGC NET Computer Science PYQ 2024
An ambiguous grammar is one which has:

A. More than one derivations
B. More than one left most derivations
C. More than one right most derivations
D. More than one Parse tree
E. More than one syntax tree





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 grammar is ambiguous if a string generated by it has more than one parse tree.


Equivalent definitions:


• More than one leftmost derivation

• More than one rightmost derivation


Thus the correct statements are:


B and C.


UGC NET Computer Science PYQ 2024
The sequence of steps for a page replacement algorithm will be:

A. find a frame that is not currently being used
B. change the page table
C. use freed frame
D. no frame is free
E. free a frame





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Steps in page replacement:


No frame is free → D


Find a frame to replace → A


Free that frame → E


Update the page table → B


Use the freed frame for the new page → C


UGC NET Computer Science PYQ 2024
What will be the ordering of typical steps when processing a high-level query?

A. Query optimizer
B. Runtime database processor
C. Scanning, parsing and validating
D. Query code generator





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 DBMS query processing steps:


Scanning, parsing and validating → C


Query optimizer → A


Query code generator → D


Runtime database processor → B


Correct order:


C → A → D → B


UGC NET Computer Science PYQ 2024
The height of a binary search tree for the words banana, peach, apple, pear, coconut, mango and papaya using alphabetical order is:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Insert words sequentially into BST.


banana → root


peach → right of banana


apple → left of banana


pear → right of peach


coconut → left of peach


mango → right of coconut


papaya → right of mango


Longest path:


banana → peach → coconut → mango → papaya


Number of edges = 4


UGC NET Computer Science PYQ 2024
Match List-I with List-II
 List-I
 List-II
 A. Verification
 I. White box Testing
 B. Validation
II. Black box Testing
 
 C. Internal logic exercise
 III. Quality Control
 D. Software requirement exercise

 IV. Quality Assurance






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Verification → Quality Assurance → IV

Validation → Quality Control → III

Internal logic exercise → White box testing → I

Software requirement exercise → Black box testing → II


Matching:


A → IV

B → III

C → I

D → II


UGC NET Computer Science PYQ 2024
For making a memory of size $2048 \times 8$ bytes using chips of size $128 \times 4$ bytes, the number of chips required is:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Memory required:


$2048 \times 8$


Each chip:


$128 \times 4$


First match word size:


$8 / 4 = 2$ chips per word.


Now match number of words:


$2048 / 128 = 16$


Total chips:


$16 \times 2 = 32$


UGC NET Computer Science PYQ 2024
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$





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


UGC NET Computer Science PYQ 2024
Which of the followings are sequential circuit?

A. Flip flop
B. Multiplexer
C. Counter
D. Decoder
E. Adder





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Sequential circuits depend on previous state (memory).


• Flip-flop → sequential circuit

• Counter → sequential circuit


Multiplexer, Decoder and Adder are combinational circuits.


UGC NET Computer Science PYQ 2024
Match List-I with List-II
 List-I
 List-II
 A. Union
I. Virtual Reality
 B. Function
 II. Shadow mask
 C. Interactive Environment
 III. Subroutine
 D. Output device

 IV. User defined data type






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Union → User defined data type → IV

Function → Subroutine → III

Interactive Environment → Virtual Reality → I

Output device → Shadow mask → II


Matching:


A → IV

B → III

C → I

D → II


UGC NET Computer Science PYQ 2024
What is a perceptron in ANN?





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 Perceptron is a single-layer feed-forward neural network used for linear classification.


UGC NET Computer Science PYQ 2024
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






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


UGC NET Computer Science PYQ 2024
What is the total delay (latency) for a frame size of 10 million bits that is being set up on a link with 20 routers, each having a queuing time of 2 μs and a processing time of 1 μs? The length of link is 5000 km. The speed of light inside the link is $2\times10^8$ m/s. The link has bandwidth of 6 Mbps.





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Transmission delay

$= \frac{\text{Frame size}}{\text{Bandwidth}}$


$= \frac{10\times10^6}{6\times10^6}$


$= 1.6667\ s$


Propagation delay

Distance $=5000\ km =5\times10^6\ m$


$= \frac{5\times10^6}{2\times10^8}$


$=0.025\ s$


Router delay

Each router delay $=2\mu s+1\mu s=3\mu s$


Total routers $=20$


Total delay $=20\times3\mu s=60\mu s=0.00006\ s$


Total latency


$=1.6667+0.025+0.00006$


$\approx1.691726\ s$


UGC NET Computer Science PYQ 2024
A bit string of length four is generated at random. What is probability that it contains at least two consecutive 0’s given that first bit is 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

First bit is fixed as 0, so remaining 3 bits are free.


Possible strings:


0000

0001

0010

0011

0100

0101

0110

0111


Total outcomes $=8$


Strings with at least two consecutive 0's:


0000

0001

0010

0011

0100


Favourable outcomes $=5$


Probability


$=\frac{5}{8}$


UGC NET Computer Science PYQ 2024
Shift-Reduce conflicts are resolved by :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

In LR parsing, shift-reduce conflicts occur when the parser can either shift the next input symbol or reduce using a rule.


These conflicts are resolved using operator precedence and associativity rules.


UGC NET Computer Science PYQ 2024
Back propagation is a learning technique that adjusts weights in the neural network by propagating weight changes :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Backpropagation computes error at the output layer (sink) and propagates the error backwards through hidden layers toward the input layer (source) to update weights.


UGC NET Computer Science PYQ 2024
Arrange the following from fastest to slowest in speed:

A. DRAM
B. SRAM
C. CPU Registers
D. Magnetic tapes
E. Hard disk





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Speed hierarchy of memory/storage:


CPU Registers → fastest

SRAM → cache memory

DRAM → main memory

Hard Disk → secondary storage

Magnetic Tape → slowest storage


Order:


C → B → A → E → D


UGC NET Computer Science PYQ 2024
Which of the following statements is/are false?

A. A user can assign privileges to any user on any relation.
B. A user can assign privileges to any user on its own relations only.
C. System error that leads to accessibility to the portion of database is an example of malicious attack.
D. Passwords itself need to be secured from unauthorized access.





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 (only owner or DBA can grant privileges)

B → True

C → False (system error is not a malicious attack)

D → True


False statements:


A and C


UGC NET Computer Science PYQ 2024
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





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


UGC NET Computer Science PYQ 2024
The instruction LD ADR(X) which is equivalent to
$AC \leftarrow M[ADR + XR]$ is in:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Effective address:


$EA = ADR + XR$


This is indexed addressing, where the address field is added to the index register.


UGC NET Computer Science PYQ 2024
The least values of a signed and unsigned data type variables requiring 8 bits, would be:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

For 8-bit signed integer (two’s complement):


Range = $-2^{7}$ to $2^{7}-1$


Least value = $-128$


For 8-bit unsigned integer:


Range = $0$ to $2^{8}-1$


Least value = $0$


UGC NET Computer Science PYQ 2024
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 :





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$


UGC NET Computer Science PYQ 2024
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 :





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


UGC NET Computer Science PYQ 2024
Arrange the following examples of Artificial Intelligence (AI) in the order of increasing complexity:

A. Spam email detection using rule-based systems
B. Handwritten digit recognition using shallow neural networks
C. Image classification using convolutional neural networks
D. Autonomous driving using reinforcement learning algorithms

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Complexity increases as follows:


Rule-based system → simplest

Shallow neural network → moderate complexity

CNN image classification → more complex

Autonomous driving → highly complex system


Thus increasing order:


A → B → C → D


UGC NET Computer Science PYQ 2024
Match List-I with List-II.
 List-I
 List-II
 A. Complement
 I. Adder
 B. Ex-OR
 II. Instruction decoding
 C. Accumulator
 III. Negative number representation
 D. Control Unit

 IV. Arithmetic and Logic operations

Choose the correct answer from the options given below:






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Complement → used in negative number representation → III

Ex-OR → used in arithmetic and logic operations → IV

Accumulator → used with adder → I

Control Unit → instruction decoding → II


Correct Matching:


A → III

B → IV

C → I

D → II


UGC NET Computer Science PYQ 2024
The sequence of fields in an IP datagram will be:

A. flags
B. options
C. protocol
D. identification
E. service type

Choose the correct answer from the options given below:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

IPv4 header order (relevant fields):


Type of Service → Identification → Flags → Protocol → Options


Thus order:


E → D → A → C → B


UGC NET Computer Science PYQ 2024
Match List-I with List-II.
 List-I
 List-II
 A. RAID level-2
 I. block-interleaved
 B. RAID level-3
 II. error-correcting-codes
 C. RAID level-4
 III. reed-solomon codes
 D. RAID level-6

 IV. bit-interleaved

Choose the correct answer from the options given below:






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

RAID-2 → error correcting codes (Hamming) → II

RAID-3 → bit interleaved parity → IV

RAID-4 → block interleaved parity → I

RAID-6 → Reed–Solomon codes → III


Correct Matching:


A → II

B → IV

C → I

D → III


UGC NET Computer Science PYQ 2024
The cyclomatic complexity of the following flow graph is:






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Cyclomatic complexity formula:


$V(G) = E - N + 2P$


Where

$E$ = number of edges

$N$ = number of nodes

$P$ = number of connected components (here $P=1$)


From the graph:


Nodes = 10


Edges = 12


So,


$V(G) = 12 - 10 + 2(1)$


$V(G) = 4$


UGC NET Computer Science PYQ 2024
Which of the following is not the goal of reverse engineering?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Goals of reverse engineering:


• Recover lost design information

• Understand system structure

• Detect side effects

• Manage system complexity


Data flow itself is not a goal, but rather a representation or analysis technique.


UGC NET Computer Science PYQ 2024
Which of the followings are true for a complete binary tree?
A. It always has odd number of vertices.
B. With $n$ internal vertices, it has $n+1$ leaves.
C. With $l$ leaves it has $l-1$ internal vertices.
D. With $2n-1$ vertices, it has $n$ leaves.






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Properties of complete/full binary tree:


• If internal nodes = $n$ → leaves = $n+1$ ✔

• If leaves = $l$ → internal nodes = $l-1$ ✔

• Total vertices = $2n-1$ when leaves = $n$ ✔

• Such trees always have odd number of vertices ✔


Thus all statements are correct.


UGC NET Computer Science PYQ 2024
Match List-I with List-II.
 List-I
 List-II
 A. Thread spawn
 I. to convert a blocking system call into a nonblocking call
 B. Block thread
 II. to reclaim pages
 C. Jacketing
 III. processor turn to the execution of another ready thread
 D. Flush

 IV. thread is provided with its own register context






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Thread spawn → thread gets its own register context → IV

Block thread → CPU switches to another ready thread → III

Jacketing → convert blocking system call to nonblocking → I

Flush → reclaim pages → II


Matching:


A → IV

B → III

C → I

D → II


UGC NET Computer Science PYQ 2024
How much time does an algorithm using $2^{50}$ bit operations need if each bit operation takes $2^{-38}$ second?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

$2^{50} \times 2^{-38} = 2^{12}$ seconds

$2^{12} = 4096$ seconds

Convert to minutes:

$4096/60 \approx 68.27$ minutes

$\approx 1.14$ hours


UGC NET Computer Science PYQ 2024
The chairs of an auditorium are to be labelled with a letter followed by a positive two digits integer where labelling is starting with A01. How many maximum possible chairs could be labelled in this way?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Letters: 26 (A to Z)


Two digit positive integers:

01 to 99 → 99 numbers


Total combinations:


$26 \times 99 = 2574$


UGC NET Computer Science PYQ 2024
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





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


UGC NET Computer Science PYQ 2024
The following code:

stmt → if expr then stmt else stmt
      | if expr then stmt

suffers from:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

This grammar produces the dangling-else problem.

In such cases the else can be associated with more than one if, producing more than one parse tree.


Thus the grammar is ambiguous.


UGC NET Computer Science PYQ 2024
Match List-I with List-II:
 List-I
 List-II
 A. Batch Multiprogramming
I. allows more efficient use of main memory
 
 B. Time sharing
II. user no longer has direct access to the processor
 
 C. Monitor
 III. Maximize processor use
 D. Reentrant Procedures

 IV. minimize response time






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Batch Multiprogramming → maximize CPU utilization → III

Time sharing → minimize response time → IV

Monitor → user does not directly control processor → II

Reentrant procedures → efficient use of memory → I


Matching:


A → III

B → IV

C → II

D → I


UGC NET Computer Science PYQ 2024
In Genetic Algorithm’s cross over operation, mask is used in?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

In uniform crossover, a mask (binary mask) determines which parent contributes each gene.


Thus mask-based crossover = uniform crossover.


UGC NET Computer Science PYQ 2024
The ratio of error found before software delivery and to the total errors (before and after) is called:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Defect Removal Efficiency (DRE):


$\text{DRE} = \frac{\text{Errors found before delivery}}{\text{Errors before + after delivery}}$


Thus the metric described is Defect Removal Efficiency.


UGC NET Computer Science PYQ 2024
Arrange in appropriate order, the construction of a finite automata:

A. Minimum State DFA
B. Regular Expression
C. NFA-ε
D. Problem Statement
E. DFA





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


UGC NET Computer Science PYQ 2024
The output of the following C++ Program is:
#include <stdio.h>
int main(void)
{
    int x, *p;
    x = 30;
    p = x;
    printf("%d", *p);
    return 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

p is a pointer variable and must store the address of x, written as:


p = &x;


But the program assigns:


p = x;


which means an integer is assigned to a pointer, causing a compilation error (type mismatch).


UGC NET Computer Science PYQ 2024
The Cardinality of a fuzzy set is:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

In fuzzy set theory, cardinality is the sum of membership values:

$|A| = \sum \mu_A(x)$

The result depends on membership values and may vary.


UGC NET Computer Science PYQ 2024
Which of the following is not correct about the virtual memory segmentation?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Properties of segmentation:


• Segments can be loaded independently → True

• No internal fragmentation → True

• Large virtual address space → True


Segmentation does not reduce multiprogramming; it usually supports better memory utilization.


Thus incorrect statement:


UGC NET Computer Science PYQ 2024
The parameter Actual count is used in Genetic Algorithm (GA) for:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

In genetic algorithms, Actual Count refers to the expected number of copies of a chromosome in the next generation, used in selection (fitness proportionate selection).


UGC NET Computer Science PYQ 2024

For the software quality assurance, which of the followings are correct?

A. Execution of code
B. No execution of code
C. Preventive technique
D. A corrective technique






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Software Quality Assurance (SQA):


• Focuses on process improvement

• Works as a preventive technique

• Usually involves reviews, audits and standards

• Does not require execution of code


Thus:


B → True

C → True

A → False

D → False (corrective is more related to debugging/testing)


UGC NET Computer Science PYQ 2024

For the following Parents in figure (1) and (2):

Which is correct?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

The right parts of the parents are exchanged:


Parent₁: 10110 | 010

Parent₂: 10101 | 111


After crossover:


Child₁: 10110 | 111

Child₂: 10101 | 010


This is exactly what is shown in figure (2).


Thus it represents one-point crossover.


UGC NET Computer Science PYQ 2024
$Z$ is set of integers. $(Z,)$ forms group if * is:





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*b=a+b+2$


Associativity


$(a*b)*c=(a+b+2)+c+2=a+b+c+4$


$a*(b*c)=a+(b+c+2)+2=a+b+c+4$


Identity element:


$a*e=a$


$a+e+2=a$


$e=-2$


Inverse:


$a*b=-2$


$a+b+2=-2$


$b=-a-4$


UGC NET Computer Science PYQ 2024
Which of the following sequence ${a_n}$ are solution of recurrence relation

$a_n=8a_{n-1}-16a_{n-2}$

A. $a_n=1$
B. $a_n=2^n$
C. $a_n=4^n$
D. $a_n=n4^n$
E. $a_n=(-4)^n$





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Characteristic equation


$r^2-8r+16=0$


$(r-4)^2=0$


$r=4$


General solution


$a_n=(c_1+c_2n)4^n$


Thus valid sequences:


$4^n$


$n4^n$


UGC NET Computer Science PYQ 2024
Which of the following is not an Object Oriented Programming language?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Python → OOP

Smalltalk → pure OOP

Perl → supports OOP


SQL Plus → database query interface.


UGC NET Computer Science PYQ 2024
Which of the following structures of knowledge representation are the most purely syntactic?

A. Conceptual dependency
B. Predicate logic
C. Slot-and-filler
D. Nonmonotonic systems





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Predicate logic → symbolic syntactic structure

Slot-and-filler → symbolic frame representation


Conceptual dependency → semantic

Nonmonotonic systems → reasoning method


UGC NET Computer Science PYQ 2024
Match List-I with List-II
 List-I

List-II 

 A. $A\rightarrow aB\ |\ a,\ a\in T,\ A,B\in V$
I. Recursive Descent Parser
 
 B. $A\rightarrow BC\ |\ a,\ a\in T,\ A,B,C\in V$
 II. Turing Machine
 C. $LL(1)$ grammar
 III. Chomsky Normal Form
 D. Halting problem

 IV. Finite Automata






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\rightarrow aB|a$ → Regular grammar → Finite Automata → IV


$A\rightarrow BC|a$ → Chomsky Normal Form → III


$LL(1)$ grammar → Recursive Descent Parser → I


Halting problem → Turing Machine → II


Matching:


$A\rightarrow IV$

$B\rightarrow III$

$C\rightarrow I$

$D\rightarrow II$


UGC NET Computer Science PYQ 2024
For line drawing, which of the following algorithms are used?

A. DDA algorithm
B. Bresenham algorithm
C. Mid-point algorithm
D. Curve algorithm

Choose the most appropriate answer from the options given below:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Line drawing algorithms used in computer graphics are:


DDA algorithm

Bresenham algorithm


Mid-point algorithm is generally used for circle drawing.


UGC NET Computer Science PYQ 2024
Arrange the following so that they can be placed in perfect/appropriate order.

A. Planning
B. Construction
C. Modeling
D. Communication
E. Deployment

Choose the correct answer from the options given below:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Software development process:


Communication → Planning → Modeling → Construction → Deployment


Order:


$D \rightarrow A \rightarrow C \rightarrow B \rightarrow E$


UGC NET Computer Science PYQ 2024
Which of the following is not a characteristic of a specialized embedded OS?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Embedded OS features:


• real-time scheduling

• interrupt handling

• memory partitioning


File system features like non-sequential files are typical for general purpose OS.


UGC NET Computer Science PYQ 2024
The order of steps of Address Translation in Linux Virtual Memory Scheme will be:

A. register
B. offset
C. Page directory
D. Page table
E. Page middle directory

Choose the correct answer from the options given below:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Linux 4-level paging:


register → page directory → page middle directory → page table → offset


Order:


$A \rightarrow C \rightarrow E \rightarrow D \rightarrow B$


UGC NET Computer Science PYQ 2024
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) =$





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}$


UGC NET Computer Science PYQ 2024
When we formulate the LPP from the above given passage, which of the following is the objective function for its dual problem?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Stock available:


Red wool = $8$

Green wool = $10$

Blue wool = $15$


Dual objective function uses resource quantities.


Thus


$Min\ P = 8u + 10v + 15w$


UGC NET Computer Science PYQ 2024
On the basis of available material, maximum total income is:





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


$x$ = unit of cloth A

$y$ = unit of cloth B


Income:


$Max\ Z = 30x + 50y$


Constraints


$2x + 3y \le 8$


$3x + 2y \le 10$


$2y \le 15$


Corner point:


$x = 0.8,\ y = 2$


$Z = 30(0.8) + 50(2)$


$Z = 24 + 100$


$Z = 124$


UGC NET Computer Science PYQ 2024
If $x$ unit length of type A cloth and $y$ unit length of type B cloth, then constraints formula for the LPP is:





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Red wool constraint


$2x + 3y \le 8$


Green wool constraint


$3x + 2y \le 10$


Blue wool constraint


$2y \le 15$


or


$y \le 7.5$


UGC NET Computer Science PYQ 2024
How many unit length used for cloth A when income is maximized?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

At optimal point


$2x + 3y = 8$


$3x + 2y = 10$


Solve


$x = 0.8$


UGC NET Computer Science PYQ 2024
Which of the following will be appropriate objective function for the given problem?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Income per unit cloth


A = ₹30

B = ₹50


Thus objective function


$Max\ Z = 30x + 50y$


UGC NET Computer Science PYQ 2024
A company is implementing a new database system to manage its customer information. The database contains tables for customers, orders, products and sales representatives. Each customer can place multiple orders and each order can contain multiple products. Each order is associated with a specific sales representative who manages the customer account. The system keeps records of customers, their orders, the products included in each order, and the sales representatives responsible for handling the accounts. The database is designed to improve efficiency in tracking sales and customer interactions.

Which SQL query retrieves the total number of distinct customers who have placed orders?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

We need the number of distinct customers who placed orders, so we count unique customer_id from orders table.


Correct query:


Select COUNT(DISTINCT customer_id) As total_customers From orders;


UGC NET Computer Science PYQ 2024
Which of the following tables is likely to have a foreign key referencing another table in the database system implemented by the company?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Orders table usually contains:


customer_id → referencing Customers table


Thus it contains a foreign key.


UGC NET Computer Science PYQ 2024
A company is implementing a new database system to manage its customer information. The database contains tables for customers, orders, products and sales representatives. Each customer can place multiple orders and each order can contain multiple products. Each order is associated with a specific sales representative who manages the customer account. The system keeps records of customers, their orders, the products included in each order, and the sales representatives responsible for handling the accounts. The database is designed to improve efficiency in tracking sales and customer interactions.

Based on the passage, which of the following statements is true?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

From passage:


• customers can place multiple orders

• orders can contain multiple products

• representatives manage customer accounts


Thus correct statement:


Each sales representative can manage multiple customer accounts.


UGC NET Computer Science PYQ 2024
A company is implementing a new database system to manage its customer information. The database contains tables for customers, orders, products and sales representatives. Each customer can place multiple orders and each order can contain multiple products. Each order is associated with a specific sales representative who manages the customer account. The system keeps records of customers, their orders, the products included in each order, and the sales representatives responsible for handling the accounts. The database is designed to improve efficiency in tracking sales and customer interactions.

Which SQL query retrieves the total number of orders placed by a specific customer?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

From passage:


• customers can place multiple orders

• orders can contain multiple products

• representatives manage customer accounts


Thus correct statement:


Each sales representative can manage multiple customer accounts.


UGC NET Computer Science PYQ 2024
A company is implementing a new database system to manage its customer information. The database contains tables for customers, orders, products and sales representatives. Each customer can place multiple orders and each order can contain multiple products. Each order is associated with a specific sales representative who manages the customer account. The system keeps records of customers, their orders, the products included in each order, and the sales representatives responsible for handling the accounts. The database is designed to improve efficiency in tracking sales and customer interactions.

Which of the following best describes the relationship between the orders table and the customers table?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

One customer can place multiple orders.


Thus relationship:


Customer → Orders


$1 : N$


UGC NET Computer Science PYQ 2024
Which of the following relations cannot be decomposed into BCNF with a lossless join and dependency-preserving decomposition?

R(V, W, X, Y, Z)





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

BCNF condition:
For every functional dependency $X \rightarrow Y$, X must be a superkey.

Check option (3)

FDs:

$VW \rightarrow X$

$X \rightarrow YV$

Here:

$X$ determines $V$ and $Y$

UGC NET Computer Science PYQ 2024
Arrange the following recurrence relations in increasing order of their time complexity.

(A) $T(n) = T(n/2) + 1$

(B) $T(n) = 2T(n/2) + n$

(C) $T(n) = 3T(n/3) + n$

(D) $T(n) = 2T(n/2) + \sqrt{n}$

(E) $T(n) = T(n-1) + 1$





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Using Master Theorem / recurrence expansion:

(A)
$T(n) = T(n/2) + 1$
Complexity → $O(\log n)$

(E)
$T(n) = T(n-1) + 1$
Complexity → $O(n)$

(D)
$T(n) = 2T(n/2) + \sqrt{n}$

$n^{\log_2 2} = n$

Since $\sqrt{n} < n$

→ $O(n)$

(B)
$T(n) = 2T(n/2) + n$

$n^{\log_2 2} = n$

→ $O(n \log n)$

(C)
$T(n) = 3T(n/3) + n$

$n^{\log_3 3} = n$

→ $O(n \log n)$

Increasing order

$O(\log n) < O(n) < O(n) < O(n\log n) < O(n\log n)$


UGC NET Computer Science PYQ 2024
Match List-I with List-II.
 List-I
List-II 
 A. Representation of bits
 I. Transport layer
 B. Physical Address
 II. Physical layer
 C. Logical Address
III. Network layer
 
 D. Segmentation and reassembly

 IV. Data link layer

Choose the correct answer from the options given below.





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

A. Representation of bits → Physical layer


B. Physical Address → Data Link Layer

(MAC address)


C. Logical Address → Network Layer

(IP address)


D. Segmentation and reassembly → Transport Layer


Thus:


A → II

B → IV

C → III

D → I


UGC NET Computer Science PYQ 2024
Find the correct sequence of the storage devices in ascending order based on their access time.

A. Registers
B. Magnetic Disk
C. Magnetic Tapes
D. Main Memory
E. Optical Disk





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Access time order (slowest → fastest):


Magnetic Tape → Optical Disk → Magnetic Disk → Main Memory → Registers


Thus ascending order:


C → E → B → D → A


UGC NET Computer Science PYQ 2024
Match List-I with List-II.
 List-I (Testing Type)
 List-II (Description)
 A. Unit testing
 I. Testing individual components of the software
 B. Integration testing
 II. Testing the interaction between integrated components
 C. System testing
III. Testing to verify the system meets business needs
 
 D. Acceptance testing

 IV. Testing the complete system to ensure it meets requirements

Choose the correct answer from the options given below.






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Unit Testing → Testing individual components


Integration Testing → Testing interaction between modules


System Testing → Testing the complete system


Acceptance Testing → Verifying business/user requirements


Thus mapping:


A → I

B → II

C → IV

D → III


UGC NET Computer Science PYQ 2024

Arrange the following Language Classes in ascending order according to their expressive power, as defined by Chomsky hierarchy.

(A) Context-free languages
(B) Context-sensitive languages
(C) Regular languages
(D) Unrestricted grammars






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Chomsky hierarchy order:


Regular Languages

< Context-Free Languages

< Context-Sensitive Languages

< Recursively Enumerable (Unrestricted) Languages


Thus order:


C → A → B → D


UGC NET Computer Science PYQ 2024

Arrange the following Language Classes in ascending order according to their expressive power, as defined by Chomsky hierarchy.

(A) Context-free languages
(B) Context-sensitive languages
(C) Regular languages
(D) Unrestricted grammars






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Chomsky hierarchy order:


Regular Languages

< Context-Free Languages

< Context-Sensitive Languages

< Recursively Enumerable (Unrestricted) Languages


Thus order:


C → A → B → D


UGC NET Computer Science PYQ 2024
Match List-I with List-II.
 List-I
 List-II

 A. Dijkstra’s Algorithm
 I. Find the shortest path between all pairs of vertices in a graph with positive or negative edge weights
 B. Floyd-Warshall Algorithm
 II. Finds the shortest path in a weighted graph with non-negative edge weights

 C. Bellman-Ford Algorithm

III. Sorts elements by repeatedly moving them past neighboring elements that are smaller

 
 D. Prim’s Algorithm

IV. Determines the strongly connected components in a directed graph

 
Choose the correct answer from the options given below.





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Dijkstra Algorithm → shortest path with non-negative weights

Floyd-Warshall → all pairs shortest paths

Bellman-Ford → handles negative edge weights

Prim → Minimum Spanning Tree

Thus correct matching:

A → II
B → I

Remaining pair becomes

C → IV
D → III


UGC NET Computer Science PYQ 2024
Arrange the given steps required for a Direct Memory Access (DMA) transfer in the correct order.

(A) Initiate DMA transfer request
(B) Transfer data directly between peripheral and memory
(C) Processor grants DMA control over the system bus
(D) DMA controller completes data transfer and signals completion







Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

DMA transfer sequence:


Device initiates DMA request


CPU grants bus control to DMA controller


DMA transfers data between memory and device


DMA signals completion


Order:


A → C → B → D


UGC NET Computer Science PYQ 2024
A graph $G$ with number of vertices greater and equal than three i.e. $(n \ge 3)$ is a Hamiltonian graph, if the degree of each vertex is greater and equal to …





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Dirac’s theorem states that if a simple graph with $n \ge 3$ vertices satisfies


$deg(v) \ge \frac{n}{2}$


for every vertex $v$, then the graph is Hamiltonian.


Thus the degree of each vertex must be at least half of the number of vertices.


UGC NET Computer Science PYQ 2024
Arrange the following steps in a proper sequence for the typical process of a DNS query :

(A) Query authoritative DNS Server
(B) Query local DNS Server
(C) Local DNS Server Check Cache
(D) Query root DNS Server
(E) Query TLD DNS Server

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Typical DNS resolution process:


Client queries Local DNS Server


Local DNS server checks cache


If not found → Root DNS server queried


Root server refers to TLD DNS server


TLD server refers to Authoritative DNS server


Thus the correct order is


(B) → (C) → (D) → (E) → (A)


UGC NET Computer Science PYQ 2024
In a schema $R(A, B, C, D, E, F, G, H)$, each field of $R$ contains only atomic values.
$F = {CH \rightarrow C, A \rightarrow BC, B \rightarrow CEH, E \rightarrow A, A \rightarrow EFG}$ is a set of functional dependencies so that $F^+$ is exactly the set of FDs that holds $R$. The relation $R$ is :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Given FDs


$CH \rightarrow C$

$A \rightarrow BC$

$B \rightarrow CEH$

$E \rightarrow A$

$A \rightarrow EFG$


From


$A \rightarrow BC$

$A \rightarrow EFG$


we get


$A \rightarrow BCFG E$


Then


$B \rightarrow CEH$


Thus


$A^+ = {A,B,C,D,E,F,G,H}$


So $A$ is a candidate key.


Now check dependency


$E \rightarrow A$


Since $E$ is not a superkey, but RHS contains a prime attribute, it satisfies 3NF but violates BCNF.


Therefore the relation is


in 3NF but not in BCNF.


UGC NET Computer Science PYQ 2024
Consider the Grammar :

$S \rightarrow A$
$A \rightarrow S B S \mid id$
$B \rightarrow B, A \mid A$

If $I_0 = CLOSURE({[S' \rightarrow .A]})$, then how many items be in the set for $GOTO(I_0, S)$





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Initial item

$S' \rightarrow .A$

Closure adds productions of $A$

$A \rightarrow .SBS$
$A \rightarrow .id$

Now the item containing $S$ after dot:

$A \rightarrow .SBS$

Applying GOTO on $S$ gives

$A \rightarrow S.BS$

Now closure for $B$ adds

$B \rightarrow .B,A$
$B \rightarrow .A$

Also expand $A$

$A \rightarrow .SBS$
$A \rightarrow .id$

Total items in $GOTO(I_0,S)$ = 4

UGC NET Computer Science PYQ 2024
Which of the following statements about pointers in C are TRUE.

(A) Pointers can be used to access array elements
(B) Pointers can store the address of another pointer
(C) Pointers are automatically dereferenced in expression
(D) Pointers cannot be used to access structure members

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

(A) True — pointers can access array elements because arrays and pointers are closely related in C.

(B) True — a pointer can store the address of another pointer (pointer to pointer).

(C) False — pointers are not automatically dereferenced, we must use *.

(D) False — pointers can access structure members using ->.

Thus correct statements are A and B.

UGC NET Computer Science PYQ 2024
Arrange the following steps in proper sequence involved in a Genetic Algorithm :

(A) Selection
(B) Initialization
(C) Crossover
(D) Mutation
(E) Evaluation

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Typical steps of Genetic Algorithm:

Initialization

Evaluation

Selection

Crossover

Mutation

Thus order:

(B) → (E) → (A) → (C) → (D)

UGC NET Computer Science PYQ 2024
Arrange the following steps in a proper sequence for the process of training a neural network.

(A) Weight initialization
(B) Feed forward
(C) Back Propagation
(D) Loss Calculation
(E) Weight update

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Typical neural network training sequence:

Initialize weights

Perform feed forward

Compute loss

Backpropagate error

Update weights

Thus the order is:

(A) → (B) → (D) → (C) → (E)

UGC NET Computer Science PYQ 2024
Which of the following C++ statements correctly declares an abstract class ?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

In C++, an abstract class must contain at least one pure virtual function.

Syntax of pure virtual function:

virtual return_type function() = 0;

Only option (1) correctly declares a pure virtual function.

UGC NET Computer Science PYQ 2024
Match List-I with List-II.
 List-I
(computing systems)

List-II
(working/output) 

 (A) Half Adder
 (I) Has $n$ input and $2^n$ output
 (B) Decoder
 (II) CPU Storage unit
 (C) Register
 (III) Used to store program at runtime
 (D) Main memory

 (IV) 2-bit addition circuit

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Half Adder → performs addition of two bits → 2-bit addition circuit → (IV)

Decoder → has $n$ inputs and $2^n$ outputs → (I)

Register → CPU internal storage → (II)

Main memory → stores program during execution → (III)

Thus

(A) → (IV)
(B) → (I)
(C) → (II)
(D) → (III)

UGC NET Computer Science PYQ 2024

Arrange the following steps in the correct order to solve the Knapsack problem using Dynamic Programming.

(A) Define the base case when the capacity is zero $(0)$ or no items are left to consider
(B) Compute the maximum value that can be obtained using items up to the $i$-th item and a knapsack capacity of $0$
(C) Identify subproblems and their dependencies based on items weights and values
(D) Initialize a table to store results of subproblems
(E) Iterate through each item and each possible capacity to fill the table

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Typical DP knapsack steps:

Identify subproblems → (C)

Initialize DP table → (D)

Define base cases → (A)

Fill table by iterating items and capacity → (E)

Compute optimal values → (B)

Order:

(C) → (D) → (A) → (E) → (B)

UGC NET Computer Science PYQ 2024

Match List - I with List - II.


 List - I

 List - II

 (A) The activation function
 (I) is called the delta rule.
 (B) The learning method of perceptron
 (II) is one of the key components of the perceptron as in the most common neural network architecture.
 (C) Areas of application of artificial neural network include
 (III) is always boolean like a switch.
 (D) The output of the perceptron

 (IV) system identification and control.

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Activation function → key component of neural network → (II)

Learning rule of perceptron → called delta rule → (I)

Applications of ANN → system identification and control → (IV)

Output of perceptron → boolean (0 or 1) like a switch → (III)

Thus

(A) → (II)
(B) → (I)
(C) → (IV)
(D) → (III)

UGC NET Computer Science PYQ 2024
In a token ring network the transmission speed is $10^7$ bps and the propagation speed is $200 , m/\mu s$.
The 1-bit delay in this network is equivalent to ______.





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Transmission speed

$10^7$ bits/sec

Time for 1 bit

$\frac{1}{10^7}$ sec

Convert to microseconds

$\frac{1}{10^7} \times 10^6 = 0.1 , \mu s$

Propagation speed

$200 , m/\mu s$

Distance traveled in $0.1 , \mu s$

$200 \times 0.1 = 20 , m$

UGC NET Computer Science PYQ 2024

Consider the following statements regarding combinational and sequential circuits.

(A) Output of combinational circuits depends on the only current input.
(B) Output of combinational circuit depends on the both current input and previous output.
(C) Output of sequential circuit depends on the current input.
(D) Output of sequential circuit depends on both current input and previous output.

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Combinational circuit → output depends only on current input → (A) True
Sequential circuit → output depends current input + previous state → (D) True

(B) False
(C) Incomplete / incorrect

UGC NET Computer Science PYQ 2024
Consider the following C program :
#include<stdio.h>
int main()
{
    int x[]={2,4,6,8,10};
    int a, b=0, *y = x + 4;

    for(a=0; a<5; a++)
    {
        b = b + (*y - a) - *(y - a);
    }

    printf("%d\n", b);
    return 0;
}
What will be the output of the above C program ?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Pointer

$y = x + 4$

So

$*y = 10$

Loop runs $a=0$ to $4$

Expression:

$b = b + (*y - a) - *(y-a)$

Compute:

$a=0$ → $(10-0) - 10 = 0$
$a=1$ → $(10-1) - 8 = 1$
$a=2$ → $(10-2) - 6 = 2$
$a=3$ → $(10-3) - 4 = 3$
$a=4$ → $(10-4) - 2 = 4$

Sum

$b = 0+1+2+3+4 = 10$

UGC NET Computer Science PYQ 2024
Translate $\forall x \exists y (x < y)$ in English. Consider domain as a real number for both the variables.





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Expression

$\forall x \exists y (x<y)$

Meaning

"For every $x$, there exists some $y$ such that $x<y$"

UGC NET Computer Science PYQ 2024
For all real numbers $x$, there exists a real number $y$ such that $x$ is less than $y$.
(A) $L_1 = { w \in {0,1}^* \mid \text{length of } w \text{ is even} }$
(B) $L_2 = { w \in {0,1}^* \mid \text{length of } w \text{ is odd} }$
(C) $L_3 = { w \in {0,1}^* \mid \text{all 0s come before all 1s in } w }$
(D) $L_4 = { w \in {0,1}^* \mid w \text{ contains equal number of 0s and 1s} }$
(E) $L_5 = { w \in {0,1}^* \mid \text{all 1s come before all 0s in } w }$

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Important fact:

NFA and DFA recognize exactly the same class of languages → Regular Languages

So no language exists that can be recognized by NFA but not DFA.

But option (D)
equal number of 0s and 1s → not regular

Option (E)
all 1s before 0s → regular

Hence only (D) is non-regular.

Closest option given:

(4) (D) and (E) Only

UGC NET Computer Science PYQ 2024

Consider the Grammar :

$T \rightarrow Qx$
$Q \rightarrow RS$
$R \rightarrow y \mid \varepsilon$
$S \rightarrow z \mid \varepsilon$

Here $x, y, z$ are terminals and $T, Q, R, S$ are non terminals.
What will be the follow set of the non terminal $R$ ?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

From production

$Q \rightarrow RS$

FOLLOW of $R$ includes FIRST of $S$ except $\varepsilon$

FIRST($S$) = ${z, \varepsilon}$

So add $z$

Since $S \rightarrow \varepsilon$, also include FOLLOW($Q$)

From

$T \rightarrow Qx$

FOLLOW($Q$) = ${x}$

Thus

FOLLOW($R$) = ${z, x}$

UGC NET Computer Science PYQ 2024

Two computers A and B are configured as follows :


A has IP address 203.197.2.53 and subnet mask 255.255.128.0


B has IP address 203.197.5.201 and subnet mask 255.255.192.0


What one of the following statement is true ?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Subnet mask A

$255.255.128.0$

Network range:

$203.197.0.0$ → $203.197.127.255$

B address $203.197.5.201$ lies in this range
So A thinks B is in same network

Subnet mask B

$255.255.192.0$

Network blocks:

$203.197.0.0$ → $203.197.63.255$

A address $203.197.2.53$ lies in this range
So B also thinks A is same network

Thus both assume same network.



UGC NET Computer Science PYQ 2024
Match List - I with List - II.
 List - I (IP Address)

List - II (Class)

 
 (A) 10.20.30.40
 (I) Class E
 (B) 210.20.30.3
 (II) Class B
 (C) 180.30.100.10
 (III) Class A
 (D) 252.5.15.11

 (IV) Class C

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

IP class ranges

Class A → $1-126$
Class B → $128-191$
Class C → $192-223$
Class D → $224-239$
Class E → $240-255$

Check first octet:

A: $10$ → Class A → (III)
B: $210$ → Class C → (IV)
C: $180$ → Class B → (II)
D: $252$ → Class E → (I)

Thus

(A)-(III), (B)-(IV), (C)-(II), (D)-(I)


UGC NET Computer Science PYQ 2024
What will be the output of the following C code?
#include<stdio.h>
void main()
{
    int arr[5] = {10, 20, 30, 40, 50};
    int *p = (int*) (&arr + 1);
    printf("%d%d", *(arr + 1), *(p - 1));
}





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution


UGC NET Computer Science PYQ 2024

What is SQL primarily used for in the context of relational databases?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

SQL (Structured Query Language) is used to:

  • create tables

  • insert data

  • update data

  • delete data

  • query data

Thus its primary purpose is managing and manipulating relational databases.


UGC NET Computer Science PYQ 2024
Given a project that uses the COCOMO model with an estimated effort of 2000 person-months and a productivity rate of 5 person-month per KLOC, what is the estimated size of the project in KLOC ?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Productivity relation:

$Productivity = \dfrac{Effort}{Size}$

Given:

$Effort = 2000$ person-month
$Productivity = 5$ person-month per KLOC

So

$Size = \dfrac{Effort}{Productivity}$

$Size = \dfrac{2000}{5}$

$Size = 400$ KLOC


UGC NET Computer Science PYQ 2024

Match List - I with List - II.

 List - I (software design principles)

 List - II (Definitions)

 (A) Cohesion
 (I) Degree to which one module relies on another module
 (B) Coupling
 (II) Dividing a software system into distinct modules
 (C) Abstraction
 (III) Degree to which elements of a module belong together
 (D) Modularity

 (IV) Simplifying complex reality by modeling classes appropriate to the problem

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

efinitions:


Cohesion → elements of a module belong together → (III)


Coupling → dependency between modules → (I)


Abstraction → simplify complexity → (IV)


Modularity → divide system into modules → (II)


Thus:


(A)-(III), (B)-(I), (C)-(IV), (D)-(II)


UGC NET Computer Science PYQ 2024

Consider the transactions $T_1, T_2, T_3$ and the schedules $S_1$ and $S_2$ given below.

$T_1 : r_1(x); r_1(z); w_1(z)$
$T_2 : r_2(y); r_2(z); w_2(z)$
$T_3 : r_3(y); r_3(x); w_3(y)$

$S_1$ :
$r_1(x); r_3(y); r_3(x); r_2(y); r_2(z); w_3(y); w_3(z); r_1(z); w_1(x); w_1(z)$

$S_2$ :
$r_1(x); r_3(y); r_2(y); r_3(x); r_1(z); r_2(z); w_3(y); w_1(x); w_2(z); w_1(z)$

Which one of the following statements about the schedules is TRUE ?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

To check conflict serializability we build precedence graph.

For $S_1$

Conflicts:

$T_1 \rightarrow T_3$
$T_3 \rightarrow T_2$
$T_2 \rightarrow T_1$

Cycle exists:

$T_1 \rightarrow T_3 \rightarrow T_2 \rightarrow T_1$

Therefore

$S_1$ not conflict-serializable

For $S_2$

Conflicts:

$T_3 \rightarrow T_1$
$T_2 \rightarrow T_1$
$T_3 \rightarrow T_2$

Graph has no cycle

Serializable order:

$T_3 \rightarrow T_2 \rightarrow T_1$

Thus

$S_2$ is conflict-serializable



UGC NET Computer Science PYQ 2024

Consider the following statement regarding special purpose registers.

(A) Program Counter (PC) keeps the track of next instruction executed
(B) Instruction register holds the address of first instruction to be executed
(C) Accumulator holds the output of ALU
(D) Program Counter (PC) keeps the track of only first instruction of the program

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

(A) True

PC stores address of next instruction


(B) False

Instruction Register stores current instruction, not address


(C) True

Accumulator stores ALU result


(D) False

PC tracks every next instruction, not only first


Thus correct statements:


(A) and (C)


UGC NET Computer Science PYQ 2024

Which of the following are Agile Process Models ?

(A) Extreme Programming (XP)
(B) Waterfall
(C) Scrum
(D) Spiral
(E) Incremental

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Agile models include iterative and flexible development approaches.


Check each:


(A) Extreme Programming (XP) → Agile methodology ✔


(B) Waterfall → Traditional sequential model ✘


(C) Scrum → Agile framework ✔


(D) Spiral → Risk-driven traditional model ✘


(E) Incremental → Development strategy but not strictly Agile model here


Thus Agile models are:


Extreme Programming and Scrum


UGC NET Computer Science PYQ 2024

Arrange the following phases of database design in the correct order :


(A) Physical Design

(B) Conceptual Design

(C) Logical Design

(D) Requirement Analysis


Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Standard database design process:


Requirement Analysis


Conceptual Design


Logical Design


Physical Design


Thus order:


(D) → (B) → (C) → (A)


UGC NET Computer Science PYQ 2024

Which of the following statements are TRUE about mutual exclusion in concurrent programming ?

(A) Mutual exclusion ensures that only one process can be in a critical section at any given time.
(B) Mutual exclusion are designed to prevent conflicts and ensure that only one process can access shared resources at a time.
(C) Mutual exclusion can use various algorithms to ensure that processes do not enter the critical section simultaneously.
(D) Mutual exclusion allows multiple processes to access the critical section simultaneously to improve performance.

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

(A) True

Mutual exclusion ensures only one process enters critical section at a time.


(B) True

It prevents conflicts on shared resources.


(C) True

Algorithms like Peterson, Dekker, semaphore, mutex ensure mutual exclusion.


(D) False

Critical section cannot be accessed simultaneously by multiple processes.


Thus correct statements:


(A), (B), (C)


UGC NET Computer Science PYQ 2024

Consider a relation schema $R = (U, V, W, X, Y, Z)$, on which the following functional dependencies hold:


${U \rightarrow V,; VW \rightarrow X,; Y \rightarrow W,; X \rightarrow U}$


The candidate keys of $R$ are:






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Functional dependencies:

$U \rightarrow V$

$VW \rightarrow X$

$Y \rightarrow W$

$X \rightarrow U$


Start with $UY$:

$U \rightarrow V$

$Y \rightarrow W$

Thus we get $V,W$

Then

$VW \rightarrow X$

Then

$X \rightarrow U$

So closure:

$UY^+ = {U,V,W,X,Y}$

Add $Z$ to cover all attributes.

Thus minimal key:

$UYZ$

Similarly:

$VYZ$ and $XYZ$

Thus candidate keys:

$UYZ,; VYZ,; XYZ$


UGC NET Computer Science PYQ 2024

Host A (on TCP/IPv4 Networks) send an IP Datagram D to host B (also on TCP/IPv4 network). Assume that no error occurred during transmission of D, when D reaches host B. Which of following header field may differ from that of original datagram D ?


(A) TTL

(B) Checksum

(C) Fragment offset

(D) Source IP

(E) Destination IP


Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

(A) TTL → Decreases at every router ✔


(B) Header checksum → Recomputed whenever TTL changes ✔


(C) Fragment offset → May change if fragmentation occurs ✔


(D) Source IP → Does not change ✘


(E) Destination IP → Does not change ✘


Thus fields that may differ:


TTL, Checksum, Fragment offset


UGC NET Computer Science PYQ 2024

Consider a CSMA/CD network that transmits data at the rate of 100 Mbps over a 1 kilometre cable with no repeater. If the minimum frame size required for this network is 1250 bytes, what is the signal speed (km/sec) in the cable ?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Minimum frame size:


$1250 \text{ bytes} = 1250 \times 8 = 10000 \text{ bits}$


Transmission rate:


$100 \text{ Mbps} = 100 \times 10^6 \text{ bits/sec}$


Transmission time:


$T = \frac{10000}{100 \times 10^6}$


$T = 10^{-4} \text{ sec}$


In CSMA/CD:


$T = 2 \times$ propagation delay


So propagation delay:


$\frac{T}{2} = 5 \times 10^{-5}$ sec


Distance = 1 km


Signal speed:


$v = \frac{distance}{time}$


$v = \frac{1}{5 \times 10^{-5}}$


$v = 20000 \text{ km/sec}$


UGC NET Computer Science PYQ 2024
#include<iostream.h>
using namespace std;

void swap(int &x, int &y)
{
    int temp = x;
    x = y;
    y = temp;
}

int main()
{
    int a = 5, b = 10;
    swap(a,b);
    swap(a,b);
    cout << a << " " << b;
    return 0;
}
What will be the output of above code ?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Initial values

$a = 5,; b = 10$

First call

swap(a,b)

$a = 10,; b = 5$

Second call

swap(a,b)

$a = 5,; b = 10$

Thus final output

5 10


UGC NET Computer Science PYQ 2024

Consider the three-way handshaking process followed during TCP connection establishment between two hosts A and B. Let S and R be two random 32-bit starting sequence numbers chosen by A and B respectively. Suppose A sends a TCP segment having SYN bit = 1, SEQ number = S and ACK bit = 0 and B accepts the connection request.

Which one of the following choices represents the information present in the TCP segment header that is sent by B to A ?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

TCP 3-way handshake:


Step 1

A → B


SYN = 1

SEQ = S


Step 2

B → A


SYN = 1

ACK = 1

SEQ = R

ACK = S + 1


Thus correct header fields:


SYN = 1

SEQ = R

ACK = 1

ACK = S + 1


UGC NET Computer Science PYQ 2024

Arrange the following steps of file handling in C in the correct order :


(A) Close the file

(B) Read from or write to the file

(C) Open the file

(D) Check for error


Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Correct file handling sequence in C:


Open file


Check for error


Read / Write


Close file


Thus order:


(C) → (D) → (B) → (A)


UGC NET Computer Science PYQ 2024

Select the Sorting Algorithms that are stable.


(A) Quick Sort

(B) Bubble Sort

(C) Insertion Sort

(D) Merge Sort

(E) Shell Sort


Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Quick Sort → Not stable ✘

Bubble Sort → Stable ✔

Insertion Sort → Stable ✔

Merge Sort → Stable ✔

Shell Sort → Not stable ✘


Thus stable algorithms:


Bubble Sort, Insertion Sort, Merge Sort


But among given options, only


(B) and (C)


appear together correctly.


UGC NET Computer Science PYQ 2024

Match List - I with List - II.

 List - I (operating system concepts)

List - II (characteristics) 

 (A) Paging
 (I) Evicts least recently used process
 (B) LRU (Least Recently Used)
 (II) Extends physical memory
 (C) C-SCAN
 (III) Logical to physical mapping
 (D) Virtual Memory

 (IV) Circular disk access

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Paging → Logical to physical address mapping → (III)


LRU → Replace least recently used page → (I)


C-SCAN → Circular disk scheduling → (IV)


Virtual Memory → Extends physical memory → (II)


Thus:


(A)-(III), (B)-(I), (C)-(IV), (D)-(II)


UGC NET Computer Science PYQ 2024

Which of the following statements are TRUE about Process Control Block (PCB) ?

(A) The PCB contains information about the process state, such as whether it is running, waiting or terminated

(B) The PCB includes the program code and data segments of the process

(C) The PCB stores the process’s memory management information, such as page tables and segment tables

(D) The PCB is used to track process scheduling information and CPU registers for process

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

(A) True

PCB stores process state (running, ready, waiting).


(B) False

Program code and data are stored in process memory, not in PCB.


(C) True

PCB stores memory management information (page tables, segment tables).


(D) True

PCB contains CPU registers and scheduling information.


Thus correct statements:


(A), (C), (D)


UGC NET Computer Science PYQ 2024

Arrange the following steps of Feature Driven Development (FDD) process in the correct sequence :


(A) Develop an overall model

(B) Build by feature

(C) Plan by feature

(D) Design by feature

(E) Build a feature list


Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Standard FDD lifecycle steps:

  1. Develop overall model

  2. Build feature list

  3. Plan by feature

  4. Design by feature

  5. Build by feature

Thus order:

(A) → (E) → (C) → (D) → (B)


UGC NET Computer Science PYQ 2024

Match List - I with List - II.

 List - I (Recurrence Relations)

List - II (Complexity) 

 (A) $T(n)=2T(n/2)+n$
 (I) $T(n)=\theta(n\log n)$ [exact solution]
 (B) $T(n)=T(n/2)+1$
 (II) $O(n^2)$
 (C) $T(n)=2T(n/2)+1$
 (III) $T(n)=\theta(n)$ [exact solution]
 (D) $T(n)=T(n-1)+1$

 (IV) $O(\log n)$

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

(A) $T(n)=2T(n/2)+n$


Master theorem


$a=2,; b=2,; f(n)=n$


$\Rightarrow T(n)=\theta(n\log n)$


So (A) → (I)


(B) $T(n)=T(n/2)+1$


Divide size halves each step


$\Rightarrow T(n)=O(\log n)$


So (B) → (IV)


(C) $T(n)=2T(n/2)+1$


Master theorem


$\Rightarrow T(n)=\theta(n)$


So (C) → (III)


(D) $T(n)=T(n-1)+1$


Linear recurrence


$\Rightarrow T(n)=O(n)$


Closest option given:


(D) → (II)


Thus matching:


(A)-(I), (B)-(IV), (C)-(III), (D)-(II)


UGC NET Computer Science PYQ 2024
Which of the following is correct way to declare a functional pointer in C ?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Function pointer syntax:


return_type (*pointer_name)(arguments);


Example:


int (*func)(int,int);


Meaning:


func is a pointer


pointing to a function


returning int


taking two int parameters


Thus correct declaration:


int (*func)(int,int);


UGC NET Computer Science PYQ 2024
Which of the following best describes the structure of a relational database ?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Relational databases (MySQL, PostgreSQL, Oracle etc.) store data in relations (tables).


Each table consists of:


Rows → tuples / records


Columns → attributes / fields


Thus relational model structure:


tables with rows and columns


UGC NET Computer Science PYQ 2024

Which of the following tasks could be attained using syntax trees in compiler design ?

(A) Type Checking
(B) Code Generation
(C) Code Optimization
(D) Error Handling

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Syntax trees (Abstract Syntax Tree – AST) are used in later compiler phases.


(A) Type Checking → Done using syntax tree ✔


(B) Code Generation → Uses syntax tree ✔


(C) Code Optimization → Uses syntax tree representation ✔


(D) Error Handling → Mainly done during lexical / syntax analysis ✘


Thus correct tasks:


(A), (B), (C)


UGC NET Computer Science PYQ 2024

Given a project with an estimated effort of 1500 person-hours and a team of 5 people, how many days will it take to complete the project, if each person works 8 hours a day ?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Total effort

$1500$ person-hours

Work per day by team:

$5 \times 8 = 40$ hours/day

Days required

$= \frac{1500}{40}$

$= 37.5$


UGC NET Computer Science PYQ 2024

Consider the following C code :

#include<stdio.h>


int temp = 0;


int fun(int x, int y)

{

    int z;

    temp++;


    if (y == 3)

        return (x*x*x);

    else

    {

        z = fun(x, y/3);

        return (z*z*z);

    }

}


int main()

{

    fun(4,81);

    printf("%d", temp);

}
What will be the output of the above code ?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Recursive calls divide $y$ by $3$ each time.

Call sequence:

$fun(4,81)$
$fun(4,27)$
$fun(4,9)$
$fun(4,3)$

Total calls = 4

Each call increments temp.

So

$temp = 4$


UGC NET Computer Science PYQ 2024
Let $P$ be “It is hot day” and $q$ be “The temperature is $48^\circ C$”.
Write in simple sentences the meaning of $\neg P \land \neg q$.





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Given:


$P$ : It is hot day


$q$ : Temperature is $48^\circ C$


Expression:


$\neg P \land \neg q$


Meaning:


$\neg P$ → It is not a hot day


$\neg q$ → Temperature is not $48^\circ C$


Combined with AND:


Neither $P$ nor $q$


Thus sentence:


"It is neither a hot day nor temperature is $48^\circ C$"


UGC NET Computer Science PYQ 2024
Let $L(x,y)$ be the statement “$x$ loves $y$” where the domain for both $x$ and $y$ consists of all people in the world.
Use quantifiers to express “Joy is loved by everyone.”





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Statement:


“Joy is loved by everyone”


Meaning:


Every person $x$ loves Joy.


Mathematically:


$\forall x; L(x,;Joy)$


UGC NET Computer Science PYQ 2024
Consider the following relations on ${1,2,3,4}$. Which of the following relations are reflexive ?

(A)
$R_1={(1,1),(1,2),(2,1),(2,2),(3,4),(4,1),(4,4)}$

(B)
$R_2={(1,1),(1,2),(2,1)}$

(C)
$R_3={(1,1),(1,2),(1,4),(2,1),(2,2),(3,3),(4,1),(4,4)}$

(D)
$R_4={(2,1),(3,1),(3,2),(4,1),(4,2),(4,3)}$

(E)
$R_5={(1,1),(1,2),(1,3),(1,4),(2,2),(2,3),(2,4),(3,3),(3,4),(4,4)}$

Choose the correct answer from the options given below :







Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

For a relation on ${1,2,3,4}$ to be reflexive, it must contain


$(1,1),(2,2),(3,3),(4,4)$


Check each:


$R_1$ → missing $(3,3)$ ✘


$R_2$ → missing $(3,3),(4,4)$ ✘


$R_3$ → contains $(1,1),(2,2),(3,3),(4,4)$ ✔


$R_4$ → missing all diagonal pairs ✘


$R_5$ → contains all $(1,1),(2,2),(3,3),(4,4)$ ✔


Thus reflexive relations:


$R_3$ and $R_5$


UGC NET Computer Science PYQ 2024

Fifth normal form is concerned with :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Database normal forms:


1NF → atomic values


2NF → remove partial dependency


3NF → remove transitive dependency


BCNF → stronger FD rules


4NF → multivalued dependency


5NF → join dependency


UGC NET Computer Science PYQ 2024

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 :






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)


UGC NET Computer Science PYQ 2024

Consider the given number $(45)_y$ where $y$ is the base of the number. Some of the possible values of $y$ are given below.


(A) 5

(B) 6

(C) 7

(D) 8


Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

In base $y$, digits must be less than base.

Number $(45)_y$ has digit 5.

Thus

$y>5$

Possible bases:

$6,7,8,\dots$

Given options:

6, 7, 8

Thus

(B), (C), (D)


UGC NET Computer Science PYQ 2024

Match List - I with List - II.

 List - I

List - II 

 (A) HTML
 (I) Allow for dynamic and interactive web pages.
 (B) DHTML
 (II) Defines the structure of web pages.
 (C) XML
 (III) Object-oriented programming language for web applications.
 (D) JAVA

 (IV) Used for data storage and transport.

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

HTML → defines structure of web pages → (II)


DHTML → dynamic interactive web pages → (I)


XML → data storage and transport → (IV)


JAVA → object-oriented programming language → (III)


Thus matching:


(A)-(II), (B)-(I), (C)-(IV), (D)-(III)


UGC NET Computer Science PYQ 2024
Arrange the following stages of parsing in the correct order as they typically occur in the compilation process.

(A) Lexical Analysis
(B) Semantic Analysis
(C) Syntax Analysis
(D) Intermediate Code Generation
(E) Code Optimization

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Standard compiler phases:


Lexical Analysis


Syntax Analysis


Semantic Analysis


Intermediate Code Generation


Code Optimization


Thus order:


(A) → (C) → (B) → (D) → (E)


UGC NET Computer Science PYQ 2024
Let $G(V,E)$ be an undirected graph with $|E|$ edges. Then the sum of degree of all vertices is equal to ______.





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution


UGC NET Computer Science PYQ 2024
______ is a Self Balancing binary search tree, where the path from the root to the furthest leaf is no more than twice as long as the path from the root to nearest leaf.





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Red-Black tree properties: Self balancing BST Longest path ≤ 2 × shortest path Thus definition matches Red-Black Tree.

UGC NET Computer Science PYQ 2024

Match List - I with List - II.

 List - I (Algorithms)

List - II (Characteristics) 

 (A) First Come First Served (FCFS)
 (I) Each process is assigned a priority
(B) Shortest Job First (SJF)
 (II) Ensures fair allocation of CPU time by assigning time slice
 (C) Round Robin (RR)
(III) Processes are executed in the order they arrive
 
 (D) Priority Scheduling

 (IV) Select the process for execution with smallest next burst time

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

FCFS → executed in order of arrival → (III) SJF → smallest burst time → (IV) Round Robin → time slice fairness → (II) Priority Scheduling → priority based → (I) Thus: (A)-(III), (B)-(IV), (C)-(II), (D)-(I)

UGC NET Computer Science PYQ 2024
Which of the following are typical activities in the software process lifecycle ?

(A) Requirement Analysis
(B) System Design
(C) Code Refactoring
(D) Deployment
(E) Substructure

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Typical Software Development Life Cycle (SDLC) activities:

  • Requirement Analysis ✔

  • System Design ✔

  • Implementation / Testing

  • Deployment ✔

Check options:

(A) Requirement Analysis → ✔
(B) System Design → ✔
(C) Code Refactoring → maintenance activity, not core lifecycle step ✘
(D) Deployment → ✔
(E) Substructure → not SDLC activity ✘

Thus correct:

(A), (B), (D)


UGC NET Computer Science PYQ 2024
Which of the following are TRUE about constructors in C++ ?

(A) A constructor can be overloaded.
(B) A constructor does not have a return type.
(C) A constructor must be declared as a friend function.
(D) A constructor is called when an object is destroyed.

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

(A) True

Constructors can be overloaded.


(B) True

Constructors do not have return type.


(C) False

Constructors are member functions, not friend functions.


(D) False

Destructor is called when object is destroyed.


Thus correct statements:


(A) and (B)


UGC NET Computer Science PYQ 2024
Consider a schema $R(P,Q,R,S)$ and the following functional dependencies

$P \rightarrow Q$
$Q \rightarrow R$
$R \rightarrow S$
$S \rightarrow Q$

The decomposition of $R(P,Q,R,S)$ into $R_1(P,Q)$, $R_2(Q,R)$ and $R_3(Q,S)$ is :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Check dependency preservation


Given FDs:


$P \rightarrow Q$

$Q \rightarrow R$

$R \rightarrow S$

$S \rightarrow Q$


Decomposed relations:


$R_1(P,Q)$

$R_2(Q,R)$

$R_3(Q,S)$


Each dependency is preserved:


$P \rightarrow Q$ → in $R_1$

$Q \rightarrow R$ → in $R_2$

$R \rightarrow S$ → derived via $Q$ in $R_3$

$S \rightarrow Q$ → in $R_3$


Thus dependency preserving


Check lossless join:


Common attribute between relations is Q, which functionally determines other attributes through dependencies.


Hence not lossless join.


UGC NET Computer Science PYQ 2024
Arrange the following phases of the Agile process in the correct sequence :

(A) Design
(B) Release
(C) Testing
(D) Development
(E) Planning

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Typical Agile workflow:


Planning


Design


Development


Testing


Release


Thus order:


(E) → (A) → (D) → (C) → (B)


UGC NET Computer Science PYQ 2024
#include<stdio.h>
void main()
{
    int arr[]={1, 2, 3, 4, 5};
    int *p = arr;

    printf("%d", *p++);
    printf("%d", *(p+1));
}
Find the output of the above code?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Initial:


arr = {1,2,3,4,5}

p → arr[0]


First statement:


*p++


Post-increment


Value printed = *p = 1

Then pointer moves to next element.


Now:


p → arr[1]


Second statement:


*(p+1)


p+1 → arr[2]


Value = 3


Output:


1 3


UGC NET Computer Science PYQ 2024

Which of the following properties correctly describe a Regular Grammar ?

(A) All productions rules are of the form $A \rightarrow xB$ or $A \rightarrow x$, where $A$ and $B$ are non terminal symbols and $x$ is a terminal symbol.

(B) Regular grammars are more powerful than context-free grammars and can express any type of language.

(C) There is a direct correspondence between regular grammar and finite automata.

(D) Regular grammars can generate languages that are not recognised by any type of automata.

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

(A) True

Regular grammar productions follow


$A \rightarrow aB$ or $A \rightarrow a$


(B) False

Regular grammar less powerful than CFG


(C) True

Regular grammar ↔ Finite automata equivalence


(D) False

Regular languages are recognized by finite automata


UGC NET Computer Science PYQ 2024

Consider the function in C code :

Cal(a, b)

{

    if (b != 1)

    {

        if (a != 1)

        {

            printf("*");

            Cal(a/2, b);

        }

    }

    else

    {

        b = b - 1;

        Cal(10, b);

    }

}

How many times * is going to be printed, if the function is called with


Cal(10, 10) ?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Observe recursion:

Each call prints * while dividing a by 2.

Sequence:

10 → 5 → 2 → 1

For each b value, stars printed = 3.

b decreases from 10 to 1.

Thus:

$9 \times 3 = 27$

Total stars printed = 27.


UGC NET Computer Science PYQ 2024

What is the output of code given below :

#include<iostream.h>

using namespace std;


class Base {

public:

    Base(){

        cout<<"Base Const";

    }


    virtual ~Base(){

        cout<<"Base dest";

    }

};


class derived : public Base {

public:

    Derived(){

        cout<<"Derived Const";

    }


    ~Derived(){

        cout<<"Derived dest";

    }

};


int main()

{

    Base *b = new Derived();

    delete b;

    return 0;

}






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Step-1: Object creation


Base *b = new Derived();


Constructor order in inheritance:


Base constructor


Derived constructor


Output:


Base Const

Derived Const


Step-2: Deleting object


Base destructor is virtual, so destructors call in reverse order:


Derived destructor


Base destructor


Output:


Derived dest

Base dest


Final Output:


Base Const Derived Const Derived dest Base dest


UGC NET Computer Science PYQ 2024

If a software project has 2000 lines of code (LOC) and the average productivity rate is 10 LOC per person-hour, how many person-hours are required to complete the project?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution



UGC NET Computer Science PYQ 2024

Consider the following if $p$ and $q$ are two statements.


(A) $\sim (p \land q) = \sim p \lor \sim q$


(B) $\sim (p \lor q) = \sim p \land \sim q$


(C) $p \land \sim p = T$


(D) $\sim (p \Rightarrow q) = p \land \sim q$


(E) $p \lor q = \sim p \lor \sim q$


Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution



UGC NET Computer Science PYQ 2024

Which of the following are context free language ?


(A) ${w^i x^j y^k z^l \mid i + k = j + l,; i,j,k,l \ge 0}$


(B) ${w^i x^j y^k z^l \mid i = j \text{ and } k = l,; i,j,k,l \ge 0}$


(C) ${w^i x^j y^k z^l \mid i = j = k \text{ and } k \ne l,; i,j,k,l \ge 0}$


(D) ${w^i x^j y^k z^l \mid i = j = k + l,; i,j,k,l \ge 0}$


(E) ${w^i x^j y^k z^l \mid i = j \text{ and } k \ne l,; i,j,k,l \ge 0}$


Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

(A) Condition $ i + k = j + l $ This type of dependency is not context free (requires two independent balances). So not CFL. (B) Conditions $ i = j $ and $ k = l $ Language form $ w^i x^i y^k z^k $ This is context free. (C) Condition $ i = j = k $ This is similar to $ a^n b^n c^n $ which is not context free. (D) Condition $ i = j = k + l $ Single dependency handled by PDA → Context Free. (E) Condition $ i = j $ and $ k \ne l $ Still context free (difference condition allowed). Correct CFL: (D) and (E)

UGC NET Computer Science PYQ 2024

Out of following steps in the proper sequence for simplifying a Boolean function using a Karnaugh map (K-map).


(A) Identify and group the largest possible cluster of $1$'s


(B) Draw the K-map for the given Boolean function


(C) Write the simplified Boolean expression from the grouped clusters


(D) Transfer the truth table values to the K-map


Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Correct K-map procedure:

Step 1 → Draw the K-map
Step 2 → Fill truth table values
Step 3 → Group largest clusters of $1$'s
Step 4 → Write simplified expression

Sequence:

(B) → (D) → (A) → (C)

UGC NET Computer Science PYQ 2024

A multi processor system with 16 processors is used to execute a parallelizable task. If the serial portion of the task takes 200 clock cycles and the parallel portion takes 800 clock cycles. When all 16 processors are used how many total clock cycles are required to complete the task?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution



UGC NET Computer Science PYQ 2024

If $L_1$ and $L_2$ are context free languages, which of the following is True about $L_1 \cap L_2$ ?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Important theory result: Context Free Languages are NOT closed under intersection But intersection of CFLs is Context Sensitive Thus $ L_1 \cap L_2 $ belongs to Context Sensitive languages

UGC NET Computer Science PYQ 2024

Arrange the following stages of a Turing Machine (TM) operation in the correct order as they occur during computation.


(A) Writing a symbol on the tape


(B) Moving the tape head left or right


(C) Reading a symbol from the tape


(D) Transitioning to a new state based on the current state and symbol read


(E) Halting and accepting or rejecting the input


Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Typical Turing Machine step:

1 Read symbol
2 Decide next state
3 Write symbol
4 Move tape head
5 Halt condition

Thus order

(C) → (D) → (A) → (B) → (E)

UGC NET Computer Science PYQ 2024

Which of the following statements are TRUE about Privileged Instructions?


(A) It can only be executed by the Operating System kernel and not by user applications.


(B) It is designed to perform operations that can directly affect the hardware or system state such as I/O operations or changing memory management setting.


(C) User applications can execute privileged instructions if they have correct permissions, set by the Operating System.


(D) It is usually executed in user mode to ensure the safety and security of the system.


Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

(A) True
Privileged instructions run in kernel mode

(B) True
Used for hardware control, I/O, memory management

(C) False
User programs cannot execute privileged instructions

(D) False
Executed in kernel mode, not user mode

UGC NET Computer Science PYQ 2024
(A) In IPv4 addressing, a block of address can be define as $x.y.z.t/n$ in which $x,y,z,t$ define one of the address and $n$ define the mask

(B) The first address in the block can be found by setting the rightmost $32-n$ bits to $0$s

(C) Address of class C is used for multicast communication

(D) There are five classes in IPv4 address

(E) Supernetting combine several networks into one large network

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution



UGC NET Computer Science PYQ 2024
In Software configuration management, what is the primary purpose of version control?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Version control tracks code history and changes.

UGC NET Computer Science PYQ 2024
A vector processor with 16 lanes can perform an operation on 1024 elements in which each operation takes 5 clock cycles. How many cycles are needed to complete the operation?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution



UGC NET Computer Science PYQ 2024

A CPU has a 5-stage pipeline with the following stages:

Fetch (F), Decode (D), Execute (E), Memory (M) and Write-back (W).

Each stage takes one clock cycle to complete. Assume there are no pipeline stalls and the pipeline is initially empty.

How many clock cycles are required to complete the execution of 10 instructions?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution



UGC NET Computer Science PYQ 2024
Lower-triangular sparse matrix is one :





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 lower triangular matrix is a matrix in which all the elements above the main (leading) diagonal are zero. Therefore, the non-zero elements can appear only on or below the leading diagonal.

Hence the correct statement is that the non-zero elements lie below the leading diagonal.

UGC NET Computer Science PYQ 2024

Match List – I with List – II.

 List – I (Counter)
 List – II (uses/working)
 (A) N-bit Ring Counter
 (I) Uses universal clock
 (B) Synchronous Counter
 (II) Counts exactly N states
 (C) Asynchronous Counter
 (III) Counts 0 to 9
 (D) Decimal Counter

 (IV) Main clock is applied to first flip-flop only

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

(A) N-bit Ring Counter → Counts exactly N states → (II)

(B) Synchronous Counter → Uses common (universal) clock → (I)

(C) Asynchronous Counter → Main clock applied only to first flip-flop → (IV)

(D) Decimal Counter → Counts from 0 to 9 → (III)

Correct matching:

(A)-(II), (B)-(I), (C)-(IV), (D)-(III)

UGC NET Computer Science PYQ 2024
What will be the order of the following fields in a frame relay ‘frame format’ ?

A. Flag
B. FCS
C. address
D. information

Choose the correct answer from the options given below :





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

The Frame Relay frame format is derived from the HDLC frame structure.
The order of fields is:

Flag → Address → Information → FCS → Flag

Considering only the given fields, the order becomes:

A (Flag) → C (Address) → D (Information) → B (FCS)

UGC NET Computer Science PYQ 2024
Match List – I with List – II.
 List – I

 List – II

 (A) Natural language processing
 (I) A method of training algorithm by rewarding desired behaviour and/or punishing undesired one.

 (B) Reinforcement learning
 (II) System designed to emulate the decision making abilities of a human expert.

 (C) Support vector machine
 (III) A branch of AI focused on understanding and generating human language.

 (D) Expert system

 (IV) A machine learning technique that finds the hyperplane that best separates different classes in a feature space.

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

(A) Natural language processing → Understanding human language → (III)

(B) Reinforcement learning → Reward and punishment learning → (I)

(C) Support vector machine → Hyperplane classification method → (IV)

(D) Expert system → Decision making like human expert → (II)

UGC NET Computer Science PYQ 2024

40 software professionals were interviewed for a job.

25 knew PYTHON, 20 knew JAVA and 7 knew neither language.

How many knew both languages?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Total people = 40
People who know neither = 7

So people who know at least one language:

40 − 7 = 33

Use formula:

n(P ∪ J) = n(P) + n(J) − n(P ∩ J)

33 = 25 + 20 − x

33 = 45 − x

x = 12

UGC NET Computer Science PYQ 2024

How does a relational database ensure data integrity?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Relational databases ensure data integrity using:

• Primary keys
• Foreign keys
• Constraints
• Schema rules

Thus integrity is maintained by enforcing rules defined in the schema.

UGC NET Computer Science PYQ 2024

Consider the following code :

#include<stdio.h>


void f1(char *x, char *y) {

    char *t;

    t = x;

    x = y;

    y = t;

}


void f2(char **x, char **y) {

    char *t;

    t = *x;

    *x = *y;

    *y = t;

}


int main()

{

    char *a = "ONE", *b = "TWO";


    f1(a, b);

    printf("%s %s", a, b);


    f2(&a, &b);

    printf("%s %s", a, b);


    return 0;

}
What will be the output of the above code?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Initial values

a = "ONE"
b = "TWO"

Step 1: f1(a, b)

Function parameters are passed by value.

Inside f1 the pointers swap locally:

x ↔ y

But original variables a and b do not change.

So after f1:

a = ONE
b = TWO

First printf prints:

ONE TWO

Step 2: f2(&a, &b)

Now addresses of pointers are passed.

Inside f2:

t = *x
*x = *y
*y = t

This swaps actual pointers a and b.

After swap:

a = TWO
b = ONE

Second printf prints:

TWO ONE

UGC NET Computer Science PYQ 2024
Read the below passage and answer the questions.

Artificial Neural Networks (ANNs) are computational models inspired by the human brain’s neural networks. They consist of interconnected nodes, or neurons, organized into layers: an input layer, one or more hidden layers and an output layer. Each connection between neurons has a weight that adjusts as learning progresses allowing the network to adapt and improve its performance. ANNs are particularly effective in recognizing patterns making them valuable for tasks such as image and speech recognition, natural language processing and predictive analytics. Learning in ANNs typically involves training algorithms like back propagation, which minimize the error by adjusting the weights. As a subset of machine learning, ANNs have revolutionized the field of Artificial Intelligence by providing solutions to complex problems that traditional algorithms struggle with.

Which of the following is/are the application area(s) of ANN ?

(A) Natural Language Processing
(B) Image Processing
(C) Pattern Recognition
(D) Speech Recognition

Choose the correct answer from the options given below :






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

The passage clearly states that ANNs are useful in:

• Image recognition
• Speech recognition
• Natural language processing
• Pattern recognition

Thus all listed areas are applications of ANN.

UGC NET Computer Science PYQ 2024
Read the below passage and answer the questions.

Artificial Neural Networks (ANNs) are computational models inspired by the human brain’s neural networks. They consist of interconnected nodes, or neurons, organized into layers: an input layer, one or more hidden layers and an output layer. Each connection between neurons has a weight that adjusts as learning progresses allowing the network to adapt and improve its performance. ANNs are particularly effective in recognizing patterns making them valuable for tasks such as image and speech recognition, natural language processing and predictive analytics. Learning in ANNs typically involves training algorithms like back propagation, which minimize the error by adjusting the weights. As a subset of machine learning, ANNs have revolutionized the field of Artificial Intelligence by providing solutions to complex problems that traditional algorithms struggle with.


What is the role of Back Propagation Algorithm ?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

The passage states that back propagation is a training algorithm used in neural networks that minimizes the error by adjusting the weights.

Thus its role is to reduce prediction error during training.

UGC NET Computer Science PYQ 2024
Read the below passage and answer the questions.

Artificial Neural Networks (ANNs) are computational models inspired by the human brain’s neural networks. They consist of interconnected nodes, or neurons, organized into layers: an input layer, one or more hidden layers and an output layer. Each connection between neurons has a weight that adjusts as learning progresses allowing the network to adapt and improve its performance. ANNs are particularly effective in recognizing patterns making them valuable for tasks such as image and speech recognition, natural language processing and predictive analytics. Learning in ANNs typically involves training algorithms like back propagation, which minimize the error by adjusting the weights. As a subset of machine learning, ANNs have revolutionized the field of Artificial Intelligence by providing solutions to complex problems that traditional algorithms struggle with.


Which of the following layers may be more than one in number?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

In an Artificial Neural Network:

• Input layer → usually only one
• Output layer → usually only one
• Hidden layers → can be one or more layers

Thus the layer that may be more than one is hidden layer.

UGC NET Computer Science PYQ 2024
Read the below passage and answer the questions.

Artificial Neural Networks (ANNs) are computational models inspired by the human brain’s neural networks. They consist of interconnected nodes, or neurons, organized into layers: an input layer, one or more hidden layers and an output layer. Each connection between neurons has a weight that adjusts as learning progresses allowing the network to adapt and improve its performance. ANNs are particularly effective in recognizing patterns making them valuable for tasks such as image and speech recognition, natural language processing and predictive analytics. Learning in ANNs typically involves training algorithms like back propagation, which minimize the error by adjusting the weights. As a subset of machine learning, ANNs have revolutionized the field of Artificial Intelligence by providing solutions to complex problems that traditional algorithms struggle with.


Artificial Neural Networks (ANNs) are inspired by:






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

The passage states that ANN models are inspired by the human brain’s neural networks.

UGC NET Computer Science PYQ 2024
Read the below passage and answer the questions.

Artificial Neural Networks (ANNs) are computational models inspired by the human brain’s neural networks. They consist of interconnected nodes, or neurons, organized into layers: an input layer, one or more hidden layers and an output layer. Each connection between neurons has a weight that adjusts as learning progresses allowing the network to adapt and improve its performance. ANNs are particularly effective in recognizing patterns making them valuable for tasks such as image and speech recognition, natural language processing and predictive analytics. Learning in ANNs typically involves training algorithms like back propagation, which minimize the error by adjusting the weights. As a subset of machine learning, ANNs have revolutionized the field of Artificial Intelligence by providing solutions to complex problems that traditional algorithms struggle with.


What is the role of weights in an ANN?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Weights represent the strength of connections between neurons.
During training, weights are adjusted to reduce error and improve performance.

UGC NET Computer Science PYQ 2024
The Banker’s Algorithm is a critical deadlock avoidance method used in operating systems. It is designed to ensure that resource allocation does not lead to a deadlock situation. The algorithm works by maintaining information about the maximum resources each process may require, the currently allocated resources, and the resources available in the system. Using this information, the algorithm evaluates whether granting a resource request will leave the system in a safe state.

A system is considered to be in a safe state if there exists a sequence of process execution such that every process can complete its execution without causing a deadlock. Before allocating resources to a process, the Banker’s Algorithm simulates the allocation and checks whether the resulting state of the system remains safe. If the system remains safe, the request is granted; otherwise, the process must wait.

Each process specifies its maximum resource demand before execution begins. When a process requests additional resources, the system checks whether the request can be satisfied with the currently available resources and whether allocating those resources will keep the system in a safe state. This mechanism helps the operating system avoid deadlocks while efficiently managing system resources.

Which of the following is NOT a requirement for Banker’s algorithm to grant a resource request?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Banker’s Algorithm grants a request only if the following conditions are satisfied:

• The requested resources are available in the system.
• The request does not exceed the maximum claim of the process.
• After allocation, the system remains in a safe state.

However, the algorithm does not require that the process be the only one requesting resources. Multiple processes can request resources simultaneously.

Therefore, the statement that is NOT required is:

The process must be the only one requesting resources.

UGC NET Computer Science PYQ 2024
The Banker’s Algorithm is a critical deadlock avoidance method used in operating systems. It is designed to ensure that resource allocation does not lead to a deadlock situation. The algorithm works by maintaining information about the maximum resources each process may require, the currently allocated resources, and the resources available in the system. Using this information, the algorithm evaluates whether granting a resource request will leave the system in a safe state.

A system is considered to be in a safe state if there exists a sequence of process execution such that every process can complete its execution without causing a deadlock. Before allocating resources to a process, the Banker’s Algorithm simulates the allocation and checks whether the resulting state of the system remains safe. If the system remains safe, the request is granted; otherwise, the process must wait.

Each process specifies its maximum resource demand before execution begins. When a process requests additional resources, the system checks whether the request can be satisfied with the currently available resources and whether allocating those resources will keep the system in a safe state. This mechanism helps the operating system avoid deadlocks while efficiently managing system resources.

What is the primary goal of the Banker’s Algorithm?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

The Banker’s Algorithm is a deadlock avoidance algorithm. Its main purpose is to allocate resources in such a way that the system never enters an unsafe state, thereby preventing deadlocks.

Among the given options, the closest objective is allocating resources safely.

UGC NET Computer Science PYQ 2024
The Banker’s Algorithm is a critical deadlock avoidance method used in operating systems. It is designed to ensure that resource allocation does not lead to a deadlock situation. The algorithm works by maintaining information about the maximum resources each process may require, the currently allocated resources, and the resources available in the system. Using this information, the algorithm evaluates whether granting a resource request will leave the system in a safe state.

A system is considered to be in a safe state if there exists a sequence of process execution such that every process can complete its execution without causing a deadlock. Before allocating resources to a process, the Banker’s Algorithm simulates the allocation and checks whether the resulting state of the system remains safe. If the system remains safe, the request is granted; otherwise, the process must wait.

Each process specifies its maximum resource demand before execution begins. When a process requests additional resources, the system checks whether the request can be satisfied with the currently available resources and whether allocating those resources will keep the system in a safe state. This mechanism helps the operating system avoid deadlocks while efficiently managing system resources.

What information is used to determine if a resource request can be granted?





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Banker’s Algorithm decides resource allocation based on:

• Available resources
• Current allocation of resources
• Maximum demand of processes

From the given options, the relevant information is:

Available resources and current allocation of each process.

UGC NET Computer Science PYQ 2024
The Banker’s Algorithm is a critical deadlock avoidance method used in operating systems. It is designed to ensure that resource allocation does not lead to a deadlock situation. The algorithm works by maintaining information about the maximum resources each process may require, the currently allocated resources, and the resources available in the system. Using this information, the algorithm evaluates whether granting a resource request will leave the system in a safe state.

A system is considered to be in a safe state if there exists a sequence of process execution such that every process can complete its execution without causing a deadlock. Before allocating resources to a process, the Banker’s Algorithm simulates the allocation and checks whether the resulting state of the system remains safe. If the system remains safe, the request is granted; otherwise, the process must wait.

Each process specifies its maximum resource demand before execution begins. When a process requests additional resources, the system checks whether the request can be satisfied with the currently available resources and whether allocating those resources will keep the system in a safe state. This mechanism helps the operating system avoid deadlocks while efficiently managing system resources.

What is the significance of the Banker’s algorithm in terms of resource management?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

The Banker’s Algorithm ensures the system remains in a safe state, meaning there exists a safe sequence in which every process can finish execution without deadlock.

UGC NET Computer Science PYQ 2024
The Banker’s Algorithm is a critical deadlock avoidance method used in operating systems. It is designed to ensure that resource allocation does not lead to a deadlock situation. The algorithm works by maintaining information about the maximum resources each process may require, the currently allocated resources, and the resources available in the system. Using this information, the algorithm evaluates whether granting a resource request will leave the system in a safe state.

A system is considered to be in a safe state if there exists a sequence of process execution such that every process can complete its execution without causing a deadlock. Before allocating resources to a process, the Banker’s Algorithm simulates the allocation and checks whether the resulting state of the system remains safe. If the system remains safe, the request is granted; otherwise, the process must wait.

Each process specifies its maximum resource demand before execution begins. When a process requests additional resources, the system checks whether the request can be satisfied with the currently available resources and whether allocating those resources will keep the system in a safe state. This mechanism helps the operating system avoid deadlocks while efficiently managing system resources.

Which data structure does the Banker’s Algorithm use to maintain the state of available, maximum and allocated resources?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science August 2024 (Paper II) PYQ

Solution

Banker’s Algorithm uses the following structures:

• Available vector
• Max matrix
• Allocation matrix
• Need matrix

UGC NET Computer Science PYQ 2024
Which of the followings are White box Testing ?

A. Path Testing
B. Loop Testing
C. Regression Testing
D. Non functional Testing





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

White-box testing focuses on the internal structure and logic of the program.

• Path Testing checks different execution paths inside the program → White box
• Loop Testing checks loop structures and iterations → White box
• Regression Testing verifies that new changes do not break existing functionality → not white box specifically
• Non-functional testing tests performance, usability, etc. → not white box

Therefore, the correct options are A and B.


UGC NET Computer Science PYQ 2024

The techniques used to handle the phantom problem are

A. Time stamping
B. Index locking
C. Predicate locking
D. Execution indexing






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

The phantom problem occurs in database concurrency control when a transaction re-executes a query and finds new rows inserted by another transaction.

Techniques used to prevent phantom problem:

• Index locking – locks index ranges to prevent insertion of new tuples in the range.
• Predicate locking – locks records satisfying a condition.

Time stamping and execution indexing are not specifically used to solve phantom problem.

Therefore, correct options are B and C.


UGC NET Computer Science PYQ 2024

Which of the following are type of interface in an ATM network ?


A. user-to-user

B. user-to-network

C. network-to-network

D. host-to-network

E. user-to-host






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

In an ATM (Asynchronous Transfer Mode) network, the two standard interfaces are:

• UNI (User-to-Network Interface)
• NNI (Network-to-Network Interface)

Hence the correct options are B and C.


UGC NET Computer Science PYQ 2024

Arrange the following in correct order, so that they can follow a proper run time environment :


A. Programming statement

B. Compilation

C. Memory allocation

D. Type of variable

E. Memory deallocation






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

The correct execution flow in a programming environment is:


Programming statement (A) – Program is written.


Compilation (B) – Code is compiled to machine/intermediate code.


Type of variable (D) – Variables are recognized with their types.


Memory allocation (C) – Memory is allocated during execution.


Memory deallocation (E) – Memory is released after execution.


Thus the correct order is:


UGC NET Computer Science PYQ 2024

Match List-I with List-II.

$f(n) = a f(n/b) + g(n)$ is a divide-and-conquer recurrence relation for the Listed-I algorithms, match their recurrence in Listed-II.

 List-I (Algorithms)

List-II (Recurrence Relation)

 
 A. Binary Search
 I. $f(n) = 7f(n/2) + 15n^2/4$
 B. Find maximum and minimum of a sequence
 II. $f(n) = 2f(n/2) + n$
 C. Merge Sort
 III. $f(n) = 2f(n/2) + 2$
 D. Fast Matrix Multiplication

 IV. $f(n) = f(n/2) + 2$






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

• Binary Search halves the input and performs constant work

$f(n) = f(n/2) + O(1)$ → IV


• Find maximum and minimum (divide and conquer)

Two recursive calls with constant comparisons

$f(n) = 2f(n/2) + 2$ → III


• Merge Sort divides into two parts and merges in linear time

$f(n) = 2f(n/2) + n$ → II


• Fast Matrix Multiplication (Strassen)

$f(n) = 7f(n/2) + O(n^2)$ → I


Thus matching:


A → IV

B → III

C → II

D → I


UGC NET Computer Science PYQ 2024

Match List-I with List-II :

 List-I
 List-II
 A. Channelization protocol
 I. ALOHA
 B. Bit-oriented protocol
 II. TDMA
 C. Random-access protocol
 III. Reservation
 D. Controlled-access protocol

 IV. HDLC







Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Channelization protocol divides the channel into multiple portions → example TDMA

A → II


• Bit-oriented protocol works with frames and bits → HDLC

B → IV


• Random-access protocol allows stations to transmit randomly → ALOHA

C → I


• Controlled-access protocol controls which station transmits → Reservation

D → III


Thus matching:


A → II

B → IV

C → I

D → III


UGC NET Computer Science PYQ 2024

An IPv4 packet has arrived with the first few hexadecimal digits as shown below. How many hops can this packet travel before being dropped? The data belongs to what upper-layer protocol?

$(5400001800100110040601\ldots)_{16}$






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Convert header bytes of IPv4 packet:


Hex sequence (grouped in bytes):


54 00 00 18 00 10 01 10 04 06 01 ...


Important fields:


• TTL (Time To Live) field = 04 (in hex)

TTL = 4 → packet can travel 4 hops before being discarded.


• Protocol field = 06 (in hex)

Protocol number 6 corresponds to TCP.


Therefore:


TTL = 4 hops

Protocol = TCP


UGC NET Computer Science PYQ 2024

Which of the following control problem does not exist, when processes unaware of each other during interaction?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

When processes are unaware of each other, they do not coordinate or compete for shared resources in a way that forms circular waiting.


• Mutual exclusion → may still be required for shared resources

• Starvation → possible if scheduling is unfair

• Deadlock → possible if processes wait on each other


Data coherence problems occur when processes share and modify common data.

If processes are unaware and do not share data directly, this issue does not arise.


UGC NET Computer Science PYQ 2024

Which of the following is the Markup language?


A. HTML

B. XML

C. DHTML

D. LML

E. PML






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

HTML (HyperText Markup Language) → Markup language

• XML (Extensible Markup Language) → Markup language

• DHTML (Dynamic HTML) → Extension of HTML used for dynamic webpages


LML and PML are not standard markup languages


UGC NET Computer Science PYQ 2024

Arrange the following prefix expressions based on their values in increasing order:


A. + - * 2 / 8 4 3 2

B. ↑ - * 3 3 * 4 2 5

C. + - ↑ 3 2 ↑ 2 3 / 6 - 4 2

D. * + 3 + 3 ↑ 3 + 1 1 3






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Evaluate each prefix expression.

A:

      • 2 / 8 4 3 2
        = + - * 2 2 3 2
        = + - 4 3 2
        = + 1 2
        = 3

B:
↑ - * 3 3 * 4 2 5
= ↑ - 9 8 5
= ↑ 1 5
= 1

C:

    • ↑ 3 2 ↑ 2 3 / 6 - 4 2
      = + - 9 8 / 6 2
      = + 1 3
      = 4

D:

    • 3 + 3 ↑ 3 + 1 1 3
      = * + 3 + 3 9 3
      = * + 3 12 3
      = * 15 3
      = 45

Values:

A = 3
B = 1
C = 4
D = 45

Increasing order:

B < A < C < D



UGC NET Computer Science PYQ 2024

Match List-I with List-II:

 List-I (Line coding scheme)

 List-II (Bandwidth – average)

 A. NRZ-L
 I. B = N/4
 B. 2B1Q
 II. B = N/8
 C. 4D-PAM5
 III. B = N/3
 D. MLT-3

 IV. B = N/2






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

NRZ-L → bandwidth = N/2 → IV

2B1Q → bandwidth = N/4 → I

4D-PAM5 → bandwidth = N/8 → II

MLT-3 → bandwidth ≈ N/3 → III


Thus matching:


A → IV

B → I

C → II

D → III


UGC NET Computer Science PYQ 2024

The instructions

ADD R₁, A, B
ADD R₂, C, D
MUL X, R₁, R₂

evaluate the expression $X = (A + B)(C + D)$ in which of the following?







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 3-address instruction has the form:


Result = Operand1 op Operand2


Example:


ADD R₁, A, B → R₁ = A + B

ADD R₂, C, D → R₂ = C + D

MUL X, R₁, R₂ → X = R₁ × R₂


Each instruction uses three addresses (two operands and one result).


UGC NET Computer Science PYQ 2024

For the fuzzy sets

$A = {(x_1,0.3), (x_2,0.7), (x_3,0.4)}$ and

$B = {(x_1,0.5), (x_2,0.2), (x_3,0.5)}$, the $A \cap B$ would be:






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

For fuzzy sets, the intersection operation is defined as:

$\mu_{A \cap B}(x) = \min(\mu_A(x), \mu_B(x))$

Now compute for each element:

$x_1$ : $\min(0.3, 0.5) = 0.3$
$x_2$ : $\min(0.7, 0.2) = 0.2$
$x_3$ : $\min(0.4, 0.5) = 0.4$

Thus,

$A \cap B = {(x_1,0.3),(x_2,0.2),(x_3,0.4)}$


UGC NET Computer Science PYQ 2024

Which of the following genetic algorithm operation is computationally most expensive?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

In Genetic Algorithms, the most computationally expensive part is usually reproduction, which involves:


• crossover

• mutation

• generating new offspring

• evaluating fitness for the next generation


These steps are repeated many times and require significant computation.


UGC NET Computer Science PYQ 2024

Multiple Inheritance is permitted directly in:


A. C++

B. Java

C. Python

D. VB.NET

E. BASIC






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

C++ → supports multiple inheritance directly ✔

• Java → does not support multiple inheritance with classes (only interfaces) ✘

• Python → supports multiple inheritance ✔

• VB.NET → supports multiple inheritance through interfaces only ✘

• BASIC → does not support multiple inheritance ✘


Thus the languages that directly support multiple inheritance are:


C++ and Python


UGC NET Computer Science PYQ 2024

The I/O methods in which memory addresses and I/O addresses are distinct is called:


A. Isolated I/O

B. Memory-Mapped I/O

C. Strobe Control

D. Handshaking

E. Interrupt






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Isolated I/O (Port-mapped I/O) → Memory and I/O address spaces are separate.

• Memory-Mapped I/O → I/O devices share the same address space as memory.


The question asks where memory and I/O addresses are distinct, which corresponds to Isolated I/O.

Among the given combinations, the most appropriate option containing this concept is A.


UGC NET Computer Science PYQ 2024

Which of the following is the function of the semantic analysis phase of compilation process?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Compiler phases:


Lexical analysis → Tokenization


Syntax analysis → Parsing


Semantic analysis → Type checking, type conversion, scope checking


Optimization → Loop optimization, data flow analysis


Thus type conversion belongs to semantic analysis.


UGC NET Computer Science PYQ 2024

IP is responsible for ______ communication while TCP is responsible for ______ communication.






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

In the TCP/IP model:


• IP (Internet Protocol) provides host-to-host communication between devices.

• TCP (Transmission Control Protocol) provides process-to-process communication using port numbers.


UGC NET Computer Science PYQ 2024

The Boolean expression for the following would be:


$F(A,B,C) = \Sigma(0,2,6)$

$d(A,B,C) = \Sigma(1,3,5)$






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Minterms:


$0 = 000$

$2 = 010$

$6 = 110$


Don't care terms:


$1 = 001$

$3 = 011$

$5 = 101$


Using K-map simplification:


Group $(0,2)$ → $A'C'$

Group $(2,6)$ → $BC'$


Thus,


$F = A'C' + BC'$


Factorizing:


$F = C'(A' + B)$


Which simplifies to:


$F = A' + BC'$


UGC NET Computer Science PYQ 2024

A computer system with cache access time of 100 ns, a main memory access time of 1100 ns, and a hit ratio of 0.9. The average access time would be:






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Average Memory Access Time:


$AMAT = Hit\ Time + Miss\ Rate \times Miss\ Penalty$


Hit time = 100 ns

Miss rate = $1 - 0.9 = 0.1$


Miss penalty = $1100 - 100 = 1000$


So,


$AMAT = 100 + 0.1 \times 1000$


$AMAT = 100 + 100 = 200\ ns$


UGC NET Computer Science PYQ 2024

Services provided by point-to-point protocol (PPP):


A. frame format

B. establishment of the link

C. flow control

D. sequence numbering

E. authentication






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

PPP provides:


• Frame format

• Link establishment (LCP)

• Authentication (PAP, CHAP)


PPP does not provide flow control or sequence numbering.


Thus:


A → Yes

B → Yes

E → Yes


UGC NET Computer Science PYQ 2024

In Windows scheduling, which of the following option is correct?






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Windows uses 32 priority levels:


• 0–15 → Non-real-time (variable priorities)

• 16–31 → Real-time priorities


Thus number of non-real-time priorities = 16.


UGC NET Computer Science PYQ 2024

Which of the following is/are true in case of tree locking?


A. It ensures shorter waiting times.

B. It ensures freedom from deadlock.

C. Transaction can lock data items earlier.

D. It does not ensure greater amount of concurrency.






Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Tree locking protocol (graph-based protocol) rules:


• The first lock may be on any node.

• A transaction may lock a node only if it already holds a lock on the parent.

• Nodes may be unlocked anytime but cannot be relocked.


Properties:


• Deadlock cannot occur because locking follows a hierarchical order.

• Transactions can lock data items earlier since unlocking can happen anytime.


Thus:


B → True

C → True


UGC NET Computer Science PYQ 2024
A least integer $n$ such that $f(x)$ is $O(x^n)$ for each of the following functions. Arrange according to the value of $n$ in increasing order.





Go to Discussion

UGC NET Computer Science UGC NET PYQ UGC NET Computer Science UGC NET Computer Science June 2024 (Paper II) PYQ

Solution

Find dominant growth for each.


A:

$3x^3+(\log x)^4$

Dominant term = $x^3$


$n=3$


B:

$(x^5+x^2+1)/(x^3+1) \approx x^2$


$n=2$


C:

$(x^3+x^2+1)/(x^2+1) \approx x$


$n=1$


D:

$(x^2+5\log x)/(x^2+1) \approx 1$


$n=0$


Thus:


D → $O(1)$

C → $O(x)$

B → $O(x^2)$

A → $O(x^3)$


Increasing order:


D, C, B, A


UGC NET Computer Science PYQ 2024
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.





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}$



UGC NET Computer Science


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

UGC NET Computer Science


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Limited Seats
× Aspire MCA Promotion

Game Changer NIMCET Test Series 2026

Boost your preparation with mock tests, analysis and rank-focused practice.

JOIN NOW
Ask Your Question or Put Your Review.

loading...