CS FundamentalsModerateProduct-company MCQ pattern

Match each pattern with its intent. P. Builder Q. Facade R. Proxy S. Strategy 1. Give a simple single entry point to a complex subsystem 2. Construct a complex object step by step, separating construction from representation 3. Swap interchangeable algorithms at run time behind one interface 4. Stand in for another object to control access, add lazy loading or caching

  1. A. P-2, Q-4, R-1, S-3
  2. B. P-2, Q-1, R-4, S-3
  3. C. P-3, Q-1, R-4, S-2
  4. D. P-1, Q-2, R-4, S-3

Correct answer: B. P-2, Q-1, R-4, S-3

Builder = step-by-step construction (2); Facade = simplified front to a subsystem (1); Proxy = surrogate controlling access (4); Strategy = interchangeable algorithms (3). Facade and Proxy are the pair most often swapped.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic