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

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

The longest common subsequence of $\{1,2,3,2,4,1,2\}$ and $\{2,4,3,1,2,1\}$ is

1
2
3
4

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

The elements $42,25,30,40,22,35,26$ are inserted one by one in the given order into a max-heap. The resultant max-heap is stored in an array implementation as:


1
2
3
4

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

List I List II
A. Circular Queue III. Dijkstra algorithm
B. Priority Queue II. CPU Scheduling
C. Double Ended Queue I. Print Queue
D. Simple Queue IV. Palindrome checking

Choose the correct answer from the options given below:


1
2
3
4

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

The following multithreaded algorithm computes transpose of a matrix in parallel:

$p\ Trans(X,Y,N)$

if $N=1$

then $Y[1,1]\leftarrow X[1,1]$

else partition $X$ into four $(N/2)\times(N/2)$ submatrices $X_{11},X_{12},X_{21},X_{22}$

partition $Y$ into four $(N/2)\times(N/2)$ submatrices $Y_{11},Y_{12},Y_{21},Y_{22}$

spawn $p\ Trans(X_{11},Y_{11},N/2)$

spawn $p\ Trans(X_{12},Y_{12},N/2)$

spawn $p\ Trans(X_{21},Y_{21},N/2)$

spawn $p\ Trans(X_{22},Y_{22},N/2)$

What is the asymptotic parallelism of the algorithm?


1
2
3
4

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

Consider two sequences $X$ and $Y$:

$X=\langle 0,1,2,1,3,0,1\rangle$

$Y=\langle 1,3,2,0,1,0\rangle$

The length of longest common subsequence between $X$ and $Y$ is:


1
2
3
4

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

Consider the following statements:

(a) The running time of dynamic programming algorithm is always $\theta(\rho)$ where $\rho$ is number of subproblems.

(b) When a recurrence relation has cyclic dependency, it is impossible to use that recurrence relation $($unmodified$)$ in a correct dynamic program.

(c) For a dynamic programming algorithm, computing all values in a bottom-up fashion is asymptotically faster than using recursion and memorization.

(d) If a problem $X$ can be reduced to a known NP-hard problem, then $X$ must be NP-hard.

Which of the statement(s) is/are true?


1
2
3
4

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

______ is a Self Balancing binary search tree, where the path from the root to the furthest leaf is no more than twice as long as the path from the root to nearest leaf.

1
2
3
4

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

Arrange the following search and sort algorithms in ascending order of their worst-case complexities.

A. Merge sort
B. Linear Search
C. Bubble Sort
D. Binary Search

Choose the correct answer from the options given below:

1
2
3
4

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

Consider the following infix expression: Q = ((A + B) * D) ↑ (E − F) The equivalent postfix expression of Q is:

1
2
3
4

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

The postfix form of the expression $(A+B)*(C*D-E)*F/G$ is ______

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