Overall Score

image

Corrections

Question My Answer Correct Answer Explanation
Question 16 B C The answer should have been C because I need to iterate the actual array and not the column.
Question 19 B A It has to c < d for it to work. If c is greater than or equal to then this statement wouldn't be equivalent to the one given.
Question 23 C B No need to subtract the length by -1 because we have a <= in the for loop logic.
Question 35 B D Can't be B because the first value has to be 0 as it is 0 in the given code segment.
Question 43 C D Implementation 1 will not work because in the for loop logic there needs to be a -1 in the arr.length to go to the maximum trials for the loop.
Question 58 C B pos should be equal j because each iteration you don't want the index to be reset back to 0.
Question 64 D B It can only be III because in I it has arr[i] but in an enhanced loop you are already given the value not the index.
Question 66 E B This is a silly mistake. It is obvious that it has to be less than 10 as the for loop was also less than 0 and all the values printed in the given segment are less than 10.

Overall Reflection

Overall, I think I did pretty well on this quiz. There were a lot of De Morgan’s law questions, which took some time as you have to look at each answer choice to find the correct one. I was able to understand most of the conceptual ones. I do need to work on substring and indexOf as I got stuck on some but was still able to find the correct answer. I need to stop overlooking the question and not try to go as fast as possible.