Recall & Review
beginner
What is the principle of Modularity in software engineering?
Modularity means breaking a software system into smaller, independent parts called modules. Each module handles a specific task, making the system easier to understand, develop, and maintain.
Click to reveal answer
beginner
Explain the DRY (Don't Repeat Yourself) principle.
DRY means avoiding duplication of code or logic. Instead of repeating the same code, you write it once and reuse it. This reduces errors and makes maintenance easier.
Click to reveal answer
intermediate
What does the Single Responsibility Principle (SRP) state?
SRP says that each part of a program should have only one reason to change. In other words, a module or class should focus on a single task or responsibility.Click to reveal answer
beginner
Why is Testing important in software engineering?
Testing helps find and fix errors early. It ensures the software works as expected and improves quality and reliability before users see it.
Click to reveal answer
intermediate
Describe the Open/Closed Principle.
This principle means software entities like classes should be open for extension but closed for modification. You can add new features without changing existing code, reducing bugs.
Click to reveal answer
Which principle encourages breaking software into smaller parts?
✗ Incorrect
Modularity is about dividing software into smaller, manageable modules.
What does DRY stand for?
✗ Incorrect
DRY means 'Don't Repeat Yourself' to avoid code duplication.
The Single Responsibility Principle means:
✗ Incorrect
SRP states each module should focus on a single responsibility.
Why is testing done in software engineering?
✗ Incorrect
Testing helps find and fix errors before software release.
The Open/Closed Principle means software should be:
✗ Incorrect
It means software can be extended without changing existing code.
Explain the importance of modularity and how it helps in software development.
Think about how dividing a big task into smaller tasks helps.
You got /4 concepts.
Describe the DRY principle and why avoiding code duplication is beneficial.
Imagine fixing a bug in one place instead of many.
You got /4 concepts.