Link to test

Final Score: 44/50

Q1:

Explanation: Option D is correct because it would make the function incorrect as the function would state the z is the largest even though y is larger than z.

Q4:

Explanation: C is incorrect because variables do not affect the amount of storage capacity. Option B would be correct though because someone looking at the code would be able to understand it easier since the variables show a good representation of what the variables are representing.

Q9:

Explanation: Since it says “indexed from 1 to n, the steps must stop at n in order to display all the numbers in the list over 100 and since the list ends at n, the looping must stop at n.

Q11:

Explanation: The value C is true, causing the value that comes out of the or function to not matter regardless of what it is.

Q45:

Explanation: A heuristic is something where you want the problem to be solved as soon as possible and the solution is as close as possible to the right answer.

Q49:

Explanation: There will always be problems that will never be able to be determined by an algorithm. An example of this is determining when a program will stop.