Wrong Answers 2014 mcq
The 2014 mcq wrong answer review
Topics most missed reason(26/40)
- Making silly mistakes
- Not reading fully the answer choice and skimming
- Not reading the question fully and again skimming
Wrong Answered Questions
Question 4
Correct Answer: C
Reason: I was being careless and forgot that both variables are integers so when you divide them it will stay an Integer. Next time I will read more carefully since this is a completely avoidable mistake.
Question 8
Correct Answer: B
Reason: I was again being careless and misread the code forgetting about the constructor with no parameters required.
Question 10
Correct Answer: B
Reason: I was a bit silly here since I forgot how if there is no target within data and we try searching for it it will never be found and it will be a stack overflow error likely.
Question 12
Correct Answer: C
Reason: I again misread the code and forgot to see the index of 1 which was the starting value of the for loop.
Question 15
Correct Answer: A
Reason: I again was being not very intelligent when I misread the last possible or end bound value for the index in the forloop as it does k+1 which will throw an out-of-bounds error for option 2.
Question 16
Correct Answer: C
Reason: I was again being a bit silly since I forgot that the -1 of that index will make it the end of the first part and mess up the combined array.
Question 19
Correct Answer: D
Reason: I had misread the answer choice since there is an or operator in between the 2 conditions so I should definitely reading better.
Question 21
Correct Answer:B
Reason: I again was being very rushed/misreading the answer choice and forgot that it said minDiff not value which is what we want.
Question 23
Correct Answer: B
Reason: This one was actually a bit tricky but I believe it is because it still adds it to the end of the list.
Question 24
Correct Answer: D
Reason: I got the correct new Array but for some reason though of it as 2,0 as the index we want and swapped it accidentally.
Question 30
Correct Answer: C
Reason: I misread again and forgot the +1 at the beginning of the first subtring.
Question 31
Correct Answer: C
Reason: I completely ignored the mystery function being called and rushed to click the answer where the array was unchanged.
Question 34
Correct Answer: B
Reason: I forgot that the variables X and Y in the point class are private and need the setter methods being called to update them, which is again a super silly mistake.
Question 40
Correct Answer: C
Reason: I forgot that recursion would cause it to print the result at the child most recursive call first and then backtrack to the first call to print it out.