Hey!

Thanks for checking my question out!
____

10. If x is a sorted array of int values, which of the following shows a call to a method of the Arrays class that will determine if the value 7 exists in the array? (1 point)

a) int loc = java.util.Arrays.search(x, 7);

b) int loc = java.util.Arrays.binarySearch(x, 7);

c) int loc = java.util.Arrays.find(x, 7);

d) int loc = java.util.Arrays.locate(x, 7);

My Answer: B
Could someone please check my answer?

Thanks!
- Da Fash

Similar Questions
  1. Which of the following algorithms will run in constant time?(1 point)Responses sorting an array sorting an array traversing an
    1. answers icon 1 answer
  2. Which of the following algorithms will run in constant time?(1 point)Responses traversing an array traversing an array binary
    1. answers icon 1 answer
    1. answers icon 3 answers
  3. which of the following algorithims will run in constant timeaccessing an element of an array sorting an array binary search on a
    1. answers icon 1 answer
more similar questions