Test results.pdf
Document Details
Uploaded by VivaciousWolf
2024
Tags
Full Transcript
23/05/2024 21:13 SFH Test results Blackfire.io Symfony 7 Certification Learn Test News Dashboard Subscription plans Classrooms Conta Test results 1 month ago — April 2, 2024 14:41 1. PHP > Attributes Since 8.0 Single choice Daily test Attribute features Can a PHP Attribute be rep...
23/05/2024 21:13 SFH Test results Blackfire.io Symfony 7 Certification Learn Test News Dashboard Subscription plans Classrooms Conta Test results 1 month ago — April 2, 2024 14:41 1. PHP > Attributes Since 8.0 Single choice Daily test Attribute features Can a PHP Attribute be repeatable? 16 / 20 FINISHED IN 34 MINUTES 26 SECONDS Correct Yes The choices were No Yes Help https://www.php.net/manual/en/language.attributes.overview.php finished in 2 minutes 3 seconds Report question 2. Symfony > Components > Dependency Injection Alexandre Daubois Since 3.4 6.2 Single choice Security Authorization What is the type of the top-level service that checks authorization? Correct Symfony\Component\Security\Core\Security The choices were Symfony\Component\Security\Core\Authorization\Voter\VoterInterface Symfony\Component\Security\Core\Authorization\CheckerInterface Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterf https://university.sensiolabs.com/test/50fc1c12-5011-4d0d-ba8d-00a083c0cc9f 1/13 23/05/2024 21:13 SFH Test results Symfony\Component\Security\Core\Security Symfony\Component\Security\Core\Authorization\VoterInterface Blackfire.io Learn Test News Dashboard Subscription plans Help Classrooms Conta https://symfony.com/doc/3.4/security.html#securing-other-services https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/Security/Core/S ecurity.php finished in 1 minutes 10 seconds Jules Pietri Report question 3. Symfony > Components > Security Since 2.3 Single choice Check_path When configuring the main firewall of an application, could its check_path route be covered by another firewall ? Wrong Yes The choices were Yes No Help http://symfony.com/doc/current/reference/configuration/security.html#check-path finished in 1 minutes 50 seconds Report question Salah MEHARGA 4. Symfony > Components > Validator Since 3.2 Single choice Validator Given the following object to validate configuration (and assuming no group is specified when validate is called): use Symfony\Component\Validator\Constraints as Assert; use Symfony\Component\Validator\GroupSequenceProviderInterface; class Product implements GroupSequenceProviderInterface { https://university.sensiolabs.com/test/50fc1c12-5011-4d0d-ba8d-00a083c0cc9f 2/13 23/05/2024 21:13 SFH Test results Blackfire.io private $foo; Test News Learn Dashboard Subscription plans Classrooms Conta private $foo2; private $bar; private $bar2; public function getGroupSequence(): array { return [['foo', 'Product']]; } } Wrong First, $foo , $foo2 will be validated and then, $bar The choices were First, $foo , $foo2 will be validated, then, $bar will be validated, and finally $bar2 $foo , $foo2 , $bar will be validated in the same time First, $foo , $foo2 will be validated and then, $bar , $bar2 $foo , $foo2 , $bar , $bar2 will be validated in the same time First, $foo , $foo2 will be validated and then, $bar Help https://symfony.com/doc/3.4/validation/sequence_provider.html finished in 1 minutes 49 seconds Report question Laurent VOULLEMIER 5. Symfony > Components > Process Since 2.7 Single choice PID What is the method to access the pid of the running process of the following code : https://university.sensiolabs.com/test/50fc1c12-5011-4d0d-ba8d-00a083c0cc9f 3/13 23/05/2024 21:13 SFH Test results Blackfire.io use Symfony\Component\Process\Process; $process = new Process('/usr/bin/php worker.php'); Learn $process->start(); Test News Dashboard Subscription plans Classrooms Conta Correct $pid = $process->getPid(); The choices were $pid = $process->getData()->getPid(); $pid = $process->getData()->getProcessId(); $pid = $process->getProcessId(); $pid = $process->getPid(); Help http://symfony.com/doc/current/components/process.html#process-pid http://api.symfony.com/3.1/Symfony/Component/Process/Process.html#method_getPid finished in 1 minutes 48 seconds Report question 6. Symfony > Components > Dependency Injection Thomas Bisignani Since 4.4 Single choice Xml parameters What will be the value of the following configuration sample? sendmail Wrong sendmail The choices were \n sendmail\n https://university.sensiolabs.com/test/50fc1c12-5011-4d0d-ba8d-00a083c0cc9f 4/13 23/05/2024 21:13 SFH Test results \n Blackfire.io sendmail\n Learn sendmail\n sendmail Test News Dashboard Subscription plans Classrooms Conta Help The values between parameter tags in XML configuration files are not trimmed. https://symfony.com/doc/4.4/configuration.html#configuration-parameters finished in 3 minutes 24 seconds Report question Grinbergs Reinis 7. Symfony > Components > Routing Since 3.2 Single choice Route compilation Which exception is thrown when a Route defined with /page/{_fragment} cannot be compiled? Wrong LogicException The choices were LogicException RuntimeException RouteCompilationException InvalidArgumentException InvalidRouteCompilationContextException Help https://github.com/symfony/symfony/blob/3.2/src/Symfony/Component/Routing/RouteCompil er.php#L39 finished in 1 minutes 52 seconds Report question Guillaume Loulier 8. Symfony > Components > Validator Since 2.3 Multiple choices Format Which of the following formats are available to define validation rules or constraints? Correct YAML Annotations https://university.sensiolabs.com/test/50fc1c12-5011-4d0d-ba8d-00a083c0cc9f 5/13 23/05/2024 21:13 SFH Test results PHP XML Blackfire.io Learn Test News Dashboard The choicesSubscription were plans Classrooms Conta JSON PHP YAML Annotations XML Help https://github.com/symfony/symfony/tree/master/src/Symfony/Component/Validator/M apping/Loader http://symfony.com/doc/current/validation.html#constraint-configuration finished in 2 minutes 19 seconds Report question 9. Symfony > Components > Security Sarah Khalil Since 3.4 Single choice Security usage Could the current user be retrieved from Symfony\Component\Security\Core\Security ? Correct Yes The choices were Yes No Help https://symfony.com/doc/3.4/security.html#securing-other-services https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/Security/Core/S ecurity.php finished in 2 minutes 53 seconds 10. Symfony > Components > Form Report question Guillaume Loulier Since 2.5 Single choice CollectionType usage Could empty CollectionType entries be removed? https://university.sensiolabs.com/test/50fc1c12-5011-4d0d-ba8d-00a083c0cc9f 6/13 23/05/2024 21:13 SFH Test results Correct Blackfire.io Yes, using delete_empty option Learn Test News Dashboard Subscription plans Classrooms The choices were Conta The CollectionType automatically resize itself It's not possible Yes, using resize_when_empty option Yes, using remove_empty option Yes, using delete_empty option Help https://symfony.com/doc/2.5/reference/forms/types/collection.html#delete-empty finished in 2 minutes 20 seconds Report question 11. Symfony > Components > Clock Guillaume Loulier Since 6.2 Single choice MockClock usage Could a MockClock be created from an existing datetime? Correct Yes The choices were No Yes Help https://github.com/symfony/clock/blob/6.2/MockClock.php finished in 1 minutes 20 seconds 12. PHP > PHP Basics Report question Guillaume Loulier Since 7.0 Single choice The null coalescing operator. What will be the output of the following code?