CS FundamentalsHardGATE CS · TCS NQT Prime · Product Company SDE
A subsystem has many complex interacting classes (video codecs, audio mixers, subtitle renderers). Client code just wants a single, simple `playMovie()` call without dealing with that complexity directly. Which pattern provides this simplified, unified entry point?
- A. Chain of Responsibility pattern
- B. Facade pattern
- C. Visitor pattern
- D. Mediator pattern
Correct answer: B. Facade pattern
Facade provides one simplified, higher-level interface over a complex subsystem, hiding its internal classes and their interactions from client code that just wants a straightforward operation.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- Using Basic COCOMO for a embedded mode project (Effort = 3.6 × (KLOC)^1.2 person-months), what is the estimated effort for a 50 KLOC…
- A tester designs test cases specifically to exercise every branch of an if-else statement in the source code. This is an example of:
- A class diagram marks an attribute's visibility with a '#' symbol before its name. What does this denote?
- Which of these is a defining feature of the V-model, distinguishing it from plain waterfall?
- Using Basic COCOMO for a embedded mode project (Effort = 3.6 × (KLOC)^1.2 person-months), what is the estimated effort for a 24 KLOC…
- A 'flaky test' is one that: