ITPEC FE Subject A October 2024 Question 40

Among eXtreme Programming (XP) practices, which of the following is adopted to improve program quality in program development through smooth communication between programmers by exchanging their roles and reviewing each other’s work?

Explanation

Pair programming — two programmers share one computer, swapping roles and reviewing each other's code as it is written.

One programmer, the driver, writes the code while the other, the navigator, reviews each line and thinks ahead. They swap roles frequently, so review is continuous, knowledge spreads between them, and defects are caught the moment they are introduced.

Answer (b)

Why not others:

  • •(a) Coding standard — shared rules for naming and layout make everyone's code readable, but involve no role exchange between programmers
  • •(c) Planning game — the customer and developers decide which user stories go into the next release or iteration; a planning practice, not a coding one
  • •(d) Test-driven development — write a failing test first, then the code that passes it, then refactor; it improves quality through tests, not through two people working together

Key rule: In XP: two programmers swapping roles with continuous review = pair programming; test first = TDD; customer choosing stories = planning game.

Software Development Management Techniques · AI-written, may contain errors

This question comes from an official ITPEC past paper. ITPEC Practice is an independent study tool and is not affiliated with ITPEC. See the official FE past-paper collection or Report an issue.