Full Transcript

19/05/2024 17:46 SFH Test results Learn Symfony 6 today  Symfony 6 Certification      Learn Test News Dashboard Subscription plans   Classroo  Test results 9 months ago — August 9, 2023 14:43 1. Symfony > Components > Routing Since 2.3 Single choice Daily test RouteCollection usage Can you...

19/05/2024 17:46 SFH Test results Learn Symfony 6 today  Symfony 6 Certification      Learn Test News Dashboard Subscription plans   Classroo  Test results 9 months ago — August 9, 2023 14:43 1. Symfony > Components > Routing Since 2.3 Single choice Daily test RouteCollection usage Can you add an extra RouteCollection into an existing one? 12 / 20 FINISHED IN 23 MINUTES 59 SECONDS  Correct Yes The choices were Yes No  Help Note that since 2.2 , the $prefix argument isn't available. https://github.com/symfony/symfony/blob/2.0/src/Symfony/Component/Rout ing/RouteCollection.php#L183 finished in 52 seconds  Report question 2. Symfony > Components > Filesystem Guillaume Loulier Since 2.7 Single choice Dump contents to a file What is the Symfony\Component\Filesystem\Filesystem method to dump contents to a file? https://university.sensiolabs.com/test/af9d4241-03ae-484e-a0ab-7bd94f15b8ac 1/15 19/05/2024 17:46 SFH Test results  Wrong Learn Symfony 6 today  $fs->dump('file.txt', 'Hello World'); Learn      Test News Dashboard Subscription plans Classroo  The choices were $fs->dumpFile('file.txt', 'Hello World'); $fs->file('file.txt', 'Hello World'); $fs->dumpToFile('file.txt', 'Hello World'); $fs->dump('file.txt', 'Hello World');  Help http://symfony.com/doc/current/components/filesystem.html#dumpfile finished in 1 minutes 32 seconds  Report question 3. HTTP Thomas Bisignani Since 1.1 Multiple choices Idempotent HTTP verbs. Which HTTP verbs are idempotent ?  Wrong HEAD CONNECT GET OPTIONS The choices were DELETE OPTIONS HEAD PATCH GET POST https://university.sensiolabs.com/test/af9d4241-03ae-484e-a0ab-7bd94f15b8ac 2/15 19/05/2024 17:46 SFH Test results Learn Symfony 6 today PUT CONNECT    Learn Test News   Help Dashboard  Subscription plans Classroo  https://tools.ietf.org/html/rfc7231#section-4.2.2 https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol#Idempotent_met hods_and_web_applications finished in 1 minutes 31 seconds Adrien Lucas  Report question 4. Symfony > Components > Console Since 5.1 Single choice Cursor usage Could the cursor position be changed in a command?  Correct Yes The choices were Yes No  Help https://symfony.com/doc/5.2/components/console/helpers/cursor.html finished in 14 seconds  Report question 5. Symfony > Components > Dependency Injection Guillaume Loulier Since 2.3 Single choice FindDefinition What's the difference between findDefinition and getDefinition ?  Wrong getDefinition Resolves aliases https://university.sensiolabs.com/test/af9d4241-03ae-484e-a0ab-7bd94f15b8ac 3/15 19/05/2024 17:46 SFH Test results The choices were Learn Symfony 6 today getDefinition Resolves aliases findDefinition Resolves aliases no difference Learn There is Test News Dashboard findDefinition doesn't exist        Subscription plans Classroo  Help https://symfony.com/doc/current/service_container/definitions.html#gettingand-setting-service-definitions https://github.com/symfony/symfony/blob/6da9c5d35b075795d7b0cdc5f09 cd92ef0df2fd1/src/Symfony/Component/DependencyInjection/ContainerBui lder.php#L894 finished in 52 seconds  Report question 6. Symfony > Components > HttpFoundation Salah MEHARGA Since 2.3 Single choice Accessing Request Data How to access $_SERVER data when using a Symfony\Component\HttpFoundation\Request $request object?  Correct $request->server The choices were $request->servers $request->getServersData() $request->getServerData() $request->getServer() $request->server  Help https://symfony.com/doc/2.3/components/http_foundation/introduction.html#acces sing-request-data https://university.sensiolabs.com/test/af9d4241-03ae-484e-a0ab-7bd94f15b8ac 4/15 19/05/2024 17:46 SFH Test results Learn Symfony finished 6 today in 28 seconds     7. Symfony > Components > Validator Learn Test Jérémy Romey  Report question News Dashboard   Subscription plans Since 5.2 Classroo  Single choice Constraints debug Could the constraints of a class be listed?  Correct Yes The choices were Yes No  Help https://symfony.com/doc/5.2/validation.html#debugging-the-constraints finished in 54 seconds  Report question 8. Symfony > Components > HttpFoundation Guillaume Loulier Since 2.3 Single choice Status code What is the default status code of a Symfony\Component\HttpFoundation\RedirectResponse object?  Wrong 301 The choices were 302 300 301 304 https://university.sensiolabs.com/test/af9d4241-03ae-484e-a0ab-7bd94f15b8ac 5/15 19/05/2024 17:46 SFH Test results  Learn Symfony 6 today Help https://github.com/symfony/symfony/blob/2.3/src/Symfony/Component/Http Foundation/RedirectResponse.php#L35 Learn https://tools.ietf.org/html/rfc2616#section-10.3.3 Test News Dashboard Subscription plans Classroo        finished in 39 seconds  Report question 9. PHP > PHP Basics Jérémy Romey Since 5.6 Single choice Namespaces Consider the following context: 1. The application code runs in the myapp namespace. 2. The world() function is defined in the myapp\utils\hello namespace. What is the correct way to import the hello namespace so that you can use the world() function?  Correct use function myapp\utils\hello\world; The choices were use myapp\utils\hello\world; use function myapp\utils\hello\world; use world; use function utils\hello\world; use utils\hello;  Help http://php.net/manual/en/language.namespaces.importing.php https://university.sensiolabs.com/test/af9d4241-03ae-484e-a0ab-7bd94f15b8ac 6/15 19/05/2024 17:46 SFH Test results Learn Symfony finished 6 today in 1 minutes 21 seconds     10. Symfony > Components > Form Learn Test julien pauli  Report question News  Dashboard  Subscription plans Since 2.3 Classroo  Multiple choices TextType children Which of these form types does not inherit from the Symfony\Component\Form\Extension\Core\Type\TextType type ?  Wrong Symfony\Component\Form\Extension\Core\Type\LocaleType Symfony\Component\Form\Extension\Core\Type\HiddenType Symfony\Component\Form\Extension\Core\Type\RangeType The choices were Symfony\Component\Form\Extension\Core\Type\HiddenType Symfony\Component\Form\Extension\Core\Type\SearchType Symfony\Component\Form\Extension\Core\Type\RangeType Symfony\Component\Form\Extension\Core\Type\LocaleType Symfony\Component\Form\Extension\Core\Type\PasswordType  Help https://symfony.com/doc/current/reference/forms/types.html finished in 2 minutes 36 seconds  Report question 11. PHP > PHP Basics Adrien Lucas Since 5.6 Multiple choices Constant As of PHP 5.6, which data structures types are allowed in a user defined PHP constant?  Correct array float string boolean https://university.sensiolabs.com/test/af9d4241-03ae-484e-a0ab-7bd94f15b8ac 7/15 19/05/2024 17:46 SFH Test results The choices were Learn Symfony 6 today float resource Learn object Test boolean string array      News Dashboard Subscription plans   Classroo  Help http://php.net/manual/en/language.constants.syntax.php finished in 2 minutes 42 seconds  Report question 12. Symfony > Components > Console Jérémy Romey Since 2.3 Multiple choices Arguments variants. What are the built-in arguments variants?  Correct InputArgument::IS_ARRAY InputArgument::OPTIONAL InputArgument::REQUIRED The choices were InputArgument::OPTIONAL InputArgument::IS_ARRAY InputArgument::REQUIRED InputArgument::NONE InputArgument::IS_MULTIPLE  Help http://symfony.com/doc/current/console/input.html#using-commandarguments finished in 1 minutes 8 seconds  Report question Adrien Lucas 13. Symfony > Components > Event Dispatcher https://university.sensiolabs.com/test/af9d4241-03ae-484e-a0ab-7bd94f15b8ac 8/15 19/05/2024 17:46 SFH Test results Since 2.3 Learn Symfony 6 today    Learn Test News Connecting Listeners   Dashboard Subscription plans  Single choice Classroo  How can you register the AcmeListener to the EventDispatcher in order to call the onFooAction method when the acme.action event is dispatched with the following code?

Use Quizgecko on...
Browser
Browser