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

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

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

Which of the following algorithm design approach is used in Quick sort algorithm?

1
2
3
4

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

Consider the hash table of size $11$ that uses open addressing with linear probing. Let $h(k)=k\mod 11$ be the hash function. A sequence of records with keys $43,36,92,87,11,47,11,13,14$ is inserted into an initially empty hash table, the bins of which are indexed from $0$ to $10$. What is the index of the bin into which the last record is inserted?

1
2
3
4

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

Match List-I with List-II:
List-I List-II
(a) Prim's algorithm (i) $O(V^3\log V)$
(b) Dijkstra's algorithm (ii) $O(VE^2)$
(c) Faster all-pairs shortest path (iii) $O(E\log V)$
(d) Edmonds-Karp algorithm (iv) $O(V^2)$
Choose the correct option from those given below:

1
2
3
4

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

Consider the traversal of a tree

Preorder $\to ABCEIFJDGHKL$

Inorder $\to EICFJBGDKHLA$

Which of the following is correct post order traversal?

1
2
3
4

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

There are many sorting algorithms based on comparison. The running time of heapsort algorithm is $O(n\lg n)$. Like $P$, but unlike $Q$, heapsort sorts in place where $(P,Q)$ is equal to:

1
2
3
4

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

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$

1
2
3
4

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

How many rotations are required during the construction of an AVL tree if the following elements are to be added in the given sequence?

$35,50,40,25,30,60,78,20,28$

1
2
3
4

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

Which of the following is best running time to sort $n$ integers in the range $0$ to $n^2-1$?

1
2
3
4

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

Which of the following is application of depth-first search?


1
2
3
4

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

Consider double hashing of the form

$h(k,i)=(h_1(k)+ih_2(k))\ \text{mod}\ m$

where

$h_1(k)=k\ \text{mod}\ m$

$h_2(k)=1+(k\ \text{mod}\ n)$

where $n=m-1$ and $m=701$.

For $k=123456$, what is the difference between first and second probes in terms of slots?


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...