15 Anti-patterns questions from the Design Patterns bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.an anti-pattern of tuning performance before measuring or proving need, adding complexity for negligible benefit
B.an anti-pattern describing tangled, unstructured control flow with little modularity that is hard to follow or maintain
C.an anti-pattern where a single class knows or does too much, centralizing responsibilities that should be distributed
D.an anti-pattern of embedding unexplained literal values directly in code instead of named constants
Answer + AI explanation with Pro
2. Which term means: "an anti-pattern where a single class knows or does too much, centralizing responsibilities that should be distributed"?
Junior
A.Tight coupling
B.Spaghetti code
C.God object
D.Magic numbers
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.God object — an anti-pattern of tuning performance before measuring or proving need, adding complexity for negligible benefit
B.God object — an anti-pattern describing tangled, unstructured control flow with little modularity that is hard to follow or maintain
C.God object — an anti-pattern where components depend heavily on each other's internal details, making changes ripple and reuse difficult
D.God object — an anti-pattern where a single class knows or does too much, centralizing responsibilities that should be distributed
Answer + AI explanation with Pro
4. What is Spaghetti code?
Junior
A.an anti-pattern of tuning performance before measuring or proving need, adding complexity for negligible benefit
B.an anti-pattern of embedding unexplained literal values directly in code instead of named constants
C.an anti-pattern describing tangled, unstructured control flow with little modularity that is hard to follow or maintain
D.an anti-pattern where components depend heavily on each other's internal details, making changes ripple and reuse difficult
Answer + AI explanation with Pro
5. Which term means: "an anti-pattern describing tangled, unstructured control flow with little modularity that is hard to follow or maintain"?
Junior
A.God object
B.Spaghetti code
C.Magic numbers
D.Premature optimization
Answer + AI explanation with Pro
6. Which statement is correct?
Junior
A.Spaghetti code — an anti-pattern of embedding unexplained literal values directly in code instead of named constants
B.Spaghetti code — an anti-pattern describing tangled, unstructured control flow with little modularity that is hard to follow or maintain
C.Spaghetti code — an anti-pattern where components depend heavily on each other's internal details, making changes ripple and reuse difficult
D.Spaghetti code — an anti-pattern of tuning performance before measuring or proving need, adding complexity for negligible benefit
Answer + AI explanation with Pro
7. What is Tight coupling?
Mid
A.an anti-pattern describing tangled, unstructured control flow with little modularity that is hard to follow or maintain
B.an anti-pattern of tuning performance before measuring or proving need, adding complexity for negligible benefit
C.an anti-pattern where components depend heavily on each other's internal details, making changes ripple and reuse difficult
D.an anti-pattern of embedding unexplained literal values directly in code instead of named constants
Answer + AI explanation with Pro
8. Which term means: "an anti-pattern where components depend heavily on each other's internal details, making changes ripple and reuse difficult"?
Mid
A.Magic numbers
B.Spaghetti code
C.Tight coupling
D.Premature optimization
Answer + AI explanation with Pro
9. Which statement is correct?
Mid
A.Tight coupling — an anti-pattern describing tangled, unstructured control flow with little modularity that is hard to follow or maintain
B.Tight coupling — an anti-pattern where components depend heavily on each other's internal details, making changes ripple and reuse difficult
C.Tight coupling — an anti-pattern of tuning performance before measuring or proving need, adding complexity for negligible benefit
D.Tight coupling — an anti-pattern where a single class knows or does too much, centralizing responsibilities that should be distributed
Answer + AI explanation with Pro
10. What is Premature optimization?
Mid
A.an anti-pattern where components depend heavily on each other's internal details, making changes ripple and reuse difficult
B.an anti-pattern describing tangled, unstructured control flow with little modularity that is hard to follow or maintain
C.an anti-pattern of tuning performance before measuring or proving need, adding complexity for negligible benefit
D.an anti-pattern where a single class knows or does too much, centralizing responsibilities that should be distributed
Answer + AI explanation with Pro
11. Which term means: "an anti-pattern of tuning performance before measuring or proving need, adding complexity for negligible benefit"?
Mid
A.Magic numbers
B.God object
C.Premature optimization
D.Spaghetti code
Answer + AI explanation with Pro
12. Which statement is correct?
Mid
A.Premature optimization — an anti-pattern describing tangled, unstructured control flow with little modularity that is hard to follow or maintain
B.Premature optimization — an anti-pattern of tuning performance before measuring or proving need, adding complexity for negligible benefit
C.Premature optimization — an anti-pattern where components depend heavily on each other's internal details, making changes ripple and reuse difficult
D.Premature optimization — an anti-pattern of embedding unexplained literal values directly in code instead of named constants
Answer + AI explanation with Pro
13. What is Magic numbers?
Mid
A.an anti-pattern where a single class knows or does too much, centralizing responsibilities that should be distributed
B.an anti-pattern of embedding unexplained literal values directly in code instead of named constants
C.an anti-pattern where components depend heavily on each other's internal details, making changes ripple and reuse difficult
D.an anti-pattern of tuning performance before measuring or proving need, adding complexity for negligible benefit
Answer + AI explanation with Pro
14. Which term means: "an anti-pattern of embedding unexplained literal values directly in code instead of named constants"?
Mid
A.Spaghetti code
B.Premature optimization
C.God object
D.Magic numbers
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Magic numbers — an anti-pattern of embedding unexplained literal values directly in code instead of named constants
B.Magic numbers — an anti-pattern where a single class knows or does too much, centralizing responsibilities that should be distributed
C.Magic numbers — an anti-pattern describing tangled, unstructured control flow with little modularity that is hard to follow or maintain
D.Magic numbers — an anti-pattern of tuning performance before measuring or proving need, adding complexity for negligible benefit
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Anti-patterns question come with Pro.