Time left:

[All Quizzes] → [Introduction to Algorithms] → [Sorting and Searching]


1. ► Merge sort has linear space requirement

A.
B.

2. ► Hidden constants are higher in merge sort

A.
B.

3. ► Searching is more expensive in sorted sequence

A.
B.

4. ► Quick sort guarantees O(nlgn) performance in all the cases

A.
B.

5. ► Heap sort guarantees O(nlgn) performance

A.
B.

6. ► In unsorted sequence, key and data cannot stay together

A.
B.

7. ► Heap sort makes use of heap data structure

A.
B.

8. ► For faster and frequent searches, sorted sequences are better to work on

A.
B.

9. ► Sorting algorithm with logarithmic component in complexity works faster

A.
B.

10. ► Topological ordering in a graph is unique

A.
B.

11. ► Stable sorting always preserves the order

A.
B.

12. ► Merge sort can be parallelized

A.
B.

13. ► STL doesn’t have an implementation of quick sort

A.
B.

14. ► Binary search only operates on sorted sequence

A.
B.

15. ► Heap sort cannot be done in-place

A.
B.

16. ► Topological sort is available in STL

A.
B.

17. ► Heap sort doesn’t have an implementation in STL

A.
B.

18. ► Binary search performs in linear time

A.
B.

19. ► Merge sort is not a stable sort

A.
B.

20. ► Quick sort works on the principle of divide and conquer

A.
B.


© 2016 VirtuQ™ Education All right reserved. | Terms of Use | Privacy Policy