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 |
The render() method is automatically called at the end of each requested controller______.
A | controller |
B | model |
C | action |
D | view |
Question 2 |
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 3 |
What does the ACL (Access Control Lists) Component provide?
A | Availability |
B | Encryption |
C | Authentication |
D | Authorization |
Question 4 |
which of the following is a correct name for a controller file?
A | QuestionsController |
B | questionsController |
C | questionController |
D | Questioncontroller |
Question 5 |
The model named Post will tied to a database table named ___________ automatically.
A | Post |
B | posts |
C | tbl_post |
D | none |
Question 6 |
What is the name of Cake’s database configuration file?
A | database.php.default |
B | database.php |
C | databaseconfig.php |
D | config.php |
Question 7 |
Model extensions in CakePHP is called
A | Components |
B | Behavious |
C | Helpers |
D | All |
Question 8 |
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 9 |
Every cakePHP request includes a CakeRequest object object which is accessible using $this->request.
A | TRUE |
B | FALSE |
C | none |
D | sometime true |
Question 10 |
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 11 |
In cakephp validation rules are defined in:
A | controller |
B | model |
C | view |
D | helper |
Question 12 |
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 13 |
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 14 |
_______are an abstraction that enable models to manipulate different types of data
A | consistenty |
B | components |
C | Datasources |
D | behaviours |
Question 15 |
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 16 |
Which database storage engine is not supported by the core installation?
A | MySQL |
B | SQLite |
C | Microsoft SQL Server |
D | MongoDB |
Question 17 |
Which of the following is not a built in ConsoleOutput style?
A | question |
B | warning |
C | flash |
D | comment |
Question 18 |
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 19 |
What is the default action for a controller?
A | index() function |
B | control() function |
C | main() function |
D | None of these |
Question 20 |
Which is the default controller provided to serve static content?
A | StaticController |
B | PagesController |
C | HtmlController |
D | ContentController |
Question 21 |
Model classnames are ______ and CamelCased.
A | plural |
B | singular |
C | both |
D | none |
Question 22 |
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 23 |
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 24 |
How can you share logic between controllers?
A | Views |
B | Helpers |
C | Components |
D | Behaviors |
Question 25 |
What are the name of datasource in CakePHP Configuratoin array
A | Database/SqlServer |
B | Database/MySql |
C | Database/postgee |
D | All of them |
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!