πŸ§ͺ Data structure MCQ Quiz Hub

Data Structures and algorithms MCQ Questions

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

ο»ΏWhen determining the efficiency of algorithm the space factor is measured by





βœ… Correct Answer: 1

The complexity of Bubble sort algorithm





βœ… Correct Answer: 2

Linked lists are best suited





βœ… Correct Answer: 2

If the values of a variable in one module is indirectly changed by another module this situation is called





βœ… Correct Answer: 3

In linear search algorithm the Worst case occurs when





βœ… Correct Answer: 4

For an algorithm the complexity of the average case is





βœ… Correct Answer: 1

The complexity of linear search algorithm is





βœ… Correct Answer: 4

The complexity of linear search algorithm is





βœ… Correct Answer: 1

When determining the efficiency of algorithm the time factor is measured by





βœ… Correct Answer: 2

Which of the following data structure is linear data structure?





βœ… Correct Answer: 3

The elements of an array are stored successively in memory cells because





βœ… Correct Answer: 1

Which of the following data structure is not linear data structure?





βœ… Correct Answer: 4

he Average case occur in linear search algorithm





βœ… Correct Answer: 1

Two main measures for the efficiency of an algorithm are





βœ… Correct Answer: 3

Finding the location of the element with a given value is





βœ… Correct Answer: 2

Which of the following case does not exist in complexity theory





βœ… Correct Answer: 4

The operation of processing each element in the list is known as





βœ… Correct Answer: 4

Arrays are best data structures





βœ… Correct Answer: 1

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





βœ… Correct Answer: 3

The complexity of Binary search algorithm is





βœ… Correct Answer: 2

Each data item in a record may be a group item composed of sub-items; those items which are indecomposable are called





βœ… Correct Answer: 4

Which of the following is two way list?





βœ… Correct Answer: 4

Which of the following statement is false?





βœ… Correct Answer: 3

When inorder traversing a tree resulted E A C K F H D B G; the preorder traversal would return





βœ… Correct Answer: 2

The memory address of the first element of an array is called





βœ… Correct Answer: 2

The difference between linear array and a record is





βœ… Correct Answer: 4

Which of the following name does not relate to stacks?





βœ… Correct Answer: 1

Which of the following data structures are indexed structures?





βœ… Correct Answer: 1

The term β€œpush” and β€œpop” is related to the





βœ… Correct Answer: 3

The memory address of fifth element of an array can be calculated by the formula





βœ… Correct Answer: 1

Two dimensional arrays are also called





βœ… Correct Answer: 3

When new data are to be inserted into a data structure but there is no available space; this situation is usually called





βœ… Correct Answer: 2

The situation when in a linked list START=NULL is





βœ… Correct Answer: 1

A variable P is called pointer if





βœ… Correct Answer: 1

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





βœ… Correct Answer: 1

Which of the following data structure store the homogeneous data elements?





βœ… Correct Answer: 1

Which of the following is not a limitation of binary search algorithm?





βœ… Correct Answer: 4

Binary search algorithm can not be applied to





βœ… Correct Answer: 1

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





βœ… Correct Answer: 4

Which of the following is not the required condition for binary search algorithm?





βœ… Correct Answer: 3