Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

What is the main difference between Spring AOP and AspectJ?
A. Spring AOP is proxy-based; AspectJ weaves directly
B. AspectJ is older
C. Spring AOP is more powerful
D. None
Direction: Choose the correct option

Q2.

Which one supports compile-time weaving?
A. AspectJ
B. Spring AOP
C. Both
D. None
Direction: Choose the correct option

Q3.

Which one can advise fine-grained join points like field access?
A. AspectJ
B. Spring AOP
C. Both
D. None
Direction: Choose the correct option

Q4.

What is a limitation of Spring AOP?
A. Can only apply to public methods
B. Cannot advise self-invocation
C. Both A and B
D. None
Direction: Choose the correct option

Q5.

How does AspectJ achieve better performance?
A. By weaving aspects directly into bytecode, removing runtime overhead
B. By using proxies
C. By using reflection
D. None
Direction: Choose the correct option

Q6.

Can Spring AOP and AspectJ be used together?
A. Yes, Spring can integrate with AspectJ for load-time weaving
B. No, they are exclusive
C. Only in Spring Boot
D. Only in XML config
Direction: Choose the correct option

Q7.

Which one is easier to set up in a Spring application?
A. Spring AOP
B. AspectJ
C. Both equally
D. None
Direction: Choose the correct option

Q8.

What is the typical use case for Spring AOP?
A. Enterprise cross-cutting concerns like transactions, logging
B. Performance-critical aspects
C. Field interception
D. Constructor interception
Direction: Choose the correct option

Q9.

What does @Configurable in AspectJ allow?
A. To inject dependencies into objects created with new
B. To configure aspects
C. To enable AOP
D. None
Direction: Choose the correct option

Q10.

Which statement is true about proxy-based AOP?
A. The target object must be proxied, and calls go through proxy
B. Advice is woven directly
C. No proxy needed
D. Only JDK proxies