Practice - Lecture 21: Classification of Cohesion - Understanding Module Strength
Practice Questions
Test your understanding with targeted questions
Define cohesion in software design.
💡 Hint: Think about the relationships among functions in a module.
What is functional cohesion?
💡 Hint: Consider what the term 'function' implies in programming.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What defines high cohesion in a software module?
💡 Hint: Consider what it means for a module to have a focused purpose.
True or False: Coincidental cohesion is the best type of cohesion.
💡 Hint: Think about the effectiveness of modules that are randomly organized.
Get performance evaluation
Challenge Problems
Push your limits with advanced challenges
Consider a shopping cart module with the following functions: AddItem(), RemoveItem(), ApplyDiscount(), and ClearCart(). Discuss the cohesion of this module and suggest improvements.
💡 Hint: Think about how separating tasks might enhance clarity.
You encounter a module RandomTasks() containing a function PrintReport(), SaveFile(), and UpdateDatabase(). What type of cohesion does this present, and how would you redesign it?
💡 Hint: Look for ways each function could belong to a focused purpose.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.