Score: 31/40

image

Glows:

  • understanding object-oriented concepts
  • manipulating arrays
  • methods/interface
  • basic array operations

Grows:

  • missing code in loops and recursions
  • multiple parameter questions
  • class design
  • time and focus, a lot of questions made me blank out, and i was unmotivated near the end to answer the long questions

Goals:

  • Review class design again
  • solve complex boolean expressions
  • practice writing parameters
  • review recursion
  • spend atleast 30 min over the weekend reviewing team teaches / team teach hws / maybe even collegeboard videos

Question Revisions

3

Screenshot 2024-11-19 at 7 35 59 AM the method was made private which wouldnt allow it to modify/connect with others the public getter method ensures controlled access to myC without connectin it directly or allowing modification.

4

Screenshot 2024-11-19 at 7 39 52 AM I thought it would send a decimal although it was integers, so Java would truncate the result, silly me

6

image subtraction wasn’t absolute, so I thought the sign difference would affect the comparison of d1 and d2. the correct answer makes sure the tolerance accounts for the difference regardless of the order of d1 and d2

15

image i didn’t carefully check the loop structure conditins, 1 and 3 correctly iterate and compare the elements and makes sure the array is going in nondecreasing order.

21

image i misunderstood the comparison logic, i incorrectly compared the number to the difference instead of the target value. the correct answer compares the absolute difference between the current number and the target value and then sees which one is closer.

23

image the index adjustments made the elements shifted, which got me wrong. the mainupulation of the list in the correct answer appends k to the new position so it reordered the elements based on the logic

25

image i overlooked seeing if one box fits into another with comparison methods rather than just looking at the dimensions, the correct answer compares the dimensions correctly which is enough for a box to fit in a box

28

image i focused on the behavior of x at point c and didn’t account for the changes to it through the loop, x begins at 1 and increments and it will equal 1 sometimes

38

image i misunderstood the logic, || and &&. the correct answer makes sure x and y are evaluated constantly, and my answer would always put it as true