Computers

University -

Professional Development

Image

Searching and Sorting

296
plays

15 questions

Show Answers
See Preview
  • 1. Multiple Choice
    1 minute
    1 pt

    Choose a CORRECT statement about pivot in quick sort method.

    A pivot divides the list evenly.

    A pivot can be chosen randomly.

    A pivot is chosen by using a formula

    A pivot makes the searching method becomes slow

  • 2. Multiple Choice
    1 minute
    1 pt

    Identify the INCORRECT statement about searching


    i. Binary search starts by testing the largest data

    ii. Linear search can be done for unsorted data only

    iii. Linear search starts by testing data at the middle of list

    iv. Binary search can be done for sorted homogeneous data

    i, ii and iii

    ii, iii and iv

    i, iii and iv

    i, ii, iii and iv

  • 3. Multiple Choice
    45 seconds
    1 pt

    Suppose a list is {2, 9, 5, 4, 8, 1}. After the first phase of bubble sort, the list becomes …

    2, 9, 5, 4, 8, 1

    2, 9, 5, 4, 1, 8

    2, 5, 9, 4, 8, 1

    2, 5, 4, 8, 1, 9

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?