PHP Yii Framework Online Test

Instructions:

  • This practice test has 20 questions
  • You have to attempt all the questions
  • Time will be 05:00 minute for 20 questions. After 05:00 minute, practice test will be submitted automatically and you will redirect to result page.
  • This practice test is for self evalutation, if you get less marks then passing marks. Please prepare more for get excellent mark next time
  • Best of luck :)
Time: 05:00 minutes Passing Marks: 60%

1. Which programming language is Yii primarily associated with?

2. In Yii's database configuration, what is the primary purpose of specifying a 'tablePrefix'?

3. Which Yii console command can be used to create a new controller class for the RESTful API?

4. Which testing framework is used for functional and acceptance testing in Yii?

5. Which Yii method is used to create a new record in the database when working with ActiveRecord models?

6. What does Localization (l10n) primarily involve in Yii applications?

7. What is the minimum PHP version required for Yii 2 framework?

8. What is the primary benefit of using RESTful routing in Yii for building web applications?

9. In Yii, what is the recommended approach for customizing middleware behavior?

10. What does "code coverage" refer to in the context of testing Yii applications?

11. Which Yii extension is commonly used for implementing OAuth 2.0 authentication in RESTful applications?

12. What is database sharding in Yii, and how does it contribute to application scalability?

13. Which method of deploying a Yii application involves hosting it on a remote server maintained by a hosting provider?

14. What is caching in the context of Yii and RESTful APIs?

15. Which HTTP verb is typically used for the "create" action in RESTful routing?

16. Which version of PHP is required to run Yii?

17. In Yii, which component is responsible for handling pagination of data in RESTful APIs?

18. Which Yii component is typically used to create RESTful API endpoints?

19. Which phase of project management involves defining project objectives, tasks, and deliverables?

20. In Yii, what is the command to run all pending database migrations?