Journey, Learning, & Discovery
General Reflection
What went well:
I am significantly more confident in other computer science term/knowledge-based questions, as not only are those questions more intuitive-based, but I also have been learning those more recently through this Trimester’s Team Teaches. So I think I did well for the most part regaring those questions.
What could have gone better:
I feel that I am most in need of improving with the questions that involve code of some kind. I am less confident with these coding questions, as I’ve generally had signficantly less experience in that field, compared to essential computer science knowledge especially. Most coding I do involves side-by-side research and learning from sources such as Khanacademy or even ChatGPT.
Plans for future growth:
I plan to practice the exam and extend my knowledge further by studying this test’s results more, continuing AP CSP studies, and researching and practicing more of this content online through various sources (ex: watching YouTube videos about the exam content).
Corrections
Each number listed before the question for each correction represents the same corresponding question on the MCQ that I got wrong. An image of answer choices is provided for each question indicating what I got wrong and what the correct answer is. I then follow with a correction to explain in some context what I got wrong/why.
Q1.
Correction: My answer would be the result if the loop header was changed to REPEAT 3 TIMES.
Q3.
Correction: My answer code segment would actually instead produce the output “red red red blue red red red blue”.
Q10.
Correction: My answer code segment initially sets cost to 6, then increases cost by 2 for people who are either going on a guided tour or whose age is greater than 12. Because of the ELSE statement, the cost is not properly set for people who are both older than 12 and going on a guided tour.
Q11.
Correction: The binary RGB triplet for light yellow is (11111111, 11111111, 11100000).
Q16.
Correction: Inserting the statement I chose between lines 6 and 7 means that index is only decremented when an occurrence of “the” or “a” is found. Instead, index should be decremented after each element is checked.
Q37.
Correction: This code segment I chose will instead draw four line segments: one with endpoints (2, 6) and (8, 6), one with endpoints (2, 6) and (8, 4), one with endpoints (2, 6) and (8, 2), and one with endpoints (2, 6) and (8, 0).
Q39.
Correction: Making this change I chose to the loop will cause the loop to terminate when i is 10, which does not fix the problem with the program.
Q50.
Correction: Algorithm I accesses elements 2n times (twice for each of n elements), which is considered reasonable time. Algorithm II accesses n2 elements (n times for each of n elements), which is considered reasonable time.
Q56.
Correction: Basically 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). So version II takes more than 1 minute longer than version I.
Q58.
Correction: Wrong. For this set of inputs, the IF condition x = y evaluates to false, so the body of the ELSE statement is executed. The expression y = z evaluates to false, so false is returned as intended.
Q59.
Correction: I don’t know how I got this one wrong. I should have went with my gut. Open-source software IS typically free or low-cost.
Q60.
Correction: As an example for the answer, we’re gonna 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]. The second line of code creates uniqueList, which contains [10, 20, 30, 40, 50, 60, 80]. The third line of code assigns to count the length of bothList (12) minus the length of bothList (7), producing the incorrect result which is 5.
Q62.
Correction: Since x OR y evaluates to true, the body of the IF statement is executed. Since x is true, true is displayed. That shows what I got wrong: the input statement x OR y pretty much contradicts displaying x AND y.
Q65.
Correction: This code segment stores the substring “lope” in animal. It then concatenates “a” and “lope”, storing the result “alope” in animal. Lastly, it concatenates the substring “jack” and “alope”, storing the result “jackalope” in animal.
Q66.
Correction: 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