Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →

AP Computer Science Principles Written Response Practice

126 Written Response 2 questions written in the AP format. Pick one, read all three prompts, and write about your program.

Your first scored response is included. A plan unlocks unlimited scoring.

New to the Written Response? Read the exam guide

all units
unit 1
unit 2
unit 3
unit 4
unit 5

126 questions

sorted by unit

Test and explain a greeting-program prototype

Unit 1: Creative Development

Teacher? Assign this question to a class

start this question

Early-unit written response practice: three short tasks using a supplied example program. This adapts tracing, testing, and data reasoning from the written-response task family. It does not assess the full Create/PPR requirements for lists, iteration, or student-developed procedures. No personal project, code file, or video is required.

A school club wants a sign-in kiosk to display a greeting containing the visitor’s entered name. The following program is its prototype. INPUT reads the entered text, ← assigns a value to a named variable, + joins text, and DISPLAY shows text on the screen. The visitor enters Maya.

</>TEXT
name ← INPUT()  
message ← "Hello, " + name  
DISPLAY(message)  
A.

Describe the sequence of actions the program performs and identify its displayed output for the supplied input.

B.

Propose a different name as test input and state the exact expected output. Explain how this test checks the kiosk’s stated design requirement.

C.

Suppose the first line is changed to name ← "Maya" so that it no longer reads input. Explain one limitation this change would create for visitors other than Maya and why the original input variable avoids that limitation.

What the Written Response asks

Written Response 2 is the second of two written-response questions on the AP Computer Science Principles exam. Its three prompts ask about your Create program: how an algorithm works, how errors and testing play out, and how your list and procedure manage complexity.

60 min
for both written responses
3 points
across prompts A to C
30%
of your score, for the whole Create task
  1. Part A: Algorithm development

    How an algorithm or loop in your procedure works

    1 pt

  2. Part B: Errors and testing

    A test, an error, or a code change and what it does to your program

    1 pt

  3. Part C: Data and procedural abstraction

    How your list or procedure manages complexity in your program

    1 pt

How Written Response practice works

Each question follows the exam’s format, from the full prompt to a score on every part.

  1. Read the full question

    All three prompts, A to C, with a place to paste your program code or generate sample code to practice with.

  2. Write on a 30-minute timer

    Half of the 60-minute written-response section. Pause it or turn it off, and your response saves as you go.

  3. Submit for a score out of 3

    Your response is scored against the scoring guidelines written for that question. Your first score is included.

Feedback on every part

A summary at the top tells you what to work on next. Below it, each part shows whether you earned the point and what the scoring guidelines were looking for.

Detailed Feedback

Part A: 0/1 point

Did not earn the point. You described the second iteration statement in your procedure (the loop that iterates through the teams array) instead of the first iteration statement. To earn this point, you needed to describe the specific task executed by the first loop in your code (`for (var k = 1; k <= 5; k++)`), which clears the team logos.

Part B: 1/1 point

Earned the point. You provided two distinct calls (`filterTeamsByDivision("Atlantic")` and `filterTeamsByDivision("Invalid")`) and correctly explained how they execute different code segments (the `count < 5` block versus the `if (results == "")` block).

Part C: 1/1 point

Earned the point. You correctly explained that no modifications are needed because the loop uses `teams.length`, which dynamically adjusts to the size of the list.

Detailed feedback on a practice Written Response

Questions about the Written Response

How many responses can I get scored?

You can read every question without a plan. Your first scored response is included. A plan unlocks unlimited scoring.

Do I need my own Create program?

It helps, since the prompts ask about your list, your procedure, and your loops, as they do on the exam. Paste your own program code, or generate sample code to practice with.

How is Written Response 2 different from Written Response 1?

Written Response 1 is a single prompt about your program’s design, function, and purpose. Written Response 2 has three prompts on algorithms, testing, and abstraction.

Are these real College Board questions?

No. We wrote them in the AP format, with the same three prompt categories, and wrote scoring guidelines for each one.

Can I write my answer by hand?

Yes. Switch the editor to handwrite, write on paper, and add a photo of your page.

More AP Computer Science Principles practice

AP Computer Science Principles FRQs

Every FRQ type for AP Computer Science Principles, with practice for each.

AP Computer Science Principles study guides

Unit-by-unit review for the whole course.

Write your first Written Response

Pick one from the list, or let us choose for you.

Teaching AP Computer Science Principles? Assign these Written Responses to your class