UGC NET Computer Science Data Structures Previous Year Questions (PYQs) – Page 7 of 9

UGC NET Computer Science Data Structures Previous Year Questions (PYQs) – Page 7 of 9

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations
Reset
Showing 83 questions
logo
🎓 UGC NET Computer Science📅 Year: 2021📚 Computer🏷 Data Structures

A double-ended queue (deque) supports adding and removing items from both ends of the queue. The operations supported by deque are AddFront, AddRear, RemoveFront and RemoveRear. You are given only stacks to implement this data structure. You can implement only push and pop operations. What is the time complexity of performing AddFront() and AddRear() assuming $m$ is the size of the stack and $n$ is the number of elements?

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2024📚 Computer🏷 Data Structures

Lower-triangular sparse matrix is one :

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2025📚 Computer🏷 Data Structures

Match List I with List II
List I (Hashing Collision Handling Method)List II (Strategy)
A. ChainingI. Check next slot
B. Linear ProbingII. Use second hash function
C. Quadratic ProbingIII. Linked list at index
D. Double HashingIV. Skip slots using quadratic step

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2021📚 Computer🏷 Data Structures

Consider the following graph.


Among the following sequences

I. $a\ b\ e\ g\ h\ f$

II. $a\ b\ f\ e\ h\ g$

III. $a\ b\ f\ h\ g\ e$

IV. $a\ f\ g\ h\ b\ e$

Which are depth first traversals of the above graph?

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2021📚 Computer🏷 Data Structures

 Which of the given options provides the increasing order of asymptotic complexity of functions $f_1,\ f_2,\ f_3$ and $f_4$?

A. $f_1(n)=2^n$

B. $f_2(n)=n^{3/2}$

C. $f_3(n)=n\log n$

D. $f_4(n)=n^{\log n}$

Choose the correct answer from the options given below.

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2021📚 Computer🏷 Data Structures

A hash function $h$ defined as $h(key)=key\ mod\ 7$, with linear probing, is used to insert the keys $44,45,79,55,91,18,63$ into a table indexed from $0$ to $6$. What will be the location of key $18$?

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2021📚 Computer🏷 Data Structures

In the following table, the left column contains the names of standard graph algorithms and the right column contains the time complexities of the algorithms. Here, $n$ and $m$ are number of vertices and edges, respectively. Match each algorithm with its time complexity.
List IList II
A. Bellman-Ford algorithmI. $O(m\log n)$
B. Kruskal's algorithmII. $O(n^3)$
C. Floyd-Warshall algorithmIII. $O(n*m)$
D. Topological sortingIV. $O(n+m)$
Choose the correct answer from the options given below:

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2025📚 Computer🏷 Data Structures

Which of the following algorithms use the Greedy strategy?
A. Dijkstra’s algorithm
B. Kruskal’s algorithm
C. Huffman coding
D. Bellman-Ford algorithm

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Data Structures

How many different binary trees are possible with $n$ nodes?

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Data Structures

Let $n$ denote a positive integer. Suppose a function $F$ is defined as

$f(n)=
\begin{cases}
0, & n=1 \
f\left(\left\lfloor \frac{n}{2} \right\rfloor\right)+1, & n>1
\end{cases}$

What is $f(25)$? and what does this function find?


1
2
3
4

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

Ask Your Question or Put Your Review.

loading...