Which design pattern establishes a one-to-many relationship between objects, ensuring that when one object changes, all its dependents are updated?

Design and Implementation MCQs for PPSC, FPSC, NTS, and Pakistan government job tests. Select an option below, then read the explanation.

PPSCFPSCNTSPakistan govt jobs
Subject
Design and Implementationsoftware-engineering-mcqs › design-and-implementation
Published
5 Feb 2019
Last updated
28 May 2026

Browse all Design and Implementation MCQs

Choose the correct answer

Explanation

The Observer pattern creates a one-to-many dependency between objects, so that when one object's state changes, all its dependent objects are automatically notified and updated.

PakQuizHub — free MCQs and past papers for Pakistan government job tests. Content is for educational practice only.