7
answers
0
watching
553
views
30 Sep 2018
17. Which of the following are examples of compile-time errors? Write the letters corresponding to the correct answers on your answer sheet. (a) Accessing an array at index -1 (b) Dividing an integer by 0 (c) Passing an int value as input to a method that expects a double input argument (d) Accessing a variable outside of its scope. (e) Omitting a semi-colon at the end of a statement. For the next two questions, consider the following block of code: for (int i=0; i<5; i+=2) { for(int j=0; j<=i; j++){ System.out.println("Bubblegum");
17. Which of the following are examples of compile-time errors? Write the letters corresponding to the correct answers on your answer sheet. (a) Accessing an array at index -1 (b) Dividing an integer by 0 (c) Passing an int value as input to a method that expects a double input argument (d) Accessing a variable outside of its scope. (e) Omitting a semi-colon at the end of a statement. For the next two questions, consider the following block of code: for (int i=0; i<5; i+=2) { for(int j=0; j<=i; j++){ System.out.println("Bubblegum");
29 Jun 2023
learn4lifeLv10
10 Jul 2022
Already have an account? Log in
jeylam2666Lv10
6 Feb 2022
Already have an account? Log in
3 Feb 2022
Already have an account? Log in
Elin HesselLv2
1 Oct 2018
Already have an account? Log in