BPSC Tre 4.0 DSA Practice Set
Que: (1). In a balanced binary tree, the height of two sub-trees of every node can not differ by more than
Que: (2). Which of the following is also known as Rope data structure?
Que: (3). Which of the following is the most widely used external memory data structure?
Que: (4). Which algorithm is used in the top tree data structure?
Que: (5). What will be the output of the following program?
#include <stdio.h>
#include <string.h>
int main()
{
char str[] = "san foundry";
int len = strlen(str);
int i;
for(i = 0; i < len; i++)
push(str[i]); // pushes each character into stack
for(i = 0; i < len; i++)
printf("%c", pop()); // pops and prints from stack
}
Que: (6). Which of the following data structures can be used for parentheses matching?
Que: (7). The data structure required to check whether an expression contains a balanced parenthesis is?
Que: (8). Which of the following application makes use of a circular linked list?
Que: (9). Which of the following is not the type of queue?
Que: (10). Which of the following is not the application of stack?
Que: (11). What data structure would you mostly likely see in non-recursive implementation of a recursive algorithm?
Que: (12). Which data structure is based on the Last In First Out (LIFO) principle?
Que: (13). The data structure required for Breadth First Traversal on a graph is?
Que: (14). Which data structure is used for implementing recursion
Que: (15). The height of n elements 2-3 tree is ______
Que: (16). What is the need for a circular queue?
Que: (17). How many distinct binary search trees can be created out of 4 distinct keys?
Que: (18). Which data structure is needed to convert infix notation to postfix notation?
Que: (19). What is an AVL tree?
Que: (20). In a binary search tree, which subtree of a node contains elements that are greater than the node’s value?
Que: (21). The result evaluating the postfix expression 10 5 + 60 6/ * 8-
Que: (22). What is a data structure?
Que: (23). What is a bit array?
Que: (24). Which of the following data structures stores elements in a non-linear relationship?
Que: (25). Which of the following data structure can provide efficient searching of the elements?
Which of the following data structure can provide efficient searching of the elements?
(d) treap
(b) 2-3 tree
(c) unordered lists
(a) binary search tree