Design Principles interview questions

21 real Design Principles questions from the Design Patterns bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Composition over inheritance?

Junior
  1. A.the property where the elements inside a single module belong together and serve one well-defined purpose
  2. B.the guideline that favors assembling behavior by holding references to other objects rather than extending a base class
  3. C.the principle of least knowledge stating an object should only talk to its immediate collaborators and not reach through them
  4. D.the guideline of depending on an abstraction or contract rather than a concrete implementation type
Reveal the answer + AI explanation — free account

2. Which term means: "the guideline that favors assembling behavior by holding references to other objects rather than extending a base class"?

Junior
  1. A.Program to an interface
  2. B.Composition over inheritance
  3. C.DRY
  4. D.Loose coupling
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Composition over inheritance — the guideline of depending on an abstraction or contract rather than a concrete implementation type
  2. B.Composition over inheritance — the principle of least knowledge stating an object should only talk to its immediate collaborators and not reach through them
  3. C.Composition over inheritance — the guideline that favors assembling behavior by holding references to other objects rather than extending a base class
  4. D.Composition over inheritance — the property of a system where components have little knowledge of and minimal dependence on each other's internals
Reveal the answer + AI explanation — free account

4. What is Program to an interface?

Junior
  1. A.the principle of dividing a program into distinct sections, each addressing a separate responsibility or feature
  2. B.the principle that every piece of knowledge should have a single authoritative representation, avoiding duplication
  3. C.the property of a system where components have little knowledge of and minimal dependence on each other's internals
  4. D.the guideline of depending on an abstraction or contract rather than a concrete implementation type
Reveal the answer + AI explanation — free account

5. Which term means: "the guideline of depending on an abstraction or contract rather than a concrete implementation type"?

Junior
  1. A.Composition over inheritance
  2. B.Separation of concerns
  3. C.Program to an interface
  4. D.Law of Demeter
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Junior
  1. A.Program to an interface — the property of a system where components have little knowledge of and minimal dependence on each other's internals
  2. B.Program to an interface — the guideline of depending on an abstraction or contract rather than a concrete implementation type
  3. C.Program to an interface — the principle that every piece of knowledge should have a single authoritative representation, avoiding duplication
  4. D.Program to an interface — the principle of least knowledge stating an object should only talk to its immediate collaborators and not reach through them
Reveal the answer + AI explanation — free account

7. What is DRY?

Junior
  1. A.the property where the elements inside a single module belong together and serve one well-defined purpose
  2. B.the principle that every piece of knowledge should have a single authoritative representation, avoiding duplication
  3. C.the principle of dividing a program into distinct sections, each addressing a separate responsibility or feature
  4. D.the guideline that favors assembling behavior by holding references to other objects rather than extending a base class
Reveal the answer + AI explanation — free account

8. Which term means: "the principle that every piece of knowledge should have a single authoritative representation, avoiding duplication"?

Junior
  1. A.Loose coupling
  2. B.Composition over inheritance
  3. C.DRY
  4. D.Program to an interface
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Junior
  1. A.DRY — the property where the elements inside a single module belong together and serve one well-defined purpose
  2. B.DRY — the principle that every piece of knowledge should have a single authoritative representation, avoiding duplication
  3. C.DRY — the principle of dividing a program into distinct sections, each addressing a separate responsibility or feature
  4. D.DRY — the guideline that favors assembling behavior by holding references to other objects rather than extending a base class
Reveal the answer + AI explanation — free account

10. What is Separation of concerns?

Junior
  1. A.the principle of dividing a program into distinct sections, each addressing a separate responsibility or feature
  2. B.the guideline of depending on an abstraction or contract rather than a concrete implementation type
  3. C.the property where the elements inside a single module belong together and serve one well-defined purpose
  4. D.the principle that every piece of knowledge should have a single authoritative representation, avoiding duplication
Reveal the answer + AI explanation — free account

11. Which term means: "the principle of dividing a program into distinct sections, each addressing a separate responsibility or feature"?

Junior
  1. A.Composition over inheritance
  2. B.Separation of concerns
  3. C.Loose coupling
  4. D.Program to an interface
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Junior
  1. A.Separation of concerns — the principle of dividing a program into distinct sections, each addressing a separate responsibility or feature
  2. B.Separation of concerns — the property where the elements inside a single module belong together and serve one well-defined purpose
  3. C.Separation of concerns — the property of a system where components have little knowledge of and minimal dependence on each other's internals
  4. D.Separation of concerns — the guideline of depending on an abstraction or contract rather than a concrete implementation type
Reveal the answer + AI explanation — free account

13. What is Loose coupling?

Mid
  1. A.the property of a system where components have little knowledge of and minimal dependence on each other's internals
  2. B.the guideline of depending on an abstraction or contract rather than a concrete implementation type
  3. C.the principle of dividing a program into distinct sections, each addressing a separate responsibility or feature
  4. D.the guideline that favors assembling behavior by holding references to other objects rather than extending a base class
Reveal the answer + AI explanation — free account

14. Which term means: "the property of a system where components have little knowledge of and minimal dependence on each other's internals"?

Mid
  1. A.Composition over inheritance
  2. B.Separation of concerns
  3. C.Law of Demeter
  4. D.Loose coupling
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Mid
  1. A.Loose coupling — the principle that every piece of knowledge should have a single authoritative representation, avoiding duplication
  2. B.Loose coupling — the property where the elements inside a single module belong together and serve one well-defined purpose
  3. C.Loose coupling — the property of a system where components have little knowledge of and minimal dependence on each other's internals
  4. D.Loose coupling — the guideline that favors assembling behavior by holding references to other objects rather than extending a base class
Reveal the answer + AI explanation — free account

16. What is High cohesion?

Mid
  1. A.the principle that every piece of knowledge should have a single authoritative representation, avoiding duplication
  2. B.the property where the elements inside a single module belong together and serve one well-defined purpose
  3. C.the guideline of depending on an abstraction or contract rather than a concrete implementation type
  4. D.the principle of dividing a program into distinct sections, each addressing a separate responsibility or feature
Reveal the answer + AI explanation — free account

17. Which term means: "the property where the elements inside a single module belong together and serve one well-defined purpose"?

Mid
  1. A.Law of Demeter
  2. B.Program to an interface
  3. C.High cohesion
  4. D.Composition over inheritance
Reveal the answer + AI explanation — free account

18. Which statement is correct?

Mid
  1. A.High cohesion — the guideline of depending on an abstraction or contract rather than a concrete implementation type
  2. B.High cohesion — the principle of dividing a program into distinct sections, each addressing a separate responsibility or feature
  3. C.High cohesion — the guideline that favors assembling behavior by holding references to other objects rather than extending a base class
  4. D.High cohesion — the property where the elements inside a single module belong together and serve one well-defined purpose
Reveal the answer + AI explanation — free account

19. What is Law of Demeter?

Mid
  1. A.the principle of dividing a program into distinct sections, each addressing a separate responsibility or feature
  2. B.the principle of least knowledge stating an object should only talk to its immediate collaborators and not reach through them
  3. C.the property of a system where components have little knowledge of and minimal dependence on each other's internals
  4. D.the property where the elements inside a single module belong together and serve one well-defined purpose
Reveal the answer + AI explanation — free account

20. Which term means: "the principle of least knowledge stating an object should only talk to its immediate collaborators and not reach through them"?

Mid
  1. A.Program to an interface
  2. B.Law of Demeter
  3. C.High cohesion
  4. D.Loose coupling
Reveal the answer + AI explanation — free account

21. Which statement is correct?

Mid
  1. A.Law of Demeter — the guideline that favors assembling behavior by holding references to other objects rather than extending a base class
  2. B.Law of Demeter — the principle that every piece of knowledge should have a single authoritative representation, avoiding duplication
  3. C.Law of Demeter — the property where the elements inside a single module belong together and serve one well-defined purpose
  4. D.Law of Demeter — the principle of least knowledge stating an object should only talk to its immediate collaborators and not reach through them
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Design Principles free