Data structure MCQ Quiz Hub

Data Structure (DS) MCQ Set 1

Choose a topic to test your knowledge and improve your Data structure skills

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





✅ Correct Answer: 4

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





✅ Correct Answer: 1

A binary search tree whose left subtree and right subtree differ in hight by at most 1 unit is called …… D. none of the above





✅ Correct Answer: 1

Stack is also called as





✅ Correct Answer: 1

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





✅ Correct Answer: 4

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





✅ Correct Answer: 4

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





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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.





✅ Correct Answer: 1

Which of the following is non-liner data structure?





✅ Correct Answer: 4

Herder node is used as sentinel in …..





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

Which of the following data structure is non linear type?





✅ Correct Answer: 4

Which of the following data structure is linear type?





✅ Correct Answer: 4

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





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

Which of the following is not the internal sort?





✅ Correct Answer: 3

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.





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

The advantage of …………….. is that they solve the problem if sequential storage representation. But disadvantage in that is they are sequential lists.





✅ Correct Answer: 2

…… is not the operation that can be performed on queue.





✅ Correct Answer: 4

There is an extra element at the head of the list called a ……….





✅ Correct Answer: 2

……… is not the operation that can be performed on queue.





✅ Correct Answer: 4

A graph is a collection of nodes, called ………. And line segments called arcs or ……….. that connect pair of nodes.





✅ Correct Answer: 2

A ……….. is a graph that has weights of costs associated with its edges.





✅ Correct Answer: 3

In general, the binary search method needs no more than ……………. comparisons.





✅ Correct Answer: 4

The property of binary tree is





✅ Correct Answer: 4

Any node is the path from the root to the node is called





✅ Correct Answer: 2

Which is/are the application(s) of stack





✅ Correct Answer: 4

A …………… is an acyclic digraph, which has only one node with indegree 0, and other nodes have in-degree 1.





✅ Correct Answer: 1

……. Is a directed tree in which outdegree of each node is less than or equal to two.





✅ Correct Answer: 2

Which of the following data structure is non-linear type?





✅ Correct Answer: 4

Which of the following data structure is linear type?





✅ Correct Answer: 1

The logical or mathematical model of a particular organization of data is called a ………





✅ Correct Answer: 1

The simplest type of data structure is ………………





✅ Correct Answer: 2

Linear arrays are also called ……………….





✅ Correct Answer: 2

Arrays are best data structures …………





✅ Correct Answer: 1

Which of the following data structures are indexed structures?





✅ Correct Answer: 1

Each node in a linked list has two pairs of ………….. and ……………….





✅ Correct Answer: 1

A …………………… does not keep track of address of every element in the list.





✅ Correct Answer: 3

When does top value of the stack changes?





✅ Correct Answer: 4

Arrays are best data structures …………





✅ Correct Answer: 1

fThe disadvantage in using a circular linked list is …………………….





✅ Correct Answer: 1

A linear list in which each node has pointers to point to the predecessor and successors nodes is called as ..





✅ Correct Answer: 3

A ……………….. is a linear list in which insertions and deletions are made to from either end of the structure.





✅ Correct Answer: 4

In a priority queue, insertion and deletion takes place at ………………





✅ Correct Answer: 4

The time complexity of quick sort is …………..





✅ Correct Answer: 3

Which of the following is an application of stack?





✅ Correct Answer: 2

The data structure which is one ended is ………………





✅ Correct Answer: 2

A list which displays the relationship of adjacency between elements is said to be





✅ Correct Answer: 1

……….. level is where the model becomes compatible executable code





✅ Correct Answer: 3

Inserting an item into the stack when stack is not full is called …………. Operation and deletion of item form the stack, when stack is not empty is called ………..operation.





✅ Correct Answer: 1

Each array declaration need not give, implicitly or explicitly, the information about





✅ Correct Answer: 3

Finding the location of the element with a given value is:





✅ Correct Answer: 2

Which of the following statement is true?i) Using singly linked lists and circular list, it is not possible to traverse the list backwards.ii) To find the predecessor, it is required to traverse the list from the first node in case of singly linked list.





✅ Correct Answer: 3

What will be the value of top, if there is a size of stack STACK_SIZE is 5





✅ Correct Answer: 3

…… is not the operation that can be performed on queue.





✅ Correct Answer: 4

A data structure where elements can be added or removed at either end but not in the middle is called …





✅ Correct Answer: 4

The term "push" and "pop" is related to the





✅ Correct Answer: 3

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





✅ Correct Answer: 2

node.next -> node.next.next; will make





✅ Correct Answer: 1

A circular linked list can be used for





✅ Correct Answer: 3

In doubly linked lists





✅ Correct Answer: 2

The disadvantage in using a circular linked list is …………………….





✅ Correct Answer: 1

In doubly linked lists, traversal can be performed?





✅ Correct Answer: 3

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





✅ Correct Answer: 3

How do you count the number of elements in the circular linked list?





✅ Correct Answer: 1

What is a dequeue?





✅ Correct Answer: 1

Suppose a circular queue of capacity (n – 1) elements is implemented with an array of n elements. Assume that the insertion and deletion operation are carried out using REAR and FRONT as array index variables, respectively. Initially, REAR = FRONT = 0. The conditions to detect queue full and queue empty are





✅ Correct Answer: 1