Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Online Courses / University Track / Computing Foundations

Module 1 · Practice

Practice set: specifications, algorithms, traces and tests

Quick questions on the whole module, with instant feedback.

  • 35 minutes
  • Instant feedback
  • Unlimited attempts

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. Which is a specification?

P2. An algorithm must be:

P3. Trace “largest so far” on 2, 7, 5, 9. What is the output?

P4. Trace a running total from 0 on 1, 2, 3, 4. What is the output?

P5. Which test best checks a method that returns the smallest number?

P6. A method starts the largest at 0. For -4, -2, -9 it returns:

P7. What does a trace table help you do?

P8. The average of an empty list is a problem because: