Professional Documents
Culture Documents
OOD Principles Questions
OOD Principles Questions
1. Which of the following is NOT one of the four principles used to guide component-level design?
a. Parsimonious Complexity Principle
b. Dependency Inversion Principle
c. Open Closed Principle
d. Interface Segregation Principle
2. Which of these criteria are useful in assessing the effectiveness of a particular design notation?
a. Maintainability
b. Modularity
c. Simplicity
d. All The above
6. Go through the below code snippets, and identify which design principle is violated and rewrite the
code using that specific design principle
namespace SolidPrinciples
{
public class BankAccount
{
private string accountNumber;
private double amount;
7. Go through the below code snippets, and identify which design principle is violated and rewrite the
code using that specific design principle
Violates:
Corrected Code:
Feedback:
Incorrect
Answers:
Date:
Score: