CS FundamentalsModerateTCS NQT · Infosys pattern
Which combination indicates a good modular design?
- A. Low cohesion and high coupling
- B. High cohesion and high coupling
- C. Low cohesion and low coupling
- D. High cohesion and low coupling
Correct answer: D. High cohesion and low coupling
Each module should do one well-defined job (high cohesion) and depend on others as little as possible (low coupling), so changes stay local.
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
- A function takes two integer inputs, each valid in the range 1–100. Using standard (non-robust) boundary value analysis that varies one…
- What is the cyclomatic complexity of this function? python def grade(m): if m >= 90: return "A" elif m >= 75: return "B" elif m >= 50…
- A developer runs git reset --soft HEAD~1 on a branch. What happens?
- A bad commit has already been pushed to a shared main branch that teammates have pulled. What is the safest way to undo it?
- When does git merge feature (run on main) produce a fast-forward instead of a merge commit?
- A stock-price service must notify every registered display widget whenever the price changes, without knowing the widgets' concrete…