>
Computer Science & Information Technology
List of top Computer Science & Information Technology Questions on Data Structures
Which one of the following statements is NOT correct about the B$^+$ tree data structure used for creating an index of a relational database table?
GATE CS - 2026
GATE CS
Computer Science & Information Technology
Data Structures
What is the value of the postfix expression: $6\ 12\ 2\ 4\ +\ /\ *\ ?$
OJEE - 2025
OJEE
Computer Science & Information Technology
Data Structures
Consider the following C function foo(int n). How many times does foo(2) get called on making the call foo(5)?
C Function:
float foo(int n){ if(n <= 2) return 1; else return (2*foo(n-1) + 3*foo(n-2)); }
OJEE - 2025
OJEE
Computer Science & Information Technology
Data Structures
Suppose you are given pointers to the first and the last nodes of a singly linked list, which one of the following operations would require traversal of the linked list?
OJEE - 2025
OJEE
Computer Science & Information Technology
Data Structures
What is the time complexity of the Bellman-Ford single-source shortest path algorithm on a completely connected weighted graph of $n$ vertices?
OJEE - 2025
OJEE
Computer Science & Information Technology
Data Structures
How many null links does an arbitrary binary tree with $n$ nodes have?
OJEE - 2025
OJEE
Computer Science & Information Technology
Data Structures
Which one of the following recurrence relations best represents the time complexity of the binary search algorithm running on an ordered array of $n$ elements?
OJEE - 2025
OJEE
Computer Science & Information Technology
Data Structures
The time complexity to compute the 15\(^\text{th}\) Fibonacci number using dynamic programming is _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
One way to build a heap is to start at the end of the array (the leaves) and push each new value up to the root. Its time complexity is _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
If the recursive call keeps calculating the same things over and over again, we can use _______ which stores partial results already calculated and to be used again.
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The _______ process updates the costs of all the vertices \(V\), connected to a vertex \(U\), if we could improve the best estimate of the shortest path to \(V\) by including \((U,V)\) in the path to \(V\).
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
Best case complexity of insertion sorting is _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
A threaded binary tree is a binary tree in which every node that does not have right child has a thread to its _______.
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
Which notation represents the tightest upper bound of an algorithm’s running time?
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The minimum possible time complexity to sort \(n\) integers in the range [1, \(n^2\)] is _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The greedy approach is optimal for _______ .
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
In a max-heap, the largest element is always located at the _______.
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The recurrence T(n) = 2T(n/2) + n has a solution of _______.
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
What is the time complexity to insert an element at the beginning of a dynamic array?
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The inorder traversal of a BST gives elements in _______.
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
If one wants to add and delete elements quickly without reshuffling the rest, then which data structure suits the best?
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
The height of a binary tree with 31 nodes (assuming no single-child nodes) is _______.
AP PGECET - 2025
AP PGECET
Computer Science & Information Technology
Data Structures
Which one of the following statements is true?
AP PGECET - 2024
AP PGECET
Computer Science & Information Technology
Data Structures
How much memory is required to store the elements of the array defined as float items[4][5][6];
AP PGECET - 2024
AP PGECET
Computer Science & Information Technology
Data Structures
A one-dimensional array has n elements stored from 0th position to (n-1)th position. How many elements need to be moved to insert an element at pth position of the array?
AP PGECET - 2024
AP PGECET
Computer Science & Information Technology
Data Structures
Prev
1
2
Next