Cake PHP Set 3
Free Online Cake PHP MCQ Questions for improve your basic knowledge of Cake PHP. This Cake PHP Set 3 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 3.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1 |
How to including helpers in controller?
A | $helper=array('From','Html','Js','Time'); |
B | array('From','Html','Js','Time') |
C | public $helpers=array('From','Html','Js','Time'); |
D | none of them |
Question 2 |
Model classnames are ______ and CamelCased.
A | plural |
B | singular |
C | both |
D | none |
Question 3 |
Which is the default controller provided to serve static content?
A | StaticController |
B | PagesController |
C | HtmlController |
D | ContentController |
Question 4 |
Which of the following is not a built in ConsoleOutput style?
A | question |
B | warning |
C | flash |
D | comment |
Question 5 |
which of the following is a correct name for a controller file?
A | QuestionsController |
B | questionsController |
C | questionController |
D | Questioncontroller |
Question 6 |
How do you display the schema of the model in CakePHP?
A | $this->ModelName->schema(); |
B | $this->ModelName->get(); |
C | $this->ModelName->write(); |
D | $this->ModelName->request(); |
Question 7 |
To work with database in the latest version of cakePHP,__ ____must be enabled in your php.ini file.
A | mysql |
B | pdo_mysql |
C | pdo_mysqli |
D | mysqli |
Question 8 |
In cakephp validation rules are defined in:
A | controller |
B | model |
C | view |
D | helper |
Question 9 |
Which of the following is NOT a method that must be implemented for all CRUD methods?
A | calculate($model, $func, $params) |
B | find(‘list’, $params) |
C | listSources($data = null) |
D | describe($model) |
Question 10 |
What is the name of Cake’s database configuration file?
A | database.php.default |
B | database.php |
C | databaseconfig.php |
D | config.php |
Question 11 |
In CakePHP,what are the server built-in ways of authenticating users stored in your application?
A | Fromauthenticate |
B | Databaseauthenticate |
C | Basicauthenticate |
D | Digestauthenticate |
Question 12 |
Which database storage engine is not supported by the core installation?
A | MySQL |
B | SQLite |
C | Microsoft SQL Server |
D | MongoDB |
Question 13 |
Model extensions in CakePHP is called
A | Components |
B | Behavious |
C | Helpers |
D | All |
Question 14 |
What kind of functionality does the Security Component provide?
A | Form tampering protection |
B | CSRF protection |
C | Requiring that SSL be used |
D | all |
Question 15 |
_______are an abstraction that enable models to manipulate different types of data
A | consistenty |
B | components |
C | Datasources |
D | behaviours |
Question 16 |
What are the name of datasource in CakePHP Configuratoin array
A | Database/SqlServer |
B | Database/MySql |
C | Database/postgee |
D | All of them |
Question 17 |
The render() method is automatically called at the end of each requested controller______.
A | controller |
B | model |
C | action |
D | view |
Question 18 |
What class in CakePHP must be active in order for a user to see the error, “The request has been black-holed”?
A | SecurityComponent |
B | RequestHandlerComponent |
C | BaseAuthenticate |
D | AuthComponent |
Question 19 |
The model named Post will tied to a database table named ___________ automatically.
A | Post |
B | posts |
C | tbl_post |
D | none |
Question 20 |
When a user uses a form to POST data to your application, that information is available in_____
A | $this->get->data |
B | $this->post->data |
C | $this->form->data |
D | $this->request->data |
Question 21 |
Every cakePHP request includes a CakeRequest object object which is accessible using $this->request.
A | TRUE |
B | FALSE |
C | none |
D | sometime true |
Question 22 |
How can you share logic between controllers?
A | Views |
B | Helpers |
C | Components |
D | Behaviors |
Question 23 |
What is the default action for a controller?
A | index() function |
B | control() function |
C | main() function |
D | None of these |
Question 24 |
What is the proper way to delete a record?
A | deleteAll(mixed $conditions, $cascade = true, $callbacks = false) |
B | delete(int $condition = null, boolean $cascade = true); |
C | delete(int $id = null, boolean $cascade = true); |
D | none |
Question 25 |
What does the ACL (Access Control Lists) Component provide?
A | Availability |
B | Encryption |
C | Authentication |
D | Authorization |
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!