Computers

10th -

11thgrade

Image

5_Arrays — Bubble Sort

24
plays

5 questions

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

    Which of the following statements is true about Bubble sort?

    It works in a random order, swapping elements haphazardly.

    It works by repeatedly swapping the adjacent elements if they are in the wrong order.

    It compares adjacent elements to check whether they are in the wrong order.

    It involves a repetitive iteration.

  • 2. Multiple Choice
    30 seconds
    1 pt

    Bubble sort involves the use of a ________ "for" loop.

    random

    sequential

    nested

    serial

  • 3. Multiple Choice
    30 seconds
    1 pt

    Which of the following statements is true about Bubble sorting an array?

    It requires several passes to reorder elements of an array.

    It is the only method used for sorting arrays.

    It involves comparison and swapping of elements.

    Elements must be swapped regardless of order.

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?