Olete.in
Articles
Mock Tests
🧪 Yii PHP web application framework MCQ Quiz Hub
PHP Symfony MCQ
Choose a topic to test your knowledge and improve your Yii PHP web application framework skills
1. Which of the following is true about Symfony?
Symfony is an open-source MVC framework for rapidly developing modern web applications
Symfony is a full-stack web framework
Symfony contains a set of reusable PHP components
All of the above
2. In MVC, which represents the structure of our business entities?
Model
View
Controller
None of the above
3. In Symfony, the Console component can be installed using?
symfony/console
composer require symfony/console
composer symfony/console
require symfony/console
4. Which component provides various options to read and write an object and array details using the string notation?
PropertyInfo
ClassLoader
PropertyAccess
Process
5. VarDumper component provides better dump() function
TRUE
FALSE
Can be true or false
Can not say
6. The process of event based programming can be summarized as - An object, called?
Event dispatcher
source
Event source
dispatcher
7. Symfony also provides a console command ________ to simplify the process of creating a new bundle
AppKernel:bundle
generate:bundle
controller:bundle
tests:bundle
8. If you want to redirect the user to another page, use the ?
redirectToRoute()
Both A and B
both (a) and (b)
None of the above
9. Symfony uses a powerful templating language called
Twig
Swig
Pwig
Dwig
10. A controller in Symfony is a
YAML function
PHP function
XML Config file
All of the above
11. Which of the following is not a features of Symfony Framework?
Model-View-Controller based system
High-performance PHP framework
Set of coupled components
Error logging
12. Symfony core web-framework is a bundle called?
CacheBundle
SymfonyBundle
ExtraBundle
FrameworkBundle
13. ClassLoader component provides implementation for?
PSR-0
PSR-1
PSR-2 D.
PSR-3
14. Which component provides various options to parse .env files?
Cache
Intl
OptionsResolver
Dotenv
15. Symfony provides an easy and efficient component, _____________ to handle object dependency
Objectdependency
DependencyInjection
componentInjection
Greeter
16. A ____________ is a collection of files and folders organized in a specific structure.
AppBundle
Symfony app
Blog Bundle
Symfony bundle
17. In general, any URI has?
2parts
5 parts
3 parts
4 parts
18. Which layer is the presentation layer of the MVC application?
Model
Controller
View
Controller
19. Twig do not performs whitespace control, sandboxing, and automatic HTML escaping
TRUE
FALSE
Can be true or false
Can not say
20. By default, the routing configuration file in a Symfony2 application is located at
app/config/routing.yml
app/config_route/routing.yml
app/yaml/routing.yml
app/config/routing.config
Submit