Question Detail

Sort which compares adjacent elements in a list and switches where necessary is

  • Insertion sort
  • Heap sort
  • Quick sort
  • Bubble sort
Similar Questions :

1. The complexity of Binary search algorithm is

  • O(n)
  • O(log n)
  • O(n2)
  • O(n log n)

2. What are the minimum number of queues needed to implement the priority queue?

  • One
  • Two
  • Three
  • Four

3. Which sorting method is slowest

  • Quick sort
  • Heap sort
  • Shell sort
  • Bubble sort

4. Deletion from one end and insertion from other end is

  • stack
  • branch
  • tree
  • queue

5. Which of the following name does not relate to stacks

  • FIFO lists
  • LIFO list
  • Piles
  • Push-down lists
Read more from - Data Structure Questions Answers - Chapter 1