Data Structure (DS) solved MCQs

1 of 6

1. Which if the following is/are the levels of implementation of data structure

a. abstract level

B. application level

c. implementation level

d. all of the above

2. A binary search tree whose left subtree and right subtree differ in hight by at most 1 unit is called ……

a. avl tree

B. red-black tree

c. lemma tree

d. none of the above

3. Stack is also called as

a. last in first out

B. first in last out

c. last in last out

d. first in first out

4. …………… is not the component of data structure.

a. operations

B. storage structures

c. algorithms

d. none of above

5. Which of the following is not the part of ADT description?

a. data

B. operations

c. both of the above

d. none of the above

6. ……………. Is a pile in which items are added at one end and removed from the other.

a. stack

B. queue

c. list

d. none of the above

7. ………… is very useful in situation when data have to stored and then retrieved in reverse order.

a. stack

B. queue

c. list

d. link list

8. Which data structure allows deleting data elements from and inserting at rear?

a. stacks

B. queues

c. dequeues

d. binary search tree

9. Which of the following data structure can’t store the non-homogeneous data elements?

a. arrays

B. records

c. pointers

d. stacks

10. A ……. is a data structure that organizes data similar to a line in the supermarket, where the first one in line is the first one out.

a. queue linked list

B. stacks linked list

c. both of them

d. neither of them

11. Which of the following is non-liner data structure?

a. stacks

B. list

c. strings

d. trees

12. Herder node is used as sentinel in …..

a. graphs

B. stacks

c. binary tree

d. queues

13. Which data structure is used in breadth first search of a graph to hold nodes?

a. stack

B. queue

c. tree

d. array

14. Identify the data structure which allows deletions at both ends of the list but insertion at only one end.

a. input restricted dequeue

B. output restricted qequeue

c. priority queues

d. stack

15. Which of the following data structure is non linear type?

a. strings

B. lists

c. stacks

d. graph

16. Which of the following data structure is linear type?

a. graph

B. trees

c. binary tree

d. stack

17. To represent hierarchical relationship between elements, Which data structure is suitable?

a. dequeue

B. priority

c. tree

d. graph

18. A directed graph is ………………. if there is a path from each vertex to every other vertex in the digraph.

a. weakly connected

B. strongly connected

c. tightly connected

d. linearly connected

19. In the …………….. traversal we process all of a vertex’s descendants before we move to an adjacent vertex.

a. depth first

B. breadth first

c. with first

d. depth limited

20. The number of comparisons done by sequential search is ………………

a. (n/2)+1

B. (n+1)/2

c. (n-1)/2

d. (n+2)/2

21. In ……………, search start at the beginning of the list and check every element in the list.

a. linear search

B. binary search

c. hash search

d. binary tree search

22. Which of the following is not the internal sort?

a. insertion sort

B. bubble sort

c. merge sort

d. heap sort

23. A graph is said to be ……………… if the vertices can be split into two sets V1 and V2 such there are no edges between two vertices of V1 or two vertices of V2.

a. partite

B. bipartite

c. rooted

d. bisects

24. In a queue, the initial values of front pointer f rare pointer r should be …….. and ……….. respectively.

a. 0 and 1

B. 0 and -1

c. -1 and 0

d. 1 and 0

25. In a circular queue the value of r will be ..

a. r=r+1

B. r=(r+1)% [queue_size – 1]

c. r=(r+1)% queue_size

d. r=(r-1)% queue_size

Jump to set ->
Featured Image

Question and answers in Data Structure (DS),

Data Structure (DS) Multiple choice questions and answers,

Important MCQ of Data Structure (DS),

Solved MCQs for Data Structure (DS),

Download PDF for Data Structure (DS) solved MCQs,

Data Structure (DS) MCQ with answers PDF download