CakePHP MCQ Questions & Answers

This section focuses on "CakePHP" of PHP Framework. These Multiple Choice Questions (MCQ) should be practiced to improve the CakePHP skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. Which of the following is true about cakephp?

A. CakePHP is an open source MVC framework.
B. CakePHP makes developing, deploying and maintaining applications much easier.
C. CakePHP has a number of libraries to reduce the overload of most common tasks.
D. All of the above

View Answer


2. The view uses ___________ to generate the response body and headers.

A. Helpers
B. Cells
C. Helpers and Cells
D. None of the above

View Answer


3. Which methods cannot be accessed with routing?

A. Public
B. Private
C. Protected
D. Both B and C

View Answer


4. Which function is used to read the configuration for the environment you need and build your application?

A. environment()
B. env()
C. config.env()
D. config.environment()

View Answer


5. Can we use extension .ctp while providing the name of the View file?

A. Yes
B. No
C. Can be yes or no
D. Can not say

View Answer


6. The _______ method will take the name of the database table as an argument.

A. put()
B. set()
C. get()
D. select()

View Answer


7. Which allows you to authenticate users based on form POST data?

A. FormAuthenticate 
B. BasicAuthenticate 
C. DigestAuthenticate 
D. All of the above

View Answer


8. What is the data type for exceptionRenderer?

A. int
B. bool
C. array
D. string

View Answer


9. The log() function is provided by the?

A. Logging
B. LogTrait
C. datalog
D. cronjob

View Answer


10. Which of email transports can be used in CakeEmail?

A. Only Mail and Smtp
B. Mail, Smtp and your own
C. Only Mail
D. Only Smtp

View Answer





Discussion


* You must be logged in to add comment.