Consider the following list:int list[] = {4, 8, 19, 25, 34, 39, 45, 48, 66, 75, 89, 95}When performing a binary search for 75, after the first comparison, the search is restricted to ____.

A. list[0]...list[6]
B. list[0]...list[7]
C. list[5]...list[11]
D. list[6]...list[11]

Answer: D

Computer Science & Information Technology

You might also like to view...

A file with an extension of .potx is a(n) ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Answer the following statements true (T) or false (F)

1. If the expression on the left side of the following is true, the expression on the right side will not be checked. (a > = b) || (c == d) 2. If the expression on the left side of the following is false, the expression on the right side will not be checked. (a > = b) && (c == d) 3. The default section is required in a switch statement. 4. An expression that has any value other than 0 is considered true by an if statement. 5. Both of the following if statements perform the same operation. 1. if (sales > 10000) commissionRate = 0.15; 2. if (sales > 10000) commissionRate = 0.15;

Computer Science & Information Technology