Data Structures Algorithms Mock Test
Data Structures Algorithms Mock Test
This section presents you various set of Mock Tests related to Data Structures Algorithms. You
can download these sample mock tests at your local machine and solve offline at your
convenience. Every mock test is supplied with a mock test key to let you verify the final score and
grade yourself.
Q 2 - Heap is an example of
B - spanning tree
C - sparse tree
Q 3 - In a min heap
A - e-n+1
B - n-e+1
C - n+e-1
D - e-n-1
A - Ο1
B - Οlogn
C - Οn
D - Ο(n2 )
Q 11 - The following sorting algorithms maintain two sub-lists, one sorted and one to
be sorted −
A - Selection Sort
B - Insertion Sort
C - Merge Sort
D - both A &am; B
Q 13 - Access time of a binary search tree may go worse in terms of time complexity
upto
A - Ο(n2 )
B - Οnlogn
C - Οn
D - Ο1
A - insertion sort
B - merge sort
C - selection sort
D - quick sort
A - Merge Sort
B - Quick Sort
C - Insertion Sort
D - Selection Sort
B - data collection should be in sorted form and but not equally distributed.
Q 19 - If the data collection is in sorted form and equally distributed then the run time
complexity of interpolation search is −
A - Οn
B - Ο1
C - Οlogn
D - Οlog(logn)
A - linear search
B - binary search
C - merge sort
D - quick sort
B - linear search
C - merge sort
B - all other factors like CPU speed are constant and have no effect on implementation.
D - it is a result of reverse-engineering.
A - greedy programming
B - dynamic programming
A - Ο1
B - Οn
C - Οlogn
D - Ο(n2 )
ANSWER SHEET
1 B
2 A
3 C
4 D
5 A
6 A
7 B
8 B
9 D
10 A
11 D
12 B
13 C
14 A
15 B
16 C
17 B
18 A
19 D
20 A
21 B
22 B
23 A
24 B
25 B
Loading [MathJax]/jax/output/HTML-CSS/jax.js