Aptitude Reasoning English GK Computer Knowledge Programming Skill Banking Software Testing



Question - 1

What is the use of FlashBag?

  • FlashBag is used to fetch data from database time of redirections pages
  • FlashBag is used to hold the data during the page redirections
  • FlashBag is used to store JSON data of user login.
  • None of these
Solutions
Question - 2

In Synphony, which represents the structure of our business entities?

  • View
  • Model
  • Controller
  • helper
Solutions
Question - 3

What is the default routing configuration file in Symfony2 application?

  • app/config/routing.xml
  • app/config/routing.php
  • app/config/routing.yml
  • None of the above
Solutions
Question - 4

Symfony default template engine is

  • Blade
  • Plates
  • Twig
  • Mustache
Solutions
Question - 5

___ methods to simply create the request object in Symphony.

  • $request = Request::createFromGlobals();
  • $request = $this->getRequest();
  • Both A & B
  • None of the above
Solutions
Question - 6

Which one is the Symfony framework applications?

  • Drupal 8
  • Thelia
  • Dailymotion
  • All the above
Solutions
Question - 7

which is not a form helper functions in Symfony?

  • Checkbox
  • Form_start
  • Input_password_tag
  • get_user
Solutions
Question - 8

 Symfony core web-framework is a bundle called?

  • CacheBundle
  • SymfonyBundle
  • ExtraBundle
  • FrameworkBundle
Solutions
Question - 9

Which of following console commands checks for syntax errors in Twig templates?

  • twig:error
  • twig:lint
  • twig:check
  • None of the above
Solutions
Question - 10

Which base class extend to symfony default test classes ?

  • WebTestCase
  • BaseTestCase
  • UnitTestCase
  • DefaultTestCase
Solutions
Question - 11

To apply the render() method in Symfony what controller you must extend?

  • Router Class
  • Controller class
  • Config Class
  • Render Class
Solutions
Question - 12

How do you avoid running out of memory when executing bulk inserts with Doctrine? (Doctrine\ORM\EntityManager $em)

  • Use $em->flush();
  • Use $em->clear();
  • Use $em->refresh();
  • Use $em->exit();
Solutions
Question - 13

Which configuration format is powerful but less readable than standard configuration formats?

  • YAML
  • PHP
  • HAML
  • XML
Solutions
Question - 14

How can you write the routing configuration in Symfony?

  • .YAML
  • .PHP
  • .XML
  • All the above
Solutions
Question - 15

Which of the following Twig codes is valid to check if a variable has the same value and the same type as another ?

  • {% if a same as b %}
  • {% if a == b %}
  • {% if a === b %}
  • {% if a is sameas(b)) %}
Solutions
Question - 16

Which of the command is used to run AcmeHelloBundle in Symfony?

  • .$ php app/console generate:bundle –namespace=Acme –format=yml
  • .$ php app/console generate:bundle –namespace=”/HelloBundle –format=yml
  • .$ php app/console generate:bundle –namespace=AcmeHelloBundle/HelloBundle –format=yml
  • .$ php app/console generate:bundle –namespace=Acme/HelloBundle –format=yml
Solutions
Question - 17

What is the fully functional application that contains Symfony2 core libraries a selection of useful bundles and default configuration?

  • distributions
  • binaries
  • core libs
  • composer
Solutions
Question - 18

Who develop Symfony2 framework ?

  • SensioLabs
  • TCS
  • Oracle
  • None of the above
Solutions
Question - 19

What must a Symfony Controller return?

  • Response object
  • HTMLResponse
  • DataResponse
  • ResponseArray
Solutions
Tags:
Symfony MCQ (Multiple Choice Questions), Advanced Symfony MCQ, Symfony MCQ Online test,Symfony MCQ Questions and answers PDF, Symfony Interview Questions With Answers, Symfony Technical Questions with full explanation