This set of Multiple Choice Questions (MCQs) covers important concepts of Software Engineering, including cohesion, coupling, modular design, and reliability metrics. Useful for GATE and IBPS IT Officer exams.
Topic: Software Engineering (Cohesion & Coupling) | Set: 1
Difficulty: Easy to Medium | Total Questions: 15
Software Engineering Cohesion & Coupling MCQ
Q1. Temporal cohesion means:
A. Cohesion between temporary variables
B. Cohesion between local variables
C. Cohesion with respect to time
D. Coincidental cohesion
View Answer & Explanation
Answer: C
Explanation: Elements are grouped because they are processed at the same time (e.g., initialization).
Q2. Functional cohesion means:
A. Operations in one procedure
B. Operations in multiple procedures
C. Multiple tasks
D. All of the above
View Answer & Explanation
Answer: A
Explanation: Strongest cohesion where all elements contribute to one task.
Q3. Instructions related through flow of control belong to:
A. Temporal
B. Logical
C. Procedural
D. Functiona
View Answer & Explanation
Answer: C
Explanation: Procedural cohesion follows a specific execution sequence.
Q4. Most desirable form of coupling:
A. Control
B. Data
C. Common
D. Content
View Answer & Explanation
Answer: B
Explanation: Data coupling shares only necessary data.
Q5. A “module” refers to:
A. Functions
B. Procedures
C. Subprograms
D. All of the above
View Answer & Explanation
Answer: D
Explanation: Module is any independent unit of logic.
Q6. Goal of high cohesion:
A. Increase dependency
B. One specific task
C. Access global data
D. Harder code
View Answer & Explanation
Answer: B
Explanation: High cohesion ensures focus and independence.
Q7. Low coupling means:
A. High dependency
B. Minimal interaction
C. Single unit
D. No communication
View Answer & Explanation
Answer: B
Explanation: Reduces ripple effects of changes.
Q8. Cohesion based on shared data:
A. Logical
B. Communicational
C. Temporal
D. Sequential
View Answer & Explanation
Answer: B
Explanation: Functions operate on same data.
Q9. Sharing global data is:
A. Data
B. Stamp
C. Common
D. Content
View Answer & Explanation
Answer: C
Explanation: Common coupling uses shared global data.
Q10. One module controls another:
A. Control
B. Data
C. External
D. Content
View Answer & Explanation
Answer: A
Explanation: Control coupling passes control flags.
Q11. Coincidental cohesion is:
A. Best
B. Worst
C. Better than functional
D. High coupling
View Answer & Explanation
Answer: B
Explanation: No meaningful relation between elements.
Q12. “Print all reports” is:
A. Logical
B. Functional
C. Temporal
D. Sequential
View Answer & Explanation
Answer: A
Explanation: Logical cohesion groups by category.
Q13. NOT a reliability metric:
A. MTTF
B. Coupling
C. Failure Probability
D. Failure Rate
View Answer & Explanation
Answer: B
Explanation: Coupling is a design metric.
Q14. High coupling ______ maintainability:
A. Increases
B. Decreases
C. No effect
D. Improves
View Answer & Explanation
Answer: B
Explanation: Makes system rigid and harder to change.
Q15. Sequential cohesion means:
A. Time-based
B. Output-input chain
C. Global variable
D. Logical similarity
View Answer & Explanation
Answer: B
Explanation: Output of one element becomes input of next.
Conclusion
These MCQs help you understand key concepts of cohesion and coupling, which are essential for software design and architecture. Practice regularly for GATE and IBPS IT Officer exams.
For detailed theory and understanding of concepts, refer to Coupling and Cohesion Software Engineering.