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

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

Consider the following algorithms and their running times:
List IList II
(A) Breadth First Search(I) $\theta(V+E)$
(B) Rabin-Karp Algorithm(II) $O(V+E)$
(C) Depth-First Search(III) $\theta((n-m+1)m)$
(D) Heap sort (worst case)(IV) $O(n^2)$
(E) Quick sort (worst case)(V) $O(n\log n)$
Which one of the following is correct?

1
2
3
4

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

When using Dijkstra's algorithm to find shortest path in a graph, which of the following statement is not true?

1
2
3
4

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

The time complexity to multiply two polynomials of degree $n$ using Fast Fourier transform method is:

1
2
3
4

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

Consider the following statements of approximation algorithm:

Statement I: Vertex-cover is a polynomial time 2-approximation algorithm.
Statement II: TSP-tour is a polynomial time 3-approximation algorithm for travelling salesman problem with the triangle inequality.
Which of the following is correct?

1
2
3
4

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

Which of the following trees are height balanced?
  • A. Binary Search Tree
  • B. AVL Tree
  • C. Red-Black Tree
  • D. B-Tree

Choose the correct answer from the options below:

  1. A and D only
  2. A, B and D only
  3. C and D only
  4. B and C only

1
2
3
4

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

When developing a dynamic programming algorithm, the sequence of steps followed is:

  • A. Construct an optimal solution from computed information.
  • B. Recursively define the value of an optimal solution.
  • C. Characterize the structure of an optimal solution.
  • D. Compute the value of an optimal solution, typically in a bottom-up fashion.

Choose the correct answer from the options given below:

  1. B, C, A, D
  2. B, A, C, D
  3. C, B, A, D
  4. C, B, D, A

1
2
3
4

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

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 :


1
2
3
4

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

In the context of a Hamiltonian problem, which of the following are correct?

A. Hamiltonian cycle problem is NP-Complete

B. If $G$ is an undirected Bipartite graph with an odd number of vertices, then $G$ is Hamiltonian.

C. Hamiltonian path problem cannot be solved in polynomial time on directed acyclic graph

D. If $G$ is a connected undirected graph with at least three vertices and $G^3$ is the graph obtained by connecting all pairs of vertices that are connected by a path in $G$ of length at most $3$.

E. If any NP complete problem is polynomial time solvable the $(P=NP)$.

Choose the most appropriate answer from the options given below:


1
2
3
4

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

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 :


1
2
3
4

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

The correct sequence of constructing Huffman tree is

A. Repeat until root formed
B. Create leaf nodes
C. Build priority queue
D. Combine lowest frequency nodes

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