PHP Symfony MCQ Questions & Answers

Symfony MCQs : This section focuses on "Symfony" PHP Framework. These Multiple Choice Questions (MCQ) should be practiced to improve the PHP Symfony skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. Which of the following is true about Symfony?

A. Symfony is an open-source MVC framework for rapidly developing modern web applications
B. Symfony is a full-stack web framework
C. Symfony contains a set of reusable PHP components
D. All of the above

View Answer


2. Which of the following is not a features of Symfony Framework?

A. Model-View-Controller based system
B. High-performance PHP framework
C. Set of coupled components
D. Error logging

View Answer


3. In MVC, which represents the structure of our business entities?

A. Model
B. View
C. Controller
D. None of the above

View Answer


4. Symfony core web-framework is a bundle called?

A. CacheBundle
B. SymfonyBundle
C. ExtraBundle
D. FrameworkBundle

View Answer


5. In Symfony, the Console component can be installed using?

A. symfony/console
B. composer require symfony/console
C. composer symfony/console
D. require symfony/console

View Answer


6. ClassLoader component provides implementation for?

A. PSR-0
B. PSR-1
C. PSR-2
D. PSR-3

View Answer


7. Which component provides various options to read and write an object and array details using the string notation?

A. PropertyInfo
B. ClassLoader
C. PropertyAccess
D. Process

View Answer


8. Which component provides various options to parse .env files?

A. Cache
B. Intl
C. OptionsResolver
D. Dotenv

View Answer


9. VarDumper component provides better dump() function

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


10. Symfony provides an easy and efficient component, _____________ to handle object dependency

A. Objectdependency
B. DependencyInjection
C. componentInjection
D. Greeter

View Answer


11. The process of event based programming can be summarized as - An object, called?

A. Event dispatcher
B. source
C. Event source
D. dispatcher

View Answer


12. A ____________ is a collection of files and folders organized in a specific structure.

A. AppBundle
B. Symfony app
C. Blog Bundle
D. Symfony bundle

View Answer


13. Symfony also provides a console command ________ to simplify the process of creating a new bundle

A. AppKernel:bundle
B. generate:bundle
C. controller:bundle
D. tests:bundle

View Answer


14. In general, any URI has?

A. 2 parts
B. 5 parts
C. 3 parts
D. 4 parts

View Answer


15. If you want to redirect the user to another page, use the ?

A. redirectToRoute()
B. redirect()
C. Both A and B
D. None of the above

View Answer


16. Which layer is the presentation layer of the MVC application?

A. Model
B. View
C. Controller
D. All of the above

View Answer


17. Symfony uses a powerful templating language called

A. Twig
B. Swig
C. Pwig
D. Dwig

View Answer


18. Twig do not performs whitespace control, sandboxing, and automatic HTML escaping

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer


19. A controller in Symfony is a

A. YAML function
B. PHP function
C. XML Config file
D. All of the above

View Answer


20. By default, the routing configuration file in a Symfony2 application is located at

A. .app/config/routing.yml
B. .app/config_route/routing.yml
C. .app/yaml/routing.yml
D. .app/config/routing.config

View Answer





Discussion


* You must be logged in to add comment.