Question: (9) Which correctly defines two integer parameters x and y for a method definition: public void caleVal...)? a) (int x; int y) b) (int x,
(9) Which correctly defines two integer parameters x and y for a method definition: public void caleVal...)? a) (int x; int y) b) (int x, y) c) (int x, int y) d) none of above (10) Choose the "best" identifier for a variable with the number of students attending FMU. a) num b) numStdsFmu c) num StudentsFmu d) numberOfStudents AttendingFmu 3 (2 points each) Correct the error/errors in the code if any, or answer "no error". Assuming all given variables have been declared and assigned value. (1) System.out.print(myGpa). (2) System.out.printl("I study hard."); (3) System.out.print("Too good to believe. '); (4) System.out.print("You are my good riend!); (5) System.out.print("Alice // Peter"); (3 points each) Give your correct answer, or "no answer" if the question is wrong. (1)Type a statement that outputs: I like FMU!" System.out.print("I like FMU!"); or System.out.println("I like FMU!"); (2)x = -9.0; z= Math.sqrt(Math.abs(x)); z is
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
