35 minutes. Instant-marked. Unlimited attempts. Each answer is marked as soon as you choose it, with an explanation. Nothing is saved in this course.
P1. Adding 20 numbers needs how many additions?
It is n − 1.
P2. Comparing every pair among 7 items needs:
7 × 6 ÷ 2 = 21.
P3. A linear method costs 300 steps at n = 100. At n = 200 it costs about:
Linear cost doubles.
P4. A quadratic method costs 400 steps at n = 20. At n = 40 it costs about:
Quadratic cost quadruples.
P5. For A = 100n and B = n×n, at n = 100:
Both cost 10,000.
P6. 2 to the power 5 equals:
2 × 2 × 2 × 2 × 2.
P7. Binary search is an example of which growth?
It halves the items each look.
P8. Which is the best question to ask about a method before using it on a large input?
Growth predicts large-input cost.