Professional Documents
Culture Documents
Questions:-
A) Merging
B) Sorting
C) Array
D) Linked list
A) Internal sorting
B) External sorting
C) Bubble sorting
D) None of the above
A) Sorting
B) Merging
C) Searching
D) None of the above
A) Shell sort
B) Heap sort
C) Selection sort
D) Bubble sort
A) Heap sort
B) Shell sort
C) Selection sort
D) Radix sort
A) Heap sort
B) Shell sort
C) Selection sort
D) Radix sort
A) Heap sort
B) Shell sort
C) Selection sort
D) Radix sort
A) Heap sort
B) Shell sort
C) Selection sort
D) Merge sort
A) Linear search
B) Binary search
C) Indexed sequential search
D) None of the above
A) Binary search
B) Linear search
C) Sequential search
D) None of the above
A) Merge sort
B) Quick sort
C) Bubble sort
D) Radix sort
A) O(n)
B) O(n²)
C) O(log n)
D) None of the above
A) O(log n)
B) O(n²)
C) O(n³)
D) O(1)
17) What is the best case time complexity for
Quick sort algorithm:
A) O(log n)
B) O(n²)
C) O(nlog n)
D) O(n³)
A) O(nk)
B) O(n+k)
C) O(n)
D) O(1)
A) O(log n)
B) O(n log n)
C) On(log n²)
D) O(log n²)
A) O(log n)
B) O(n log n)
C) On(log n²)
D) O(log n²)
A) O(log n)
B) O(n²)
C) O(n³)
D) O(1)
A) O(n log n)
B) O(n log n²)
C) O(n³)
D) O(log n)
A) O(log n)
B) O(n)
C) O(n²)
D) O(n³)
A) O(nk)
B) O(n+k)
C) O(n)
D) O(1)
A) O(nk)
B) O(n+k)
C) O(n)
D) O(1)
Answer key:-
1) sorting (b)
2) Internal sorting (a)
3) Searching (c)
4) Bubble sort (d)
5) Selection sort (c)
6) Insertion sorting (c)
7) Radix sort (d)
8) Shell sort (b)
9) Heap sort (a)
10) Merge sort (d)
11) Linear search (a)
12) Binary search (a)
13) Quick sort (b)
14) O(n) (a)
15) O(1) (d)
16) O(n²) (b)
17) O(n log n) (c)
18) O(nk) (a)
19) On(log n²) (c)
20) O(n log n) (b)
21) O(1) (d)
22) O(n log n) (a)
23) O(n) (b)
24) O(n+k) (b)
25) O(n) (c)