Cake PHP Set 1
Free Online Best Cake PHP MCQ Questions for improve your basic knowledge of Cake PHP. This Cake PHP Set 1 test that contains 25 Multiple Choice Questions with 4 options. You have to select the right answer to a question.
Start
Congratulations - you have completed Cake PHP Set 1.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1 |
Which of the following function will be called before any action get executed?
A | render |
B | index |
C | beforeFilter |
D | beforeRender |
Question 2 |
Which data retrieval function will return one result only?
A | find('list', $options) |
B | find('first', $options) |
C | find('threaded', $options) |
D | find('all', $options) |
Question 3 |
Which of the following setup methods are available in CakePHP?
A | Development |
B | Production |
C | Advanced |
D | all |
Question 4 |
Which method will delete the session cookie and all session data stored in the temporary file
A | system? |
B | Nullable() |
C | destroy() |
D | unset() |
Question 5 |
Which CakePHP entities can the Bake console create?
A | Controller |
B | Model |
C | View |
D | All of these |
Question 6 |
Which of the following is NOT a settable parameter used in Media views?
A | id |
B | category |
C | extension |
D | name |
Question 7 |
What is the first file that gets loaded when you run an application using a cakephp?
A | index.php |
B | config.php |
C | bootstrap.php |
D | core.php |
Question 8 |
Which one below is not a Session configuration option?
A | Session.terminate |
B | Session.cookie |
C | Session.handler |
D | Session.ini |
Question 9 |
CakePHP uses app/tmp directory for
A | Model descriptions |
B | Cached views |
C | Session information |
D | All |
Question 10 |
Cake's routing is found in:
A | /app/Config/core.php |
B | /app/Config/database.php |
C | /app/Config/routes.php |
D | /app/routes.php |
Question 11 |
Which one is NOT a valid behavior callback?
A | beforeDelete() |
B | beforeInitialize() |
C | beforeSave() |
D | beforeValidate() |
Question 12 |
Which file may NOT be used to configure Cache settings?
A | index.php |
B | bootstrap.php |
C | core.php |
D | routes.php |
Question 13 |
Which is the default cache Engine in CakePHP?
A | Filecache |
B | Apccache |
C | Wincache |
D | XcacheEngine |
Question 14 |
The_____folder is where you'll place third-party PHP libraries you need to use with your cakePHP application.
A | app |
B | vendors |
C | lib |
D | plugins |
Question 15 |
Which of the following is NOT a View Class in CakePHP?
A | XML |
B | JSON |
C | XHTML |
D | Media |
Question 16 |
How can you load all plugins at once?
A | CakePlugin::load('all') |
B | CakePlugin::load(true) |
C | App::loadAllPlugins() |
D | CakePlugin::loadAll() |
Question 17 |
The view layer in CakePHP can be made up of a number of different parts. What are the deferent part of view layer?
A | View |
B | Element |
C | Controller |
D | Model |
Question 18 |
The association types in CakePHP are:
A | hasOne, hasMany, belongsTo, and hasAndBelongsToMany |
B | oneToOne, oneToMany, manyToOne, manyToMany |
C | hasAll, hasMany, belongsTo, manyToMany |
D | hasAll, hasMany, belongsTo |
Question 19 |
Which of email transports can be used in CakeEmail?
A | Mail and Smtp |
B | Mail, Smtp and your own |
C | Only Mail |
D | Only Smtp |
Question 20 |
What are commonly used helpers of cakephp?
A | CacheHelper |
B | HtmlHelper |
C | jsHelper |
D | All of them |
Question 21 |
Which is not a core Component in CakePHP?
A | Paginator |
B | RequestHandler |
C | Security |
D | DebugKit |
Question 22 |
What is a .ctp file in cakephp?
A | Common Timing Protocol |
B | misnamed |
C | PHP Container File |
D | CakePHP Template |
Question 23 |
To change the default value of security salt,you have to work with the core php file located in
A | /app/Config/core.php |
B | /app/core.php |
C | /system/config/core.php |
D | /config//app/core.php |
Question 24 |
What are commonly used components of cakephp?
A | Security |
B | Access control lists |
C | Session |
D | All of them |
Question 25 |
Cakephp allows you to setup a combination of controllers, models and views and release as a packaged application.
A | Helper |
B | Plugin |
C | Views |
D | Behavior |
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
Get Results
There are 25 questions to complete.
← |
List |
→ |
Return
Shaded items are complete.
1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 |
End |
Return
You have completed
questions
question
Your score is
Correct
Wrong
Partial-Credit
You have not finished your quiz. If you leave this page, your progress will be lost.
Correct Answer
You Selected
Not Attempted
Final Score on Quiz
Attempted Questions Correct
Attempted Questions Wrong
Questions Not Attempted
Total Questions on Quiz
Question Details
Results
Date
Score
Hint
Time allowed
minutes
seconds
Time used
Answer Choice(s) Selected
Question Text
All done
Need more practice!
Keep trying!
Not bad!
Good work!
Perfect!