I took this test with the help of Arnav. He had already taken the test but went out of his way to help me and he taught me a lot about certain variables and how to read code in general. As a result, I got a 44/50, the same as him.

Corrections

#21 I did not know how to do this, I put C not knowin anything.I learned to see that loop causes i to be reset to 1 every time, so it can never reach the value of 4. So the correct answer would be D, where the program loops forever.

#23 I originally selected the answer of D, where the count would displayed after every iteration. I did not take into account that the flowchart showed that count would only be displayed if it was over 5, so the correct answer would be A, 5.

#25 Initially I thought it was C because of the infinite loop.However, I missed the fact that j was initially 1, so that 2 would be added on every time to j. This meant that 7 would be a possible value for j, but 6 would not be. So, the correct answer would be j=6, or A.

#28 I got this question wrong because I did not select two options. I was planning to originally select A and C because they both would get the robot to the gray square, but I think I forget to select A. It is important to pay attention to my answers.

#32 I originally selected A for this problem, saying that only program 1 would get the correct answer. However, both programs would get the right answer for the question. I did not realize that the second program segment would add 1 to the program for every 1 in n(1 for 1, 2 for 2, 3 for 3, etc), and then would subtract 1 from n every time. So, this would end up yielding the same result as the other algorithm. This means that C, where both programs work, would be correct.

#45

The sole reason I had no clue how to do this was I did not know the nessary vocab being heuristic. I did not know what heuristic meant, so this taught me a new word. After going over the meaning, I realized that this is good when you cannot get the specific solution to a problem, but can get an approximate one. I originally answered that a heuristic approach would be good for a problem when it could be solved in reasonable time and an approximate solution is needed(A). However, you could solve this by just finding the exact solution, and don’t need trial and error. However, if you don’t know how long it will take for a solution to be found, you can use trial and error(a heuristic approach) to get an approximate solution. So, the answer would be C.

Reflection

Overall, I found these questions very rewarding because they were not incredibly hard where there was no point of doing them but they were not easy where I did not learn anything. It was a good balance between easy and hard. hese hacks were a bit challenging at first but with perserverance I was able to understand the concepts which allowed me to perform the hacks well. The fact I had a person better at coding then me helping me was great and I learned a lot from it. Out of all the tests, I was able to retain a lot more from this one then others. Overall it was good and it helped me become a better coder.

fr