download Mastguru Android App

Question Detail

The complexity of Bubble sort algorithm is

  • O(n)
  • O(log n)
  • O(n2)
  • O(n log n)
Similar Questions :

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

  • One
  • Two
  • Three
  • Four

2. ++i is equivalent to

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

3. A linear list from which elements can be added or removed from either end is called

  • stack
  • queue
  • deque
  • tree

4. Which sorting method is slowest

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

5. The complexity of merge sort algorithm is

  • O(n)
  • O(log n)
  • O(n2)
  • O(n log n)
Read more from - Data Structure Questions Answers - Chapter 1
Post a comment