The last question set of the quarter, and the one that is shaped like the checkpoint. Everything from Activity 2.1 to 2.20 is in scope, weighted the way the exam weights it — algorithms heaviest, then data.
Two things are different about this set. The notation is mixed and not announced, and one question spans three separate topics at once. That is what the checkpoint does too, which is why this arrives first.
Set a timer for 11 minutes. Work them out on paper; do not run the code. Mark each answer sure or unsure. Guess rather than leave a blank.
Do this before the checkpoint, not after. Whatever you get wrong here is your revision list, and the checklist on Activity 2.22 will tell you where to look.
Four have exactly one correct answer, one asks you to select all that apply, and the last is about the impact of computing.
What does this display?
aList ← [5, 10, 15, 20]
PROCEDURE doubleAt(list, i){ RETURN(list[i] * 2)}
DISPLAY(doubleAt(aList, 2))DISPLAY(doubleAt(aList, 4))10 2020 4030 40list[4] is out of boundsA sorted list holds 100 items. What is the greatest number of comparisons a binary search could need to find an item, or determine that it is absent?
Which of these are true?
n cubed runs in a reasonable amount of timen squared steps only if both bounds depend on nWhat does this display?
int count = 5;
Console.WriteLine(Bump());Console.WriteLine(count);
int Bump(){ int count = 0; count = count + 1; return count;}1 then 51 then 66 then 6A 40-character row of pixel data is run through a lossless run-length encoder and comes out as 12 characters. Which statement is best supported?
A mapping service asks its users to report road closures, and uses those reports to reroute other drivers. Gathering contributions from a large group of people this way is called:
Six answers, each marked sure or unsure, plus how far you got when the timer went off. Worth 5 points, graded on completion.