• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Top MCQs on CountingSort Algorithm with Answers

Question 1

Which sorting algorithms is most efficient to sort string consisting of ASCII characters?
  • Quick sort
  • Heap sort
  • Merge sort
  • Counting sort

Question 2

Given an array where numbers are in range from 1 to n6, which sorting algorithm can be used to sort these number in linear time?
  • Not possible to sort in linear time
  • Radix Sort
  • Counting Sort
  • Quick Sort

Question 3

Which of the following is not true about comparison-based sorting algorithms?

  • The minimum possible time complexity of a comparison-based sorting algorithm is O(n(log(n)) for a random input array

  • Any comparison based sorting algorithm can be made stable by using position as a criteria when two elements are compared

  • Counting Sort is not a comparison based sorting algorithm

  • Heap Sort is not a comparison based sorting algorithm.

There are 3 questions to complete.

Last Updated :
Take a part in the ongoing discussion