Evidence of Final Taken:

I got a 48 out of 50 on the final, which was a MUCH higher score than I expected to get. I will be going over the questions that I got wrong and attempt corrections, as well as going over questions that I guessed and still don't understand.

Screenshot 2022-11-08 104827

Strengths and Weaknesses:

Strengths:

  • Strong knowledge of Collaboration, the Internet, and other mostly conceptual questions
  • Decent arithmetic and logic skills to solve many code segments

Weaknesses:

  • Need more practice and understanding of both complex lists and binary
  • Take more time reading the code segments to fully understand the algorithms at play

Corrections for Incorrect Questions:

Question 1: Behavior of code that multiplies inside a loop

Screenshot 2022-11-08 105145

I got this question wrong because I incorrectly assumed that the code segment used a double multiplication algorithm. In reality the repeat function combined with the multiplication statement means that an exponent should be used in the formula. 2 (5 5 5) = 2 (5^3)

Question 35: Set maxPS based on time

Screenshot 2022-11-08 110503

I got this question wrong because I incorrectly chose C as one of the options, which assigns maxPS the value 50 when time > 120 and assigns maxPS the value 30 otherwise. This does not set the maxPS based on time. The A option has the correct code segment that sets maxPS to 50, then uses the IF statement to set maxPS to 30 when time > 120.

Corrections for Misunderstood Questions:

There are still questions that I didn't understand, but still answered correctly. I went back to these questions to strengthen my learning further.

Question 13: Test cases for allPositive in a list

Screenshot 2022-11-09 205836

I got this question right because I simply assumed that positive integer list errors are usually caused by a negative one. I didn't know the full reasoning behind my answer, and I now understand that the procedure returns true when it should return false because the list does not contain only positive values.

Question 22: Decimal value not equal to given binary values

Screenshot 2022-11-09 210204

I got this question right by just guessing, and I don't have the fullest grasp of binary arithmetic yet. Studying the question again, I now understand that in the most basic form of binary, Binary 0011 is equivalent to 2^1+2^0, or decimal 3. Binary 0110 is equivalent to 2^2+2^1, or decimal 6. Binary 1111 is equivalent to 2^3+2^2+2^1+2^0, or decimal 15. This is why Decimal 9 is the correct answer.

Question 42: Value of sum after IF ELSE IF

Screenshot 2022-11-10 002741

I got this question right by using incorrect math. I assumed that num3 was ignored and replaced with num2, but I didn't fully understand the other argument shown. Since num2 ≥ num3 evaluates to true, the body of the second IF block is executed and num1 is assigned the value 8. Lastly, sum is assigned the value of 8 + 4 + 4, or 16.

Question 45: Values of counts after traversing theList

Screenshot 2022-11-10 003345

I got this question right by just guessing, and I didn't really process how theList values communicated with the If/Else statemment in this code segment. I realized that before addition is preformed, the code segment first iterates through each element in the list, incrementing count1 for each positive value and incrementing count2 otherwise. The list only contains two positive values, so count1 is 2 and count2 is 3.