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

1. A binary search works with any array of numbers.

2. For the binary search in the text to work, the element searched for must actually be present in the array.

1. False
Explanation: One of the preconditions for the binary search in the text is that the array be sorted in increasing order.
2. False
Explanation: The routine in the text sets the bool reference variable to false if the key is not found.

Computer Science & Information Technology

You might also like to view...

A specific item of data or information located within a table is called a ________

A) field B) key C) report D) record

Computer Science & Information Technology

In creating a table it is absolutely necessary to:

A) remember to include pictures. B) remember to include a header row. C) remember to include a footer. D) remember to include formulas.

Computer Science & Information Technology