Olete.in
Articles
Mock Tests
🧪 Yii PHP web application framework MCQ Quiz Hub
PHP Yii MCQ Questions
Choose a topic to test your knowledge and improve your Yii PHP web application framework skills
1. Which of the following is true about Yii?
The Yii framework is an open-source PHP framework for rapidly-developing, modern Web applications
Yii is built around the Model-View-Controller composite pattern
Yii provides secure and professional features to create robust projects rapidly
All of the above
2. The r parameter in the URL stands for ?
response
route
render
requires
3. Which folder entry point from web?
Tests
View
C. Web
Config
4. To create a model, you should extend the?
yiiderivedModel class
baseModel class
derivedModel class
yiiaseModel class
5. The _______ function should normalize the widget properties.
run()
render()
init()
widget()
6. A ________ is an entity that has its own models, views, controllers, and possibly other modules.
Widget
Module
Models
Views
7. Which of the following is true about External Assets?
The assets are located in a web accessible directory
The assets are located in the directory that cannot be directly accessed via web.
The assets are located on another web server.
None of These
8. Yii is equipped with a Web-based code generation tool called
Yii
Gii
Zii
Cii
9. Which represents a query criteria, such as conditions, ordering by, limit/offset?
Query
CQuery
CDbCriteria
None of the above
10. The asset manager in Yii converts assets in extended syntax into CSS and JS, automatically.
TRUE
FALSE
Can be true or false
Can not say
11. Which of the following is not a feature of Yii?
Yii implements the MVC architectural pattern
It is extremely extensible.
Yii provides single-tier caching support.
Yii provides RESTful API development support.
12. Which folder contains all the third-party packages managed by Composer?
Vendor
Views
Web
Config
13. . The global constants should be defined at the __________ of an entry script.
end
beginning
middle
anywhere in the script
14. A ________ is a reusable client-side code, which contains HTML, CSS, and JS.
Widget
Models
Modules
Views
15. To use a widget in a View, you should call the yiiaseWidget::widget() function.
TRUE
FALSE
Can be true or false
Can not say
16. Yii manages assets in ?
asset blocks
asset views
asset trigger
asset bundles
17. Which assestbundles Includes the yii.js file?
yiiwebJqueryAsset
yiiwebYiiAsset
yiiootstrapBootstrapAsset
yiijuiJuiAsset
18. when you write a new widget, which class you are extending?
Widget
CWidget
CForm
CControl
19. To access a database table, we first need to define an AR class by extending
CActive
ActiveRecord
CController
CActiveRecord
20. Cookies are plain text files stored on the client side.
TRUE
FALSE
Can be true or false
Can not say
Submit