Cakephp(Engineering > Computer Science And Engineering ) Questions and Answers

Question 1. What is the first file that gets loaded when you run an application using a cakephp?
  1.    index.php
  2.    config.php
  3.    bootstrap.php
  4.    core.php
Explanation:-
Answer: Option A. -> index.php





Question 2. Which function is executed before every action in the controller?
  1.    beforeFilter
  2.    All of above
  3.    afterFilter
  4.    firstFilter
Explanation:-
Answer: Option A. -> beforeFilter





Question 3. The view layer in CakePHP can be made up of a number of different parts. What are the deferent part of view layer?
  1.    View
  2.    Element
  3.    Controller
  4.    Model
Explanation:-
Answer: Option A. -> View





Question 4. Which of email transports can be used in CakeEmail?
  1.    Only Mail and Smtp
  2.    Mail, Smtp and your own
  3.    Only Mail
  4.    Only Smtp
Explanation:-
Answer: Option B. -> Mail, Smtp and your own





Question 5. List some features of CakePHP framework?
  1.    MVC Architecture
  2.    Zero configuration
  3.    Inbuilt validation
  4.    All of these
Explanation:-
Answer: Option D. -> All of these





Question 6. Which by is not a core find type provided by CakePHP?
  1.    first
  2.    all
  3.    active
  4.    threaded
Explanation:-
Answer: Option C. -> active





Question 7. What are commonly used helpers of Cakephp?
  1.    FormHelper
  2.    HtmlHelper
  3.    JsHelper
  4.    All of the above mentioned
Explanation:-
Answer: Option D. -> All of the above mentioned





Question 8. Which of the following function will be called before any action get executed?
  1.    render
  2.    index
  3.    beforeFilter
  4.    beforeRender
Explanation:-
Answer: Option C. -> beforeFilter





Question 9. What are commonly used components of Cakephp?
  1.    Security
  2.    Sessions
  3.    Access control lists
  4.    All of the above
Explanation:-
Answer: Option D. -> All of the above





Question 10. CSRF protection is provided in CakePHP 2.x in
  1.    None of above
  2.    Security Methods
  3.    SecurityComponent
  4.    Security Plugin
Explanation:-
Answer: Option C. -> SecurityComponent