BPSC Tre 4.0 DSA Practice Set

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

B.
A.
C.
D.
Open question page

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

A.
B.
C.
D.
Open question page

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

C.
A.
B.
D.
Open question page

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

C.
A.
B.
D.
Open question page

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
}
                        
B.
C.
A.
D.
Open question page

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

A.
B.
C.
D.
Open question page

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

B.
A.
C.
D.
Open question page

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

A.
B.
C.
D.
Open question page

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

A.
C.
B.
D.
E.
Open question page

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

B.
A.
C.
D.
Open question page

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

B.
A.
C.
D.
Open question page

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

B.
A.
C.
D.
Open question page

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

B.
C.
A.
D.
Open question page

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

B.
A.
C.
D.
Open question page

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

B.
C.
A.
D.
Open question page

Que: (16). 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
                        
C.
A.
B.
D.
Open question page

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

B.
C.
A.
D.
Open question page

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

B.
A.
C.
D.
Open question page

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

B.
C.
A.
D.
Open question page

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

A.
C.
B.
D.
Open question page

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

B.
C.
A.
D.
Open question page

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

C.
B.
A.
D.
Open question page

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

C.
B.
A.
D.
Open question page

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

B.
C.
A.
D.
Open question page

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

A.
B.
C.
D.
Open question page

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

C.
B.
A.
D.
Open question page