Symfony Components Quiz

Descripción

Expert Symfony Test sobre Symfony Components Quiz, creado por Alexandra Negrea el 19/05/2015.
Alexandra Negrea
Test por Alexandra Negrea, actualizado hace más de 1 año
Alexandra Negrea
Creado por Alexandra Negrea hace alrededor de 9 años
243
0

Resumen del Recurso

Pregunta 1

Pregunta
What functions can you call on an instance of \Symfony\Component\ClassLoader\ClassLoader, apart from the register() function?
Respuesta
  • $loader->addPrefix('Twig_', __DIR__.'/vendor/twig/twig/lib');
  • $loader->setUseIncludePath(true);
  • $loader->addPrefixes(array( 'Symfony' => __DIR__.'/../vendor/symfony/symfony/src', 'Monolog' => __DIR__.'/../vendor/monolog/monolog/src', ));
  • $loader->mapClass(Twig_', __DIR__.'/vendor/twig/twig/lib');

Pregunta 2

Pregunta
What classes allow you to cache the mapping from a class to its containing file?
Respuesta
  • ApcClassLoader
  • AppClassLoader
  • XDebugClassLoader
  • XcacheClassLoader

Pregunta 3

Pregunta
How can you instantiate an ApcClassLoader?
Respuesta
  • new ApcClassLoader($loader, sha1(__FILE__));
  • new ApcClassLoader($loader);
  • new ApcClassLoader(sha1(__FILE__), $loader);
  • new ApcClassLoader('../app/cache', $loader);

Pregunta 4

Pregunta
Two class loaders can co-exist in the application?
Respuesta
  • True
  • False

Pregunta 5

Pregunta
How many classes does the class loader component have?
Respuesta
  • Less than 10
  • About 20
  • More than 40

Pregunta 6

Pregunta
you can define a new file loader in Symfony, if the new loader class :
Respuesta
  • is registered in yml as a service with the config.file_loader tag
  • is registered with the DelagatingLoader
  • implements the LoaderInterface
  • extends the abstract FileLoader class

Pregunta 7

Pregunta
You should merge all your configuration files into one and use it as cache.
Respuesta
  • True
  • False

Pregunta 8

Pregunta
What class in the Config Component helps you manage and check if the generate cache file containing all the configuration is valid and if not regenerate it?
Respuesta
  • CacheConfig
  • ConfigurationCache
  • ConfigLoaderCache
  • ConfigCache

Pregunta 9

Pregunta
In the context of a TreeBuilder, which of the following are valid node types?
Respuesta
  • string
  • scalar
  • array
  • enum
  • serviceId
  • integer
  • boolean
  • float
  • parameter
  • variable

Pregunta 10

Pregunta
Which of the following are valid ways to define a scalar node type? (to replace .... below) $treeBuilder ->children() ..... ->end();
Respuesta
  • ->node('name', 'scalar')
  • ->scalarNode('name')
  • ->addScalarNode('name')
  • ->nodeName('scalar')
Mostrar resumen completo Ocultar resumen completo

Similar

Flash messages
Elvis Moraes
Component Notes
Alexandra Negrea
Symfony Components
Alexandra Negrea
Symfony Certification
Nash Delos Santos
Cookbook Quiz
Alexandra Negrea
Ortografía
Lenah Sanz
Welcome to GoConqr!
maya velasquez
Prueba Matematicas
Deisy Medina
Introducción a los Derechos Humanos
Fernanda Tellechea
Test de Radicales 1 sencillo
MANUEL LUIS PÉREZ SALAZAR
Palabras primitivas y derivadas
abraham marquez robles