BPSC Tre 4.0 DSA Practice Set

Que: (1). Which of the following is not the type of queue?

Asked in BPSC TRE 3.0
A.
B.
C.
D.
Open question page

Que: (2). Which of the following application makes use of a circular linked list?

Asked in BPSC TRE 3.0
A.
C.
B.
D.
Open question page

Que: (3). The data structure required for Breadth First Traversal on a graph is?

Asked in BPSC TRE 3.0
C.
A.
B.
D.
Open question page

Que: (4). Which algorithm is used in the top tree data structure?

Asked in BPSC TRE 3.0
C.
A.
B.
D.
Open question page

Que: (5). What is the need for a circular queue?

Asked in BPSC TRE 3.0
A.
C.
B.
D.
Open question page

Que: (6). Which of the following points is/are not true about Linked List data structure when it is compared with an array?

Asked in BPSC TRE 3.0
B.
A.
C.
D.
Open question page

Que: (7). What is an AVL tree?

Asked in BPSC TRE 3.0
A.
B.
C.
D.
Open question page

Que: (8). What is a data structure?

Asked in BPSC TRE 3.0
B.
C.
A.
D.
Open question page

Que: (9). What will be the output of the following program?

Asked in BPSC TRE 3.0
                            #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
}
                        
B.
C.
A.
D.
Open question page

Que: (10). The prefix form of A-B/ (C*D^E) is?

Asked in BPSC TRE 3.0
A.
C.
B.
D.
Open question page

Que: (11). Which of the following is not the application of stack?

Asked in BPSC TRE 3.0
C.
A.
B.
D.
Open question page

Que: (12). What data structure would you mostly likely see in non-recursive implementation of a recursive algorithm?

Asked in BPSC TRE 3.0
B.
A.
C.
D.
Open question page

Que: (13). What is a bit array?

Asked in BPSC TRE 3.0
B.
C.
A.
D.
Open question page

Que: (14). Which of the following data structures can be used for parentheses matching?

Asked in BPSC TRE 3.0
B.
C.
A.
D.
Open question page

Que: (15). What are the disadvantages of arrays?

Asked in BPSC TRE 3.0
A.
C.
B.
D.
Open question page

Que: (16). The data structure required to check whether an expression contains a balanced parenthesis is?

Asked in BPSC TRE 3.0
B.
C.
A.
D.
Open question page

Que: (17). Which of the following is the most widely used external memory data structure?

Asked in BPSC TRE 3.0
B.
A.
C.
D.
Open question page

Que: (18). Which of the following statement(s) about stack data structure is/are NOT correct?

Asked in BPSC TRE 3.0
C.
B.
A.
D.
Open question page

Que: (19). Which of the following is also known as Rope data structure?

Asked in BPSC TRE 3.0
A.
B.
C.
D.
Open question page

Que: (20). Which of the following data structure can provide efficient searching of the elements?

Asked in BPSC TRE 3.0
                            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
                        
A.
B.
C.
D.
Open question page

Que: (21). Which of the following tree data structures is not a balanced binary tree?

Asked in BPSC TRE 3.0
C.
B.
A.
D.
Open question page

Que: (22). Which data structure is used for implementing recursion

Asked in BPSC TRE 3.0
C.
B.
A.
D.
Open question page

Que: (23). Which data structure is based on the Last In First Out (LIFO) principle?

Asked in BPSC TRE 3.0
C.
B.
A.
D.
Open question page

Que: (24). Which data structure is needed to convert infix notation to postfix notation?

Asked in BPSC TRE 3.0
A.
B.
C.
D.
Open question page

Que: (25). The height of n elements 2-3 tree is ______

Asked in BPSC TRE 3.0
B.
C.
A.
D.
Open question page

Que: (26). Which of the following data structures stores elements in a non-linear relationship?

Asked in BPSC TRE 3.0
A.
B.
C.
D.
E.
Open question page

Que: (27). Which data structure is used for efficient searching, insertion, and deletion of elements?

Asked in BPSC TRE 3.0
B.
A.
C.
D.
E.
Open question page

Que: (28). In a binary search tree, which subtree of a node contains elements that are greater than the node’s value?

Asked in BPSC TRE 3.0
B.
C.
A.
D.
E.
Open question page

Que: (29). The result evaluating the postfix expression 10 5 + 60 6/ * 8-

Asked in BPSC TRE 3.0
C.
B.
A.
D.
E.
Open question page

Que: (30). In a balanced binary tree, the height of two sub-trees of every node can not differ by more than

Asked in BPSC TRE 3.0
B.
C.
A.
D.
E.
Open question page

Que: (31). Write the output of the following program: int a[ ] = {1,2,3,} *p;

Asked in BPSC TRE 3.0
C.
A.
B.
D.
E.
Open question page

Que: (32). A queue has configuration a, b, c, d. If you want to get the configuration d, c, b, a, you need a minimum of _______.

Asked in BPSC TRE 3.0
B.
C.
A.
D.
E.
Open question page

Que: (33). The order of the binary search algorithm is _______.

Asked in BPSC TRE 3.0
A.
B.
C.
D.
E.
Open question page

Que: (34). The preorder traversal of a binary search tree is 15, 10, 12, 11,20, 18, 16, 19. Which one of the following is the postorder traversal of the tree?

Asked in BPSC TRE 3.0
B.
A.
C.
D.
E.
Open question page

Que: (35). How many distinct binary search trees can be created out of 4 distinct keys?

Asked in BPSC TRE 3.0
A.
B.
C.
D.
E.
Open question page

Que: (36). Merge Sort is an example of which algorithm design paradigm?

Asked in BPSC TRE 3.0
C.
A.
B.
D.
E.
Open question page