CB Quiz Corrections
- Here are the questions that I got wrong / Quiz Corrections
- Q6
- The correct answer is C instead of B because Program I correctly moves the robot to the gray square by repeatedly moving the robot forward, rotating left, moving forward twice, and rotating right.
- Q15
- The correct answer is A instead of B because both programs print the integer values starting at 1 and counting upward to 10.
- Q16
- The correct answer is D instead of A because the loop begins at the end of the list and moves to the start of the list, so index should be decremented, not incremented.
- Q20
- The correct answer is A instead of D because the two line graphs are roughly the same shape, indicating that the average amount of data stored per user remained about the same across all eight years.
- Q21
- The correct answer is B instead of A because the files that are up to 1 MB represent 17% + 24% + 25%, or 66%.
- Q22
- The correct answer is D instead of C because this code segment simulates a spinner in which there is a 6/8 chance of “Lose a turn”, a 1/8 chance of “Move 2 spaces”, and a 1/8 chance of “Move 1 space”.
- Q23
- The correct answer is D instead of A because this expression would be equivalent to an algorithm that sets available to true whenever weekday is true or miles is less than 20.
- Q28
- The correct answer is B instead of D because code segment II assigns the initial value of alpha to temp, then assigns the initial value of alpha to beta. The initial value of alpha, which has been stored in temp, is then assigned to beta.
- Q30
- The correct answer is D instead of B because if n is initially 20, then the first IF condition will be true and n will be incremented by 1. The next IF condition will also be true because n is at least 1. The next IF condition will be false because n is less than 30. The next IF condition will be true because n is at least 10. Therefore, “in range” will be displayed.
- Q34
- The correct answer is C instead of A because in this code segment, the first call to BotMover moves the robot forward one square, rotates it right one time so that it faces right, and moves it forward one square.
- Q39
- The correct answer is C instead of B because making this change to the loop will cause the loop to terminate when i is 10, which does not fix the problem with the program.
- Q41
- The correct answer is C instead of A because it will first call TrimLeft to remove the eleven leftmost characters (the date tag).
- Q45
- The correct answer is D instead of B because in this code segment, the variable flip is assigned one of four values: 0, 1, 2, or 3.
- Q50
- The correct answer is D instead of B because algorithm I accesses elements 2n times (twice for each of n elements), which is considered reasonable time.
- Q56
- The correct answer is D instead of B because version I calls GetPrediction once for each element of idList, while version II calls GetPrediction twice for each element of idList (plus one more time at the end).
- Q58
- The correct answer is C instead of A because for this set of inputs, the IF condition x = y evaluates to false, so the body of the ELSE statement is executed.
- Q60
- The correct answer is D instead of A because for example, assume that list1 contains [10, 10, 20, 30, 40, 50, 60] and list2 contains [20, 20, 40, 60, 80]. The first line of code creates bothList, which contains [10, 10, 20, 30, 40, 50, 60, 20, 20, 40, 60, 80].
- Q62
- The correct answer is A&B because since x OR y evaluates to true, the body of the IF statement is executed. Since x is true, true is displayed.
- Q63
- The correct answer is A&B because in order to perform the desired calculation, the selling price, the genre, and the quantity available are needed. The author is not needed.
- Q64
- The correct answer is B&D because for these values, the procedure repeatedly adds 2 to result five times, resulting in the intended product 10.
- Q65
- The correct answer is B&C because this code segment stores the substring “lope” in animal. It then concatenates “lope” and “a”, storing the result “lopea” in animal.
- Q66
- The correct answer is A&C because this line should be removed. The variable count should increase by 1 when currentNum is a perfect number, so it should only be incremented in the body of the IF statement.
- Q67
- The correct answer is A&C because for this code segment, count is increased to 1 the first time “maple” is encountered in the list.
What I felt challenging
- The questions that I felt that were challenging are the questions that you need to choose 2 answers.
- Those questions I got wrong the most because I always second second guess the answer that I put, which caused those questions wrong.
What have I learned
- What I felt that is challenging during the MCQ was when I saw the topics and questions that I was not really familiar with, I struggled with them and wasted a lot of time just on that one question.
- So in the future, I will think fast and think more concisely.
What have I discovered
- I found that there are still countless things that are waiting for me to discover because, throughout the entire quiz, there are so many questions that I don’t know what to choose.
- Second guesses often gets you wrong.