| Sno. | Question | Options | Marks |
|---|---|---|---|
| 1. | Which tool is used for search? |
(a). MySQL (b). Redis (c). Elasticsearch (d). RabbitMQ |
1 |
| 2. | 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 |
| 3. | What is the purpose of config.php? |
(a). Store module configuration (b). Store database credentials (c). Store API tokens (d). Store cache config |
1 |
| 4. | Which protocol is used for GraphQL queries? |
(a). HTTP (b). FTP (c). TCP (d). UDP |
1 |
| 5. | Which file registers a module with the Magento framework? |
(a). module.xml (b). registration.php (c). composer.json (d). config.php |
1 |
| 6. | Which command recompiles dependency injection code? |
(a). setup:install (b). setup:upgrade (c). setup:di:compile (d). setup:static-content:deploy |
0 |
| 7. | In Magento 2, which file defines module dependencies and version? |
(a). registration.php (b). di.xml (c). module.xml (d). config.xml |
1 |
| 8. | Which plugin method runs before original method execution? |
(a). beforeMethod (b). aroundMethod (c). afterMethod (d). overrideMethod |
0 |
| 9. | 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 |
0 |
| 10. | Which file defines dependency injection configuration? |
(a). module.xml (b). di.xml (c). routes.xml (d). events.xml |
0 |
| Total Marks:6/10 | Percentage:60% | ||