Section II practice: Quiz score tracker

Answer the four prompts about the program below, as you would about your own Create task on exam day. 60 minutes. Short, specific answers that point to the code score best.

0 words
Program design, function and purpose

Identify the expected users of this program. Describe one way the program's design meets a need of these users.

Algorithm development

Consider the selection statement in the procedure countPassing. Identify the Boolean expression it uses, and describe what the procedure does when the expression evaluates to true and when it evaluates to false.

Errors and testing

Suppose a programmer accidentally replaced ≥ with > in the procedure. Describe a call to countPassing, with specific argument values, that would show the error. Give the result the call should return and the result it would return with the error.

Data and procedural abstraction

Suppose the class grows from 30 students to 300. Explain whether the code segment that uses classScores to compute the average would need to change, and why.

Frequently asked questions

How should I use this page?

Read the program and its PPR, press Start for a 60-minute timer like the exam, and answer the four prompts. Then press Finish to check your answers against the checklists and the sample answers.

Can I use my own Create task code?

The prompts are written for the sample PPR on this page, but you can practice the same questions on your own program: answer them about your procedure and your list, then check your answers with the same checklists.

Written by CodeUtility in the style of the exam; not College Board questions. AP is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this site.