Things I had to search up

  • Question 12: .length is for arrays, .length() is for Strings, how .substring() works
  • Question 22: how the toString() method works

Score + Quiz Reflection

  • Score: 27/40
  • Could have been more efficient/faster

Corrections

  • Question 12: C, will not result in error, prints out “optr” Image
  • Question 15: A, II will result in an ArrayIndexOutOfBoundsException, so its only I Image
  • Question 19: B, Opposite of > is <= Image
  • Question 22: B, books is an array of books, can’t call methods in the AudioBook subclass
  • Question 23: B, Would be D if k>0
  • Question 25: D, II also works
  • Question 28: E, n can be less than one at the start
  • Question 30: C, not an error
  • Question 33: E, k is always less than 4
  • Question 34: B, x and y cannot be accessed outside the method
  • Question 36: C, 12 is even
  • Question 39: D, returns 16
  • Questions 40: C, starts with W