My Report

Data Structure II Practice Test 1


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. Which among the following is the best cut-off range to perform insertion sort within a quick sort?

2. Which of the following is not in place sorting algorithm by default?

3. What is the disadvantage of selection sort?

4. What is the average time complexity of bottom up merge sort?

5. Which of the following code correctly represent exponential search?

6. Linear search(recursive) algorithm used in _____________

7. Choose the code snippet which uses recursion for linear search.

8. What is the space complexity of in place merge sort?

9. Choose the incorrect statement about merge sort from the following?

10. What is the formula used for calculating the position in interpolation search?
(x = element being searched, A[] = input array, low and high are the leftmost and rightmost index of A[] respectively)


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.