| Sno. | Question | Options | Marks |
|---|---|---|---|
| 1. | What invalidates product cache? |
(a). Product save (b). Cron (c). Admin login (d). API call |
1 |
| 2. | 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 |
1 |
| 3. | In Magento 2, if multiple plugins are defined on the same class, the execution order is controlled by: |
(a). pluginOrder tag (b). sortOrder attribute (c). sequence.xml (d). Alphabetical order of module names |
0 |
| 4. | Which event fires when a product is saved? |
(a). product_save_after (b). catalog_product_save_after (c). product_after_save (d). catalog_after_save |
1 |
| 5. | Which plugin type can modify arguments? |
(a). before (b). after (c). around (d). observer |
1 |
| 6. | Which file defines dependency injection configuration? |
(a). module.xml (b). di.xml (c). routes.xml (d). events.xml |
1 |
| 7. | If two classes require the same dependency, Magento 2: |
(a). Creates two separate objects every time (b). Always uses Object Manager directly (c). Reuses the same instance if the dependency is marked as shared (d). Throws an error unless defined in system.xml |
1 |
| 8. | Which file is mainly used to configure Dependency Injection in a custom module? |
(a). config.xml (b). routes.xml (c). di.xml (d). module.xml |
1 |
| 9. | Add custom checkout field → best approach? |
(a). Modify core (b). Extension attributes (c). DB column directly (d). Template change |
1 |
| 10. | Where is checkout UI logic defined? |
(a). XML only (b). Knockout.js (c). PHP (d). CSS |
1 |
| Total Marks:9/10 | Percentage:90% | ||