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

UGC NET Computer Science Data Structures Previous Year Questions (PYQs) – Page 1 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: 2023📚 Computer🏷 Data Structures

Consider a hash table of size seven with starting index zero and a hash function $(6x + 3) \mod 4$. Assuming the hash table is initially empty. Which of the following is the content of the table when the sequence 1, 3, 8, 10, 5 is inserted into the table using closed hashing? Here “_______” denotes an empty location in the table.

1
2
3
4

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

Given the graph below one of the following edges cannot be added in that order to find a minimum spanning tree algorithm.


I. $a-b$
II. $d-f$
III. $b-f$
IV. $d-c$
V. $d-e$

Choose the correct answer from the options given below:


1
2
3
4

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

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

1
2
3
4

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

A three dimensional array in C++ is declared as int A [a] [b] [c]. Consider that array elements are stored in row major order and indexing begin from 0. Here the address of an item at the location A [r] [s] [t] computed in terms of word length w of an integer is

1
2
3
4

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

The running time of an algorithm is $O(g(n))$ if and only if:

(A) its worst-case running time is $O(g(n))$ and its best-case running time is $\Omega(g(n))$.

(B) its worst-case running time is $\Omega(g(n))$ and its best-case running time is $O(g(n))$.

(C) $O(g(n))=\Omega(g(n))$.

(D) $o(g(n))\cap \omega(g(n))$ is non-empty.

Choose the correct answer from the options given below:

1
2
3
4

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

Suppose a circular queue of capacity $(n - 1)$ elements is implemented with an array of $n$ elements. Assume that the insertion and deletion operations are carried out using REAR and FRONT as array index variable respectively. Initially, REAR = FRONT = 0. The conditions to detect queue empty and queue full are

1
2
3
4

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

Given below are two statements:

Let $f(n)$ and $g(n)$ be asymptotically positive functions. The following conjectures are given.

Statement I: $f(n) \ge 1$ and $f(n)=O(g(n)) \Rightarrow g(n)=\Omega(f(n))$

Statement II: $f(n)=O(g(n)) \Rightarrow \lg(f(n))=O(\lg(g(n)))$ where $\lg(g(n)) \ge 1$ for all sufficiently large $n$.

In the light of the above statements, choose the most appropriate answer from the options given below.

1
2
3
4

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

Maintaining a graph in memory by means of its adjacency matrix is known as

1
2
3
4

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

Given below are two statements:

Statement I: If f and g are two functions and f = O(g) but g ≠ o(f), we say that the growth rate of g is smaller than that of f.

Statement II: The class of all decision problems decided by a TM in exponential time, that is O(2^k), k being a constant.

In the light of the above statements, choose the most appropriate answer from the options given below.

1
2
3
4

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

Match List I with List II.
List I List II
(A) Topological sort of DAG (I) $O(V+E)$
(B) Kruskal's MST algorithm (II) $O(VE)$
(C) Bellman-Ford's single-source shortest path algorithm (III) $\theta(V+E)$
(D) Floyd-Warshall's all pair shortest path algorithm (IV) $\theta(V^3)$
Choose the correct answer from the options given below:

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