java questions q1 consider the following list list 5 11 25 28 45 78 100 120 125 supp 5122014

Java Questions: Q1: Consider the following list. list = {5, 11, 25, 28, 45, 78, 100, 120, 125}; Suppose that binary search as discussed in the book is used todetermine whether 28 is in list. What are the values of first andlast when the while loop in the body of the binarySearch methodterminates? A. first = 3, last = 3 B. first = 0, last = 3 C. first = 2, last = 4 D. None of these Q2: Consider the following list. list = {20, 10, 17, 2, 18, 35, 30, 90, 48, 47}; Suppose that sequential search as discussed in the book is used todetermine whether 2 is in list. Exactly how many key comparisonsare executed by the sequential search algorithm? A. 3 B. 4 C. 5 D. 8 . . .

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now