title: Final MC Reflection toc: true image: /images/Screen%20Shot%202023-03-06%20at%203.44.53%20PM.png) categories: [] layout

Alt text

Q2: - Correct Answer: A group of cookies stored by the user’s Web browser. - This is the correct answer as the cookies track and collect information about the user. Whilst an IP address is important it does not contain any valuable user information and therefore incorrect.

Q5: - Correct Answer: The company will be able to provide a human representative for any incoming call. - The company is not able to provide a human representative for calls made after business hours and therefore is the least likely benefit. The system will automatically select the department and therefore the customer can not make an incorrect decision.

Q22: - Correct Answer: Grid 1 Only - The robot moves forward to the end of the bottom row, turns right twice, moves forward twice, turns right twice, moves forward until the end of the middle row, turns left twice, moves forward twice, turns left twice, and moves forward until Goal_Reached is true.

Q28: - Correct Answer: A and D - I selected A and B. It can not be B as it only removes the first two characters. It is D as it links the first 2 and last 2 characters, assigning the result to a new string.

Q29: - Correct Answer: False, False, False - The Fourth Statement assigns false to A and the Fifth Statement assigns false to C. This is due to the fact that the initial three statements assign values to the variables, followed by the fourth statement that assigns the value of (NOT (a OR b)) AND c to variable a, resulting in a false value due to a OR b being true, followed by the fifth statement assigning c AND a to variable c, which also results in a false value since a is false, with the final three statements displaying the values of the variables.

Q34: - Correct Answer: D - This is the case as the robot needed to rotate right instead of left after the 2 blocks and therefore can not be C.

Q39: - Correct Answer: A - This is the case as Answer B causes the count to be double the value. Misclicked on the wrong answer.

Q40: - Correct Answer: D - No change is needed as the given code works fine. My answer was wrong as it moved the robot off the grid. Should have looked at the specific code provided more carefully.

Q42: - Correct Answer: B: Needs to be Sorted. - This is the case as binary search needs the list to be ordered. It should not matter whether it has duplicates.

Q50: - Correct Answer: A and D - This is the case as answer B causes the list to grow exponentialy and therefore is unreasonable. Alogirthm D represents polynomial efficiency and therefore allows the program to run in a reasonable amount of time.