| Sno. | Question | Options | Marks |
|---|---|---|---|
| 1. | What is the purpose of virtualType in Magento 2 DI configuration? |
(a). To define a class that doesn’t exist physically but uses another class as its base (b). To make a class abstract (c). To create a singleton object automatically (d). To define plugins for abstract classes |
1 |
| 2. | Which plugin type can stop method execution? |
(a). before (b). after (c). around (d). none |
1 |
| 3. | Which component handles checkout UI? |
(a). Knockout.js (b). Vue.js (c). Angular (d). React |
1 |
| 4. | What is the purpose of di.xml? |
(a). Define routes (b). Configure dependency injection (c). Define layout (d). Configure database |
1 |
| 5. | Quote becomes order when: |
(a). Add to cart (b). Checkout complete (c). Login (d). Payment method selected |
1 |
| 6. | What is the purpose of config.php? |
(a). Store module configuration (b). Store database credentials (c). Store API tokens (d). Store cache config |
1 |
| 7. | Where is checkout UI logic defined? |
(a). XML only (b). Knockout.js (c). PHP (d). CSS |
1 |
| 8. | A merchant reports that after updating product prices via API, the storefront still shows old prices for several minutes.
What is the BEST solution? |
(a). Flush full page cache manually (b). Use cache tags to invalidate specific product cache (c). Disable Varnish caching (d). Increase cache lifetime |
1 |
| 9. | Which indexing mode is recommended for production? |
(a). Update on Save (b). Update by Schedule (c). Manual (d). Auto |
1 |
| 10. | Service contracts are defined in which folder? |
(a). Api/ (b). Model/ (c). Helper/ (d). Controller/ |
1 |
| Total Marks:10/10 | Percentage:100% | ||