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
Answer- B
Question - 2
In Synphony, which represents the structure of our business entities?
- View
- Model
- Controller
- helper
Solutions
Answer- B
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
Answer- C
Question - 4
Symfony default template engine is
- Blade
- Plates
- Twig
- Mustache
Solutions
Answer- C
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
Answer- C
Question - 6
Which one is the Symfony framework applications?
- Drupal 8
- Thelia
- Dailymotion
- All the above
Solutions
Answer- D
Question - 7
which is not a form helper functions in Symfony?
- Checkbox
- Form_start
- Input_password_tag
- get_user
Solutions
Answer- D
Question - 8
Symfony core web-framework is a bundle called?
- CacheBundle
- SymfonyBundle
- ExtraBundle
- FrameworkBundle
Solutions
Answer- D
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
Answer- B
Question - 10
Which base class extend to symfony default test classes ?
- WebTestCase
- BaseTestCase
- UnitTestCase
- DefaultTestCase
Solutions
Answer- A
Question - 11
To apply the render() method in Symfony what controller you must extend?
- Router Class
- Controller class
- Config Class
- Render Class
Solutions
Answer- B
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
Answer- B
Question - 13
Which configuration format is powerful but less readable than standard configuration formats?
Answer- B
Question - 14
How can you write the routing configuration in Symfony?
- .YAML
- .PHP
- .XML
- All the above
Solutions
Answer- D
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
Answer- D
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
Answer- D
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
Answer- A
Question - 18
Who develop Symfony2 framework ?
- SensioLabs
- TCS
- Oracle
- None of the above
Solutions
Answer- A
Question - 19
What must a Symfony Controller return?
- Response object
- HTMLResponse
- DataResponse
- ResponseArray
Solutions
Answer- A
Practice more set questions