Login
Sign up
Categories
IT & Programming
Design & Multimedia
Writing & Translation
Sales & Marketing
Admin Support
Engineering & Manufacturing
Finance & Management
Website Designing & Development
Database Management
Networking & Troubleshooting
Aviation & Aerospace
Softwares & Applications
Stocks & Investments
Electronics & Appliances
Online Tools
General Knowledge & Aptitude
Mathematics
Educational Subjects & Courses
Business & Organization
Health & Wellbeing
Culture & Ethics
IT Field Knowledge & Experience
Languages & Communication
Entrepreneurship & Leadership
Economics & Development
Mass Communication & Media
Research Methods & Evaluation
Public Relations & Dealings
Educational Methods and Research
Educational Subjects & Techniques
Crime & Justice
Governments & Policies
Cyber Security & Ethical Hacking
Hospitality & Tourism
Soft Skills & Personal Management
Transportation & Driving Rules
Forest and Nature
Religion
Skill Assessment
MCQs
PDFs
Login
Sign up
Categories
IT & Programming
Design & Multimedia
Writing & Translation
Sales & Marketing
Admin Support
Engineering & Manufacturing
Finance & Management
Website Designing & Development
Database Management
Networking & Troubleshooting
Aviation & Aerospace
Softwares & Applications
Stocks & Investments
Electronics & Appliances
Online Tools
General Knowledge & Aptitude
Mathematics
Educational Subjects & Courses
Business & Organization
Health & Wellbeing
Culture & Ethics
IT Field Knowledge & Experience
Languages & Communication
Entrepreneurship & Leadership
Economics & Development
Mass Communication & Media
Research Methods & Evaluation
Public Relations & Dealings
Educational Methods and Research
Educational Subjects & Techniques
Crime & Justice
Governments & Policies
Cyber Security & Ethical Hacking
Hospitality & Tourism
Soft Skills & Personal Management
Transportation & Driving Rules
Forest and Nature
Religion
Skill Assessment
MCQs
PDFs
Login
Sign up
Skill Assessments
>
IT & Programming
>
Symfony2 Skill Assessment
>
Quiz # 1
Symfony2 Quiz # 1
Instructions
Quiz:
Symfony2 Quiz # 1
Subject:
Basic Symfony2
Total Questions:
72 MCQs
Time:
72 Minutes
Note
Do not refresh the page while taking the test.
Results along with correct answers will be shown at the end of the test.
Start Quiz
Symfony2 Quiz # 1
End Quiz
Question
1
of 72
00:00
In regard to validating the data that is entered in forms, which of the following constraints is NOT supported by Symfony2?
NotEqualTo
EqualTo
UniqueEntity
All of these are supported
The Dependency Injection component allows you to
Convert a Request to a Response
Standardize and centralize the way objects are constructed in your application
Defining the Controller as a Service
Parse the URL and determine which controller should be executed
If you have the role IS_AUTHENTICATED_FULLY , then you also have the role IS_AUTHENTICATED_REMEMBERED
False
True
Which of the following allows you to manipulate assets however you like before serving them?
Crawlers
Assets
Doctrine
Assetic
Which of the following Components allows you to trace a specific URI to a description of how it should be handled?
HttpFoundation
Translation
Routing
ClassLoader
What Symfony2 environment is used to run unit tests?
work
prod
test
dev
Which of the following methods is used to generate a URL for a given route?
generateURL()
createURL()
URLgenerator()
URLcreate()
True or False? The HTTP response from a controller is limited to 404 errors, XML documents, and HTML pages.
False
TRUE
Symfony2 is only supported on:
PHP 5.1.2 and up
PHP 4.3.3 and up
PHP 5.3.3 and up
PHP 4.1.2 and up
Which of the following methods allows you to progress to another controller internally?
forward()
progress()
send()
sent()
Which of the following Components contain the Request and Response classes?
Translation
Routing
ClassLoader
HttpFoundation
Where is the routing configuration file located?
app/src
app/config
app/console
app/Resources
Select the sequence that shows an example of a simple controller.
{# app/Resources/views/layout.html.twig #} <!DOCTYPE html> <html> <head> <title>{% block title %}Default title{% endblock %}</title> </head> <body> {% block body %}{% endblock %} </body> </html>
None of these
// app/AppKernel.php public function registerBundles() { $bundles = array( ..., new Smarterer\HelloBundle\SmartererHelloBundle(), ); // ... return $bundles; }
// src/Smarterer/HelloBundle/Controller/HelloController.php namespace Smarterer\HelloBundle\Controller; use Symfony\Component\HttpFoundation\Response; class HelloController { public function indexAction($name) { return new Response('<html><b
Which of the following directories contains any publicly accessible files?
src/
web/
vendor/
app/
The __________ allows you to begin using PHP classes without including the file containing the class.
instantloader
autoupload
autoloader
instantupload
Where is the AppKernel class stored?
The app/ directory
The kernal/ directory
The application/ directory
The class/ directory
The ________ class is a simple object-oriented representation of the HTTP request message.
Request
Send
Call
Inbound
Which of the following lets you write templates more quickly as well as makes them easier to read?
Bark
Tree
Twig
Branch
Which of the following field types are supported in Doctrine?
Numbers
All of these
Dates and Times
Strings
Which of the following is a Doctrine field type for numbers?
boolean
superint
integer
tinyint
Which of the following package manager is used in Symfony2 to manage vendor and their dependency ?
Bundler
Bower
composer
NuGet
Symfony2 DI
How do you disable CSRF protection?
Set csrf_protection to true
Set csrf_protection to false
What are the 3 environments a Symfony2 project BEGINS with?
app, test, and web
app, test, and prod
test, dev, and prod
test, src, and prod
What are the three parts of the logical controller name?
view:controller:model
action:bundle:route
bundle:controller:action
controller:action:model
What tag is used for template inheritance?
{% child %}
{% extends %}
{% parent %}
{% inherit %}
Choose the best description of the following configuration: secure: path: /secure defaults: { _controller: SmartererDemoBundle:Main:secure } schemes: [https]
It forces the secure route to avoid using HTTPS
It forces the route to never use path /secure
It forces the route to always use path /secure
It forces the secure route to always use HTTPS
What class is used by the front controller to bootstrap an application?
AppKernel
AppPhp
AppBundle
class AppSrc
A directory that contains a set of files that represents a particular feature is known as a/an:
Action
Asset
Bundle
Application
What is the purpose of the _controller parameter in routing?
It tells Symfony which controller should be executed when a URL does not match a specific route
It tells Symfony which controller should be executed when a URL matches a specific route
It tells Symfony how to access another controller internally
It tells Symfony which container is used for key/value pairs
Security is a two-step process, the first being Authentication?
True
FALSE
Submit Test
Prev Question
ABCd
Next Question
Symfony2 Skill Assessment
Login to see Skill Score (It's Free)
Your Skill Level:
Poor
Retake Quizzes to improve it
Start Assessment
Buy us a coffee
Symfony2 Skill Assessment
Login to see Skill Score (It's Free)
Your Skill Level:
Poor
Retake Quizzes to improve it
Start Assessment
Buy us a coffee