/PHP Symfony MCQ Sample Test,Sample questions

Question:
 A controller in Symfony is a

1.YAML function

2.PHP function

3.XML Config file

4.All of the above


Question:
 If you want to redirect the user to another page, use the ?

1. redirectToRoute()

2.Both A and B

3.both (a) and (b)

4.None of the above


Question:
 In MVC, which represents the structure of our business entities?

1.Model

2.View

3.Controller

4.None of the above


Question:
 Symfony uses a powerful templating language called

1.Twig

2.Swig

3.Pwig

4.Dwig


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

1.Event dispatcher

2.source

3.Event source

4.dispatcher


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

1.AppBundle

2.Symfony app

3.Blog Bundle

4.Symfony bundle


Question:
By default, the routing configuration file in a Symfony2 application is located at

1.app/config/routing.yml

2.app/config_route/routing.yml

3.app/yaml/routing.yml

4.app/config/routing.config


Question:
ClassLoader component provides implementation for?

1.PSR-0

2.PSR-1

3.PSR-2 D.

4. PSR-3


Question:
In general, any URI has?

1.2parts

2.5 parts

3.3 parts

4.4 parts


Question:
In Symfony, the Console component can be installed using?

1.symfony/console

2.composer require symfony/console

3.composer symfony/console

4.require symfony/console


Question:
Symfony also provides a console command ________ to simplify the process of creating a new bundle

1.AppKernel:bundle

2.generate:bundle

3.controller:bundle

4.tests:bundle


Question:
Symfony core web-framework is a bundle called?

1.CacheBundle

2.SymfonyBundle

3.ExtraBundle

4.FrameworkBundle


Question:
Symfony provides an easy and efficient component, _____________ to handle object dependency

1.Objectdependency

2.DependencyInjection

3.componentInjection

4.Greeter


Question:
Twig do not performs whitespace control, sandboxing, and automatic HTML escaping

1. TRUE

2.FALSE

3.Can be true or false

4.Can not say


Question:
VarDumper component provides better dump() function

1.TRUE

2.FALSE

3.Can be true or false

4.Can not say


Question:
Which component provides various options to parse .env files?

1.Cache

2.Intl

3.OptionsResolver

4.Dotenv


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

1.PropertyInfo

2.ClassLoader

3.PropertyAccess

4.Process


Question:
Which layer is the presentation layer of the MVC application?

1.Model

2.Controller

3.View

4.Controller


Question:
Which of the following is not a features of Symfony Framework?

1.Model-View-Controller based system

2.High-performance PHP framework

3.Set of coupled components

4.Error logging


Question:
Which of the following is true about Symfony?

1.Symfony is an open-source MVC framework for rapidly developing modern web applications

2.Symfony is a full-stack web framework

3. Symfony contains a set of reusable PHP components

4.All of the above


More MCQS

  1. PHP Yii MCQ Questions & Answers
  2. PHP Laravel MCQ
  3. PHP Symfony MCQ
  4. PHP CodeIgniter MCQ
Learn PHP Symfony MCQ ,Learn Objetive choice questions and answers, Multiple choice questions and answers, objective, questions , answers, MCQs questions and answer
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!