What type of search does the following function implement?bool aSearch (int list[ ], int last,int target, int* locn){   int looker;   looker = 0;   while (looker < last && target != list[looker])      looker++;   *locn = looker;   return ( target == list[looker] );}

A. sequential search
B. sentinel search
C. ordered list search
D. binary search


Answer: A

Computer Science & Information Technology

You might also like to view...

According to the Federal Trade Commission, consumers reported how much in losses due to fraud each year during the last few years?

A) More than $90 million B) More than $125 million C) More than $550 million D) More than $900 million

Computer Science & Information Technology

A(n) ____ is a banner displayed at the top of an email message that indicates whether an email message has been replied to or forwarded.

A. Navigation Bar B. InfoBar C. Attachment Preview D. subject line

Computer Science & Information Technology

A client is asking for a printing solution that will print three sheets of paper with identical information on each page with a single pass of the printer. Furthermore, the client requests that the solution take the least amount of time and effort to maintain.   Which of the following printer types should be recommended?

A. Impact B. Laser C. Thermal transfer D. Inkjet

Computer Science & Information Technology

WriteLine("Final Grade = {0:N2}", CalculateGrade(90, 75, 83)); In the statement above, CalculateGrade(90, 75, 83) is ____.

A. a method call B. a method declaration C. an identifier for the class D. a parameter for the WriteLine( ) method

Computer Science & Information Technology