TD Tutor
Inappropriate Intimacy Quiz
Reducing Class Coupling
Question
1
of 5
1
What principle does inappropriate intimacy violate?
Law of Demeter
Single Responsibility
Open/Closed Principle
Interface Segregation
Correct!
Incorrect. The correct answer is:
2
How does reducing class coupling help maintenance?
Changes affect fewer components
Easier to test in isolation
Clearer system boundaries
All of the above
Correct!
Incorrect. The correct answer is:
3
What design pattern specifically addresses this smell?
Facade
Proxy
Mediator
All of the above
Correct!
Incorrect. The correct answer is:
4
What is the Law of Demeter also known as?
Principle of Least Knowledge
Single Responsibility Principle
Dependency Inversion Principle
Interface Segregation Principle
Correct!
Incorrect. The correct answer is:
5
Which technique helps reduce inappropriate intimacy?
Dependency Injection
Interface Segregation
Tell, Don't Ask
All of the above
Correct!
Incorrect. The correct answer is:
Previous
Next
Submit Quiz
Quiz Results
0
/5
Back to Tutorial