1. What is association ? Junior A. a behavioral pattern where subjects notify a list of dependent observers automatically on state change B. an architecture splitting an application into Model data, View presentation, and Controller logic C. the SOLID rule that software should be open for extension but closed for modification D. a general relationship where one object uses or knows about another, with independent lifetimes Reveal the answer + AI explanation — free account
2. Which term means: "a general relationship where one object uses or knows about another, with independent lifetimes"? Junior A. cohesion B. open-closed principle C. association D. shallow vs deep copy Reveal the answer + AI explanation — free account
3. Which statement is correct? Junior A. association — the degree of interdependence between modules, which good design keeps low B. association — a creational pattern that delegates object creation to a method so callers need not name concrete classes C. association — a general relationship where one object uses or knows about another, with independent lifetimes D. association — the SOLID rule that a subtype must be usable anywhere its base type is expected without breaking behavior Reveal the answer + AI explanation — free account
4. What is aggregation ? Junior A. a general relationship where one object uses or knows about another, with independent lifetimes B. an architecture splitting an application into Model data, View presentation, and Controller logic C. a shallow copy duplicates references to shared sub-objects, while a deep copy clones the entire object graph D. a has-a relationship where the part can exist independently of the whole that contains it Reveal the answer + AI explanation — free account
5. Which term means: "a has-a relationship where the part can exist independently of the whole that contains it"? Junior A. singleton pattern B. aggregation C. factory pattern D. coupling Reveal the answer + AI explanation — free account
6. Which statement is correct? Junior A. aggregation — the SOLID rule that software should be open for extension but closed for modification B. aggregation — a has-a relationship where the part can exist independently of the whole that contains it C. aggregation — supplying an object's required collaborators from outside rather than having it construct them itself D. aggregation — a strong has-a relationship where the part's lifetime is owned by and tied to the whole Reveal the answer + AI explanation — free account
7. What is composition ? Junior A. the degree to which a module's elements belong together, which good design keeps high B. the SOLID rule that software should be open for extension but closed for modification C. a creational pattern that delegates object creation to a method so callers need not name concrete classes D. a strong has-a relationship where the part's lifetime is owned by and tied to the whole Reveal the answer + AI explanation — free account
8. Which term means: "a strong has-a relationship where the part's lifetime is owned by and tied to the whole"? Junior A. composition B. cohesion C. factory pattern D. MVC pattern Reveal the answer + AI explanation — free account
9. Which statement is correct? Junior A. composition — the degree to which a module's elements belong together, which good design keeps high B. composition — a strong has-a relationship where the part's lifetime is owned by and tied to the whole C. composition — the SOLID rule that modules should depend on abstractions, not on concrete implementations D. composition — the SOLID rule that software should be open for extension but closed for modification Reveal the answer + AI explanation — free account
10. What is coupling ? Mid A. a strong has-a relationship where the part's lifetime is owned by and tied to the whole B. the SOLID rule that software should be open for extension but closed for modification C. the degree of interdependence between modules, which good design keeps low D. a has-a relationship where the part can exist independently of the whole that contains it Reveal the answer + AI explanation — free account
11. Which term means: "the degree of interdependence between modules, which good design keeps low"? Mid A. MVC pattern B. coupling C. single responsibility principle D. Liskov substitution principle Reveal the answer + AI explanation — free account
12. Which statement is correct? Mid A. coupling — the degree of interdependence between modules, which good design keeps low B. coupling — a shallow copy duplicates references to shared sub-objects, while a deep copy clones the entire object graph C. coupling — a has-a relationship where the part can exist independently of the whole that contains it D. coupling — a creational pattern that delegates object creation to a method so callers need not name concrete classes Reveal the answer + AI explanation — free account
13. What is cohesion ? Mid A. the degree to which a module's elements belong together, which good design keeps high B. supplying an object's required collaborators from outside rather than having it construct them itself C. a general relationship where one object uses or knows about another, with independent lifetimes D. the SOLID rule that clients should not be forced to depend on methods they do not use Reveal the answer + AI explanation — free account
14. Which term means: "the degree to which a module's elements belong together, which good design keeps high"? Mid A. interface segregation principle B. observer pattern C. cohesion D. coupling Reveal the answer + AI explanation — free account
15. Which statement is correct? Mid A. cohesion — the SOLID rule that clients should not be forced to depend on methods they do not use B. cohesion — an architecture splitting an application into Model data, View presentation, and Controller logic C. cohesion — a shallow copy duplicates references to shared sub-objects, while a deep copy clones the entire object graph D. cohesion — the degree to which a module's elements belong together, which good design keeps high Reveal the answer + AI explanation — free account
16. What is single responsibility principle ? Mid A. an architecture splitting an application into Model data, View presentation, and Controller logic B. the SOLID rule that a class should have only one reason to change C. a general relationship where one object uses or knows about another, with independent lifetimes D. a has-a relationship where the part can exist independently of the whole that contains it Reveal the answer + AI explanation — free account
17. Which term means: "the SOLID rule that a class should have only one reason to change"? Mid A. cohesion B. single responsibility principle C. shallow vs deep copy D. interface segregation principle Reveal the answer + AI explanation — free account
18. Which statement is correct? Mid A. single responsibility principle — a design pattern ensuring a class has exactly one instance with a global access point B. single responsibility principle — the degree of interdependence between modules, which good design keeps low C. single responsibility principle — supplying an object's required collaborators from outside rather than having it construct them itself D. single responsibility principle — the SOLID rule that a class should have only one reason to change Reveal the answer + AI explanation — free account
19. What is open-closed principle ? Mid A. a has-a relationship where the part can exist independently of the whole that contains it B. a behavioral pattern where subjects notify a list of dependent observers automatically on state change C. the SOLID rule that software should be open for extension but closed for modification D. the degree of interdependence between modules, which good design keeps low Reveal the answer + AI explanation — free account
20. Which term means: "the SOLID rule that software should be open for extension but closed for modification"? Mid A. open-closed principle B. coupling C. aggregation D. Liskov substitution principle Reveal the answer + AI explanation — free account
21. Which statement is correct? Mid A. open-closed principle — an architecture splitting an application into Model data, View presentation, and Controller logic B. open-closed principle — the SOLID rule that software should be open for extension but closed for modification C. open-closed principle — a creational pattern that delegates object creation to a method so callers need not name concrete classes D. open-closed principle — a strong has-a relationship where the part's lifetime is owned by and tied to the whole Reveal the answer + AI explanation — free account
22. What is Liskov substitution principle ? Mid A. a shallow copy duplicates references to shared sub-objects, while a deep copy clones the entire object graph B. the SOLID rule that a subtype must be usable anywhere its base type is expected without breaking behavior C. a behavioral pattern where subjects notify a list of dependent observers automatically on state change D. a design pattern ensuring a class has exactly one instance with a global access point Reveal the answer + AI explanation — free account
23. Which term means: "the SOLID rule that a subtype must be usable anywhere its base type is expected without breaking behavior"? Mid A. MVC pattern B. singleton pattern C. Liskov substitution principle D. coupling Reveal the answer + AI explanation — free account
24. Which statement is correct? Mid A. Liskov substitution principle — a has-a relationship where the part can exist independently of the whole that contains it B. Liskov substitution principle — the SOLID rule that a subtype must be usable anywhere its base type is expected without breaking behavior C. Liskov substitution principle — a general relationship where one object uses or knows about another, with independent lifetimes D. Liskov substitution principle — the SOLID rule that modules should depend on abstractions, not on concrete implementations Reveal the answer + AI explanation — free account
25. What is dependency inversion principle ? Mid A. supplying an object's required collaborators from outside rather than having it construct them itself B. the SOLID rule that software should be open for extension but closed for modification C. a general relationship where one object uses or knows about another, with independent lifetimes D. the SOLID rule that modules should depend on abstractions, not on concrete implementations Reveal the answer + AI explanation — free account
26. Which term means: "the SOLID rule that modules should depend on abstractions, not on concrete implementations"? Mid A. open-closed principle B. Liskov substitution principle C. dependency inversion principle D. shallow vs deep copy Reveal the answer + AI explanation — free account
27. Which statement is correct? Mid A. dependency inversion principle — the SOLID rule that clients should not be forced to depend on methods they do not use B. dependency inversion principle — a design pattern ensuring a class has exactly one instance with a global access point C. dependency inversion principle — the SOLID rule that modules should depend on abstractions, not on concrete implementations D. dependency inversion principle — an architecture splitting an application into Model data, View presentation, and Controller logic Reveal the answer + AI explanation — free account
28. What is singleton pattern ? Mid A. the SOLID rule that clients should not be forced to depend on methods they do not use B. an architecture splitting an application into Model data, View presentation, and Controller logic C. a design pattern ensuring a class has exactly one instance with a global access point D. the SOLID rule that modules should depend on abstractions, not on concrete implementations Reveal the answer + AI explanation — free account
29. Which term means: "a design pattern ensuring a class has exactly one instance with a global access point"? Mid A. singleton pattern B. single responsibility principle C. MVC pattern D. interface segregation principle Reveal the answer + AI explanation — free account
30. Which statement is correct? Mid A. singleton pattern — an architecture splitting an application into Model data, View presentation, and Controller logic B. singleton pattern — a behavioral pattern where subjects notify a list of dependent observers automatically on state change C. singleton pattern — a design pattern ensuring a class has exactly one instance with a global access point D. singleton pattern — supplying an object's required collaborators from outside rather than having it construct them itself Reveal the answer + AI explanation — free accountShowing 30 of 48 OOP · Advanced & Patterns questions — the full set, with answers, explanations and an AI tutor on every question, is inside.