ITPEC FE Subject A April 2026 Question 36
ITPEC FE Subject A April 2026 — Question 36 of 60
Adapter — a structural pattern that lets classes with incompatible interfaces work together.
The adapter wraps the existing class and exposes the interface the client expects, translating each call. Nothing on either side has to change, which is what makes it the standard way to reuse a class whose signature does not fit.
Answer (a)
Why not others:
- (b) Factory — a creational pattern; it decides which object to instantiate, not how to bridge interfaces
- (c) Iterator — a behavioural pattern for traversing a collection without exposing its structure
- (d) Singleton — a creational pattern guaranteeing a single instance
Key rule: The question names the category — structural patterns deal with how classes are composed. Of the four options only Adapter is structural, which settles it before the definitions are even compared.
AI-generated — may contain errors
The original exam layout is preserved in the image so diagrams, formulas, tables, and code remain accurate.
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.