Vidyalelo
Data Structure · all questions

Introduction to Data Structures
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

210

Questions

11/11

Page

Pick an option on a question to see the right answer and solution.

Queues serve major role in . . . . . . . .

Select an option to see the answer and solution.

What differentiates a circular linked list from a normal linked list?

Select an option to see the answer and solution.

A linear collection of data elements where the linear node is given by means of pointer is called?

Select an option to see the answer and solution.

Array implementation of Stack is not dynamic, which of the following statements supports this argument?

Select an option to see the answer and solution.

Minimum number of queues to implement stack is . . . . . . . .

Select an option to see the answer and solution.

Pushing an element into stack already having five elements and stack size of 5, then stack becomes . . . . . . . .

Select an option to see the answer and solution.

A double-ended queue supports operations like adding and removing items from both the sides of the queue. They support four operations like addFront(adding item to top of the queue), addRear(adding item to the bottom of the queue), removeFront(removing item from the top of the queue) and removeRear(removing item from the bottom of the queue). You are given only stacks to implement this data structure. You can implement only push and pop operations. What's the time complexity of performing addFront and addRear? (Assume 'm' to be the size of the stack and 'n' to be the number of elements)

Select an option to see the answer and solution.

What data structure would you most likely see in non recursive implementation of a recursive algorithm?

Select an option to see the answer and solution.

Consider the usual algorithm for determining whether a sequence of parentheses is balanced. Suppose that you run the algorithm on a sequence that contains 2 left parentheses and 3 right parentheses (in some order). The maximum number of parentheses that appear on the stack AT ANY ONE TIME during the computation?

Select an option to see the answer and solution.

The concatenation of two lists can be performed in O(1) time. Which of the following variation of the linked list can be used?

Select an option to see the answer and solution.