48 OOP · Advanced & Patterns questions from the Computer Science Fundamentals bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Sign up free to see every answer with its explanation and ask the AI tutor.
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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a 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
Answer + AI explanation with a free account
Showing 30 of 48 OOP · Advanced & Patterns questions — the full set, with answers, explanations and an AI tutor on every question, is inside.
Free to start
Answers, AI explanations, and a free readiness check
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take the free 2-minute readiness check for a scored result. One full AI mock interview, scored like a real panel, is free when you sign up.