AP CSP Day 36: Program Documentation

Big Idea 1
Day 36 Practice
Focus: Program Documentation

Practice Question

Which comment provides the MOST useful documentation?
count ← 0
Why This Answer?

Comment C explains the PURPOSE and CONTEXT - what count represents and why we're tracking it. Good documentation explains why, not just what.

Why Not the Others?

A) Merely restates the code.

B) Generic - doesn't explain what's being counted.

D) Too vague to be useful.

Common Mistake
Watch Out!

Writing comments that just repeat what code does. Comments should explain WHY and provide context.

AP Exam Tip

Best comments explain purpose, assumptions, and non-obvious behavior - not just code repetition.

Keep Practicing!

Daily practice builds AP CSP mastery.

Study Guide Get Tutoring
Back to blog

Leave a comment

Please note, comments need to be approved before they are published.