To search the names array for the name "Janey" using a binary search, what should the initial value of index be?
a. 0
b. N
c. Math.round((N+1)/2)
d. 99
Answer: c. Math.round((N+1)/2)
Computer Science & Information Technology
You might also like to view...
The Themes gallery is located on the ________ tab
Fill in the blank(s) with correct word
Computer Science & Information Technology
The compiler will implicitly create a default constructor if:
a. The class does not contain any data members. b. The programmer specifically requests that the compiler do so. c. The class does not define any constructors. d. The class already defines a default constructor.
Computer Science & Information Technology