Answer:
Following are the solution to this question:
Step-by-step explanation:
In the first question, the answer is "doStuff (5, 7.5);" because in the method definition the second parameter is an integer type and it is the double type, that's why it is not legal.
In the second question, the answer is "Option I" because in this, it uses a conditional statement that checks the gpa value is greater than equal to 3.5 and also check grade value equal to 11 or 12.
In the third question, the answer is "Class" because it is used to pass the value by reference for the method.
In the fourth question, the answer is "A method whose return type is void cannot return a value".
In the fifth question, the answer is "return 1" because it doesn't accept any value and its return type is an integer.
In the sixth question, the answer is "a copy of the variable".
In the seventh question, the answer is "4". because it uses the index method, in which it finds the character value of r string, that is equal to "a" and finds this value in q string that is available on the 4 index number.