Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
27.3.6. Adapter Pattern
This section
Practice test
11 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
3 cards from this lesson. Good the night before a test.
Try these first
- 1.
What is the primary function of the Adapter Pattern?
Hint
Think about how you'd connect two different types of plugs.
- 2.
True or False: The Adapter Pattern modifies existing code.
Hint
Consider the role of an adapter in mechanical devices.
- 3.
What does the Adapter Pattern allow?
- Integration of legacy and modern systems
- Fast implementation of new features
- High performance execution
Hint
Think about connecting systems with different requirements.
- 4.
True or False: An adapter can change the functionality of the original class.
- True
- False
Hint
Consider the role of an interface in translation.
- 5.
Develop an adapter for a modern data source API that needs to communicate with a legacy database system that uses different data formats.
Hint
Think about how you will map fields from one schema to another.
- 6.
Critique a given application that uses the Adapter Pattern. Identify strengths and weaknesses.
Hint
Evaluate how adapters are utilized throughout the application.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
1 more question available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting