Screenshot 2023-03-07 at 12 46 53 PM

Q33 Correction

Screenshot 2023-03-07 at 2 41 03 PM

B is correct. The loop that repeats four times returns the robot to its starting position. The three lines of code that follow the loop move the robot one row up and leave it facing right. When this has been repeated twice, the robot is in the gray square.

Q40 Correction

image

D is correct. In order for the robot to move from the gray square back to its original position, it must move forward two squares, turn right, move forward four squares, turn left, and move forward two squares. The same set of moves can be used in both directions, so no change is needed to the algorithm.

Q49 Correction

image

B is correct. Simulations are limited by the model that is used. There may be many reasons for using a simplified model, including ease of implementation.