download Mastguru Android App

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. ++i is equivalent to

  • i = i + 2
  • i = i + 1
  • i = i + i
  • i = i - 1

2. minimum number of stacks of size n required to implement a queue of size n

  • One
  • Two
  • Three
  • Four

3. The complexity of merge sort algorithm is

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

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

  • FIFO lists
  • LIFO list
  • Piles
  • Push-down lists

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

  • One
  • Two
  • Three
  • Four
Read more from - Data Structure Questions Answers - Chapter 1
Post a comment