PHP Symfony MCQ Questions & Answers

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. In MVC, which represents the structure of our business entities?

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

View Answer


3. 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


4. 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


5. VarDumper component provides better dump() function

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

View Answer


6. 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


7. 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


8. 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


9. Symfony uses a powerful templating language called

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

View Answer


10. A controller in Symfony is a

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

View Answer





Discussion


* You must be logged in to add comment.