Multiple Choice #2 Review

quiz I got a 45/50, missing question 13, 15, 30, 33, and 47.

Question 13

13 The correct answer was D, II and III only, because they have the NOT symbol in front. The person can not be both less than/greater than 18 and 16 so one of them must have the NOT symbol.

Question 15

15 The correct answer was D. This is because on the last move at the top of the map it has to option to either go right or left. If it was accurately following the code then it would choose to rotate to the right before left. In D it chose to go left which is wrong.

Question 30

30 The correct answer would be B and C. The drawCircle would be after assigning the new variables because they are needed to draw the circles correctly. Without these variables the circles can not be drawn.

Question 33

33 The correct answer would be C because for algorithm II they are able to always ensure that the max is found. Algorithm I only works if it is greater than or equal to -1 because they set the current max as -1 so it needs to be greater than that to be the new max.

Question 47

47 The correct answer would be C because this is a problem that needs a lot of time to solve so being able to use heurstics will be able to help. B does not need it because it is based off of math and that can be finished in a reasonable time.