Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Sorting

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

1.

The sorting process in which two ordered lists of elements are combined into single ordered list
is
a. Merge sort
b. Bubble sort
c. Selection sort
d. Quick sort
2. The pivot element is used in _______ sorting
a. Merge sort
b. Bubble sort
c. Selection sort
d. Quick sort
3. The ________ sorting in which parent node is greater than the child node
a. Merge sort
b. Heap sort
c. Selection sort
d. Quick sort
4. The bucket sort is otherwise known as
a. Merge sort
b. Selection sort
c. Radix sort
d. Quick sort
5. The process of searching the next smallest element is repeated, until all the elements in the list
have been sorted in ascending order
a. Selection sort
b. Merge sort
c. Radix sort
d. Quick sort
6. What is the advantage of bubble sort over other sorting technique ?
a. It is faster
b. Detects whether the input is already sorted
c. Consumes less memory
d. Less time consumption

7. Algorithm design technique used in quick sort algorithm is


a. Divide and conquer
b. Backtracking
c. Greedy method
d. Dynamic programming
8. Quick sort running time depends on the selection of
a. Size of array
b. Pivot element
c. Sequence of values
d. None of the above
9. What is an internal sorting algorithm?
a. Algorithm that uses tape or disk during the sort
b. Algorithm that uses main memory during the sort
c. Algorithm that involves swapping
d. Algorithm that are considered ‘in place’

10. Where is linear searching used?


a. When the list has only a few elements
b. When performing a single search in an unordered list
c.  Used all the time
d. When the list has only a few elements and when performing a single search in an
unordered list
11. Binary search can be categorized into which of the following?
a. Divide and conquer
b. Greedy algorithm
c. Dynamic programming
d. Brute force technique
12. Radix sort belongs to the family of sorting by
a. Distribution
b. Selection
c. Exchange
d. Merge
13. ____________ sorting belongs to the family of sorting by exchange
a. Radix sort
b. Heap sort
c. Shell sort
d. Bubble sort
14. The _________sorting,in each pass, the elements are compared pair wise until the largest key
amongst the participating elements comes to the end of the list.
a. Radix sort
b. Heap sort
c. Bubble sort
d. Shell sort
15. A heap is a __________________
a. Binary tree
b. Complete Binary tree
c. Full Binary tree
d. Skewed Tree

You might also like