Programming - Arrays - Discussion

You Are Here :: Home > C++ Language > Arrays - Discussion

 



Q.

Consider the following list
list = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100};
Suppose that a sequential search on an ordered list as discussed in the book is used to determine whether 40 is in list. Exactly how many key comparisons are executed by this search algorithm?                         


A. 3 B. 4
C. 5 D. None of these

Answer: Option A
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion