Given the following call, what value would be returned for findTheMiddle(2110890125) ? public static String findTheMiddle(int number) { String stringNum = "" + number; int mid = stringNum.length()/2; if(stringNum.length() % 2 == 1) { return stringNum.substring(mid, mid+1); } else return stringNum.substring(mid-1, mid+1); } 8 The code will error 9 0 89 A company uses the following table to determine pay rate based on hours worked: Hours Worked Rate 1-40 $10 41-50 $15 50+ $20 The following method is intended to represent this table: public int calculateRate(int hours) { if (hours < 40) return 10; else if (hours <50) return 15; else return 20; } Which of the following test cases can be used to show that the code does NOT work as intended? calculateRate(35); calculateRate(40); calculateRate(45); calculateRate(55); A student is trying to determine if the following two expressions are equivalent. A. X && (!x || y) B. X && !(x || !) What values of x and y would prove that the expressions are NOT equivalent? X = true y = true O X = true y = false 0 false y = true O false false у Given a, b, and c are properly initialized boolean values, what values would make the following expression false? (a || b) || (b || c) || (!a || b); O a and b must be different values a must be false O b and c must have the same values Nothing. The expression will always be true. The following method is designed to return true if the passed phrase contains either the word cat or dog. public boolean containsPet(String input) { if (input.indexOf("cat") >= ) { return true; } else if (input.indexOf("dog") >= %) { return true; } else { return false; } } Which of the following test cases can be used to show the code does NOT work as intended? containsPet("I have a dog."); containsPet("I don't have pets."); containsPet("I can catch fish.") O containsPet("My dog caught my cat"); What values for x and y will cause the program to execute the /* missing code */? if (x > 10) { X -= 5; if (x > 10 Il y <= 10) { X ++; y++; } else { /* missing code */ } } 0 X = 18 y = 12 O X = 12 y = 8 O X = 12 y = 12 o x = 18 y = 18 O X = 18 y = 8