Data Structure MCQ with Answers Set-2

This post contains a computer network related to 20 multiple-choice questions (DS SET-2) that help you to go through the subject and prepare you for Data Structure related questions in competitive exams.

Data Structure MCQ Test Series Set-2

  • Total Number of Questions: 20

  • Each question carries equal marks i.e 1

  • No Negative Marking

Page 1 of 2

1. Which of the following data structures is used for converting the infix notation to postfix notation?
A.
B.
C.
D.
E.
2. A queue is implemented using a non-circular singly linked list. The queue has a head pointer and a tail pointer, as shown in the figure. Let n denote the number of nodes in the queue. Let enqueue be implemented by inserting a new node at the head, and dequeue be implemented by deletion of a node from the tail.

A.
B.
C.
D.
3.

The preorder traversal of a binary search tree is 15, 10, 12, 11 20, 18, 16, 19. Which one of the following is the post-order traversal of the tree?

A.
B.
C.
D.
4. When a push operation is performed on a stack that is already full, it might result in __________.
A.
B.
C.
D.
E.
5. What is the worst-case time complexity of inserting elements into an AVL tree with $n^{2}$ elements initially?
A.
B.
C.
D.
6. Let N be an NFA with n states. Let k be the number of states of a minimal DFA which is equivalent to N. Which one of the following is necessarily true?
A.
B.
C.
D.
7. _________ tree has all the nodes having at most two child nodes.
A.
B.
C.
D.
E.
8. In which of the following linked lists, the link of the last item points to the first element as the next item?
A.
B.
C.
D.
E.
9. Which of the following trees examines the height of left sub-trees and right sub-trees and ensures that the difference between their heights is not greater than 1?
A.
B.
C.
D.
E.
10. What is the worst-case time complexity of inserting n elements into an empty linked list, if the linked list needs to be maintained in sorted order?
A.
B.
C.
D.

 

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments