ITPEC FE Morning October 2022 Question 50

In eXtreme Programming (XP), which of the following is advocated as a practice?

Explanation

Pair programming — one of the XP practices: two programmers write code together at one workstation.

One programmer (the driver) types, while the other (the navigator) reviews each line as it is written and thinks about the design, and they swap roles often. Defects are caught the moment they are made, and knowledge of the code spreads through the team. Other XP practices include test-driven development, refactoring, continuous integration, small releases, simple design and collective code ownership.

Answer (b)

Why not others:

  • •(a) Inspection — a formal review meeting with prepared checklists and roles; XP replaces it with continuous review by the pair
  • •(c) Structured design — the top-down functional decomposition used in traditional waterfall development, not an XP practice; XP favours simple design refined by refactoring
  • •(d) Use case utilization — use cases come from UML-based methods such as the Unified Process; XP captures requirements as short user stories

Key rule: XP practices keep feedback continuous at the level of code: pair programming, test first, refactoring, continuous integration and small, frequent releases.

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.