Score: 46/52(88%)

image The test took me around an hour and ten minutes to complete in multiple sessions and there were definitely concepts that I was unsure of. I tried to take the test all on my own but had to reference google for a few of them. Some of these weaknesses I believe I can iron out and become better at once I get the concept down with more practice.

Some of the weak areas include:

  • Analyzing functions
  • Compile Errors
  • Enhanced For Loop

Q10

image The answer should have been d, 0008 and not e because although you can concatenate strings together, I thought you couldnt concatenate integers. However, primitive int values are concatentated with a string object implicity.

Q15

image The answer should have been e, not b since there would be an infinite loop created since A would forever be counting. With just pos + 1, A gets counted then moves on.

Q19

image The answer should have been c, not b since the for loop assigns k from 0 to the last position in str. The what method returns the value of the last occurance of check inside str because it goes towards the length of check and not the first index.

Q42

image The answer should have been d, not b since I previously thought that all 0s would be eliminated. However, since it removes the k value inside of the if statement, it would jump over the second 0, leaving it inside the return value.

Q46

image The answer should have been b, not c since major is private to StudentInfo so it can only be accessed by calling getMajor. In order to do it, you'd have to use getMajor() method on k and then add to age of k to increase count by 1.

Q49

image The answer should have been b, 54 and not c. This is a question with an enhanced for loop and I forgot how to do this so I guessed. The answer should have been 54 since it iterates till x-1. This means that it'll only get to three columns that add up, leading to an answer of 54.