| Sno. | Question | Options | Marks |
|---|---|---|---|
| 1. | Which is NOT a valid type of Dependency Injection in Magento 2? |
(a). Constructor Injection (b). Method Injection (c). Property Injection (d). Interface Injection |
1 |
| 2. | Which method type in a plugin allows you to modify both the arguments before execution and the return value after execution? |
(a). before method (b). after method (c). around method (d). All of the above |
1 |
| 3. | Which API type is preferred for headless storefronts? |
(a). SOAP (b). REST (c). GraphQL (d). RPC |
1 |
| 4. | Which plugin method runs before original method execution? |
(a). beforeMethod (b). aroundMethod (c). afterMethod (d). overrideMethod |
-0 |
| 5. | Which indexing mode is recommended for production? |
(a). Update on Save (b). Update by Schedule (c). Manual (d). Auto |
1 |
| 6. | What happens if two plugins with the same sortOrder are declared for a method? |
(a). Magento throws an error (b). Only the first plugin runs (c). Execution order becomes unpredictable (d). Magento merges them automatically |
-0 |
| 7. | Which CLI tool manages Adobe Commerce Cloud? |
(a). magento-cloud (b). adobe-cli (c). commerce-cli (d). cloud-cli |
1 |
| 8. | Which file registers a module with the Magento framework? |
(a). module.xml (b). registration.php (c). composer.json (d). config.php |
1 |
| 9. | Where are events defined? |
(a). events.xml (b). di.xml (c). module.xml (d). routes.xml |
1 |
| 10. | In Magento 2, plugins (interceptors) are defined in: |
(a). module.xml (b). di.xml (c). config.xml (d). webapi.xml |
-0 |
| Total Marks:7/10 | Percentage:70% | ||