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

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

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.


1
2
3
4

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

Consider the following statements about heap sort algorithm:

A. The MAX-HEAPIFY procedure which runs in $O(\lg n)$ time, is the key to maintaining the max heap property

B. The BUILD-MAX-HEAP procedure, which runs in $O(\lg n)$ time, produces max-heap from an unordered input array

C. The MAX-HEAP-INSERT, which runs in $O(\lg n)$ time, implements the insertion operation

D. The HEAP-INCREASE-KEY procedure runs in $O(n \lg n)$ time, to set the key of new node of its correct value

Choose the correct answer from the options given below:

1
2
3
4

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

Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason R.

Assertion A: The AVL trees are more balanced as compared to Red Black trees, but they may cause more rotations during insertion and deletion.

Reason R: A Red Black tree with n nodes has height that is greater than $2\log_2(n+1)$ and the AVL tree with n nodes has height less than $\log_\phi(\sqrt{5}(n+2))-2$ where $\phi$ is golden ratio.

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

1
2
3
4

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

Consider the undirected graph below.



Using Prim's algorithm to construct a minimum spanning tree starting with node $a$, which one of the following sequences of edges represents a possible order in which the edges would be added to construct the minimum spanning tree?

1
2
3
4

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

Let $G$ be a simple undirected graph, $T_D$ be a DFS tree on $G$, and $T_B$ be the BFS tree on $G$.

Consider the following statements.

Statement I: No edge of $G$ is a cross with respect to $T_D$.

Statement II: For every edge $(u,v)$ of $G$, if $u$ is at depth $i$ and $v$ is at depth $j$ in $T_B$, then $|i-j|=1$.

In the light of the above statements, choose the correct answer from the options given below:

1
2
3
4

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

The weight of minimum spanning tree in graph $G$, calculated using Kruskal's algorithm is:

1
2
3
4

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

Assume that $f(n)$ and $g(n)$ are asymptotically positive. Which of the following is correct?

1
2
3
4

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

The solution of the recurrence relation $T(n)=3T\left(\frac{n}{4}\right)+n\log n$ is

1
2
3
4

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

The number of nodes of height $h$ in any $n$-element heap is atmost:

1
2
3
4

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

Consider a B-tree of height $h$ minimum degree $t\ge 2$ that contains any $n$-key, where $n\ge 1$. Which of the following is correct?

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