Pair programming in AP Computer Science Principles

Pair programming is a collaborative development model in which two programmers work at the same workstation, one writing code (the driver) while the other reviews it in real time (the navigator). In AP CSP, it's the named example of how groups develop computing innovations together (Topic 1.1).

Verified for the 2027 AP Computer Science Principles examLast updated June 2026

What is pair programming?

Pair programming is exactly what it sounds like. Two programmers sit at one computer. One person, often called the driver, types the code. The other, the navigator, watches the screen, catches errors as they happen, and thinks about the bigger picture. The roles swap regularly, so both people stay engaged and both understand every line.

Why bother? Because the navigator catches bugs the moment they're typed instead of days later, and because two people with different perspectives write better code than one person alone. That second point is the one the CED cares about most. Effective collaboration produces a computing innovation that reflects the diversity of talents and perspectives of the people who built it, and including diverse perspectives helps avoid bias in the final product. Pair programming is the CED's go-to example of a structured model that makes that kind of collaboration actually happen.

Why pair programming matters in AP® Computer Science Principles

Pair programming lives in Unit 1: Creative Development, Topic 1.1 (Collaboration), and it's named directly in the essential knowledge for learning objective AP Comp Sci P 1.1.B, which asks you to explain how computing innovations are developed by groups of people. The CED says it plainly: common models such as pair programming exist to facilitate collaboration.

It also connects to AP Comp Sci P 1.1.A (collaboration improves computing innovations, partly by bringing in diverse perspectives that reduce bias) and AP Comp Sci P 1.1.C (effective teams practice interpersonal skills like communication, consensus building, conflict resolution, and negotiation). Pair programming is where all three of those objectives show up in one concrete practice. If a question asks for a real example of collaboration in software development, this is the answer the exam expects.

How pair programming connects across the course

Collaboration (Unit 1)

Pair programming is one specific model under the bigger umbrella of collaboration. The topic guide covers why teams beat solo developers; pair programming is the how, a concrete structure that forces two sets of eyes onto every line of code.

Interpersonal Skills (Unit 1)

Sitting two people at one keyboard only works if they can communicate, negotiate, and resolve conflict. AP Comp Sci P 1.1.C lists these skills, and exam questions love scenarios where a pair partner dismisses ideas or dominates the keyboard and you have to pick the constructive fix.

Computing Innovations and Bias (Unit 1)

The CED says diverse perspectives in development help avoid bias in computing innovations. Pair programming bakes a second perspective into the process itself, which is why scenario questions pair it with products like a navigation app for visually impaired users.

Online Collaboration Tools (Unit 1)

The same essential knowledge that names pair programming also covers online tools that let programmers share documents and give feedback. Think of them as two flavors of the same idea, with pair programming being synchronous and side-by-side while online tools support feedback across time and distance.

Is pair programming on the AP® Computer Science Principles exam?

Pair programming shows up in multiple-choice questions, usually in scenario form rather than as a bare definition. Expect stems like a team building an app for a specific user group and a question about how pair programming specifically improves that innovation (the answer ties back to real-time review, shared knowledge, and diverse perspectives). You'll also see interpersonal-skills scenarios, like a partner who interrupts and dismisses ideas, where you pick the most constructive response, or a team where junior developers stay quiet when paired with seniors and you choose the modification that fixes the imbalance (hint: rotating roles or pairing peers). Watch for NOT questions too, where one answer choice is a made-up benefit. There's no FRQ on pair programming itself, but the Create performance task asks you to document collaboration, so knowing this model helps you describe your own process accurately.

Pair programming vs Code review

Both involve a second programmer checking someone's code, but the timing is different. In pair programming, the review happens live, in real time, while the code is being typed. A code review happens after the code is written, when a teammate reads it and leaves feedback. The CED's online collaboration tools (sharing documents, giving feedback) fit the code-review style; pair programming means two people, one workstation, same moment.

Key things to remember about pair programming

  • Pair programming means two programmers share one workstation, with one writing code while the other reviews it in real time, and the roles regularly swap.

  • It is the collaboration model named explicitly in the AP CSP CED under learning objective AP Comp Sci P 1.1.B, which covers how groups of people develop computing innovations.

  • The big benefits the exam expects you to know are immediate error-catching, knowledge sharing between partners, and bringing diverse perspectives into the code, which helps avoid bias.

  • Pair programming only works with strong interpersonal skills like communication, consensus building, conflict resolution, and negotiation (AP Comp Sci P 1.1.C).

  • Exam questions usually present a team scenario and ask how pair programming improves the innovation or how to fix a collaboration problem, not just what the term means.

Frequently asked questions about pair programming

What is pair programming in AP Computer Science Principles?

Pair programming is a collaboration model where two programmers work at one workstation, with one typing code while the other reviews it in real time. It's named in the CED's essential knowledge for Topic 1.1 as a common model that facilitates collaboration.

Does pair programming mean each person writes half the code separately?

No. That's just dividing up the work. In pair programming, both people work on the same code at the same time and the same screen, with one driving the keyboard and the other navigating and reviewing. Splitting tasks and merging later is a different collaboration approach.

How is pair programming different from using online collaboration tools?

Pair programming is synchronous and shared, two people on one workstation at the same moment. Online tools like shared documents support asynchronous feedback, where teammates review and comment on each other's work separately. The CED lists both as ways groups develop computing innovations.

Is pair programming on the AP CSP exam?

Yes, as multiple-choice material. It appears in the essential knowledge for learning objective AP Comp Sci P 1.1.B, and exam questions typically give you a team scenario and ask how pair programming improves an innovation or how to handle a collaboration problem within a pair.

Why does pair programming help avoid bias in computing innovations?

The CED states that collaboration including diverse perspectives helps avoid bias in computing innovations. Pair programming guarantees at least two perspectives shape every line of code, so blind spots one programmer would miss alone, like accessibility issues in an app for visually impaired users, are more likely to get caught.