πŸ§ͺ CakePHP MCQ Quiz Hub

CakePHP MCQ

Choose a topic to test your knowledge and improve your CakePHP skills

Which CakePHP entities can the Bake console create?





βœ… Correct Answer: 3

Which data retrieval function call is most suitable to build input select boxes?





βœ… Correct Answer: 3

Is it possible to define custom data retrieval methods and if so, where would you define them?





βœ… Correct Answer: 3

Which of the following is an example of a model definition in CakePHP?





βœ… Correct Answer: 2

You want to generate three instances of a model form within the context of a view. What syntax is most correct to use with FormHelper::input() ? $i represents an incremented variable.





βœ… Correct Answer: 3

What kind of functionality does the Security Component provide?





βœ… Correct Answer: 4

Which file is processed first?





βœ… Correct Answer: 1

In cakePHP 2.x , the recursive property defines:





βœ… Correct Answer: 1

What should be done before deploying a CakePHP application?





βœ… Correct Answer: 4

What is the AppController class?





βœ… Correct Answer: 4

What is a .ctp file?





βœ… Correct Answer: 4

How is the AppController class defined?





βœ… Correct Answer: 2

The Bake console can be used to create:





βœ… Correct Answer: 3

What does MVC stand for?





βœ… Correct Answer: 4

What is the default action for a controller?





βœ… Correct Answer: 1

By default, what controller action will be invoked if the action is not specified in the URL?





βœ… Correct Answer: 1

Which data retrieval function will return one result only?





βœ… Correct Answer: 3

Which function is executed before every action in the controller.





βœ… Correct Answer: 2

How will you include an element (header/footer etc.) within a layout?





βœ… Correct Answer: 1

What is the name of the CLI console that comes with CakePHP and helps you get your project up and running fast by generating models, views, and controllers from templates.





βœ… Correct Answer: 4