Question Detail

The complexity of Bubble sort algorithm is

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

1. Which is having highest precedence in C

  • relational operators
  • equality operator
  • logical operator
  • arithmetic operator

2. The memory address of the first element of an array is called

  • floor address
  • first address
  • foundation address
  • base address

3. Recursive problems are implemented by

  • queues
  • stacks
  • linked lists
  • strings

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

  • Insertion sort
  • Heap sort
  • Quick sort
  • Bubble sort

5. ++i is equivalent to

  • i = i + 2
  • i = i + 1
  • i = i + i
  • i = i - 1
Read more from - Data Structure Questions Answers - Chapter 1