Direction:Answer the following items (Malik & Nair, 2012).1. Mark the following statements as true or false.a. A linear search of a list assumes that the list is in ascending order.
Get answer to your question and much more
b. A binary search of a list assumes that the list is sorted.
Get answer to your question and much more
c. A binary search is faster on ordered lists and slower on unordered lists.
Get answer to your question and much more
Get answer to your question and much more
2. Consider the following list:63 45 32 98 46 57 28 100Using the linear search as described in this module, how many comparisons are required to findwhether the following items are in the list? (By comparison, we mean item comparisons)
Get answer to your question and much more
b. 57 -SIX COMPARISONSc. 63 -ONE COMPARISON
Get answer to your question and much more
3. Consider the following list:21017454955688592Using the detailed code for binary search as described in this module, how many comparisons arerequired to find whether the following items are in the list? Show the values of left, right and mid andthe number of comparisons after each iteration of the loop.a. 15981109811049
Get answer to your question and much more