Other

11th

grade

Image

Binary search​

352
plays

9 questions

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

    In which of the following cases, binary search algorithm is used?​

    To search an element in an unordered list.​

    To search an element in a list of few elements.

    To search an element in any ordered list with large number of elements.​

  • 2. Multiple Choice
    20 seconds
    1 pt

    How does a binary search algorithm works?​

    Dividing the list into halves until the item is matched with one in the list.​

    Starts with the first element and checks the next element consecutively until a match is found.

    ​ None of the above​

  • 3. Multiple Choice
    20 seconds
    1 pt

    An array with 32 elements is input to a binary search algorithm. How many maximum number of comparisons are performed?​

    32

    16

    8

    5

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?