Computers

Professional Development

Image

DSA QUIZ-2

0
plays

25 questions

Show Answers
See Preview
  • 1. Multiple Choice
    20 seconds
    1 pt

    Which of the following is not a stable sorting algorithm?

    Bubble Sort

    Merge Sort

    Insertion Sort

    Selection Sort

  • 2. Multiple Choice
    30 seconds
    1 pt

    Running merge sort on an array of size n which is already sorted is

    O(n)

    O(logn)

    O(n logn)

    O(n^2)

  • 3. Multiple Choice
    30 seconds
    1 pt

    Consider the situation in which assignment operation is very costly. Which of the following sorting algorithm should be performed so that the number of assignment operations is minimized in general?

    Insertion sort

    Heap Sort

    Selection sort

    None

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?