Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

9. You should fill in the blank in the following code with public class Test pub

ID: 3863243 • Letter: 9

Question

9. You should fill in the blank in the following code with public class Test public static void main(Stringll args) System out print("The grade is getGrade(78.5)); System out print("InThe grade is getGrade(59.5); public static getGrade (double score) if (score 90.0) return 'A'; else if (score >m 80.0) return 'B' else if (score 70.0) return 'C' else if (score 60.0) return 'D else return 'F'; A. int B. double C. boolean D, char E. void 10. If you declare an array doublell list (3.4, 2.0, 3.5, 5.5), listl1] is A. 3.4 B. 2.0 C. 3.5 D. 5.5 E. undefined 11. If you declare an array doublell list (3.4, 2.0, 3.5, 5.5, the highest index in array list is A, 0 B. 1 D. 3 E. 4

Explanation / Answer

9) D. char (all the return statement in the function is returning character value)

10) B.2.0 (index is starting from 0 hence list[1] is 2)

11) D.3(there are total four elements in the array and index is starting from 0 , hence ans is 3)