PHP Yii MCQ Questions & Answers

This section focuses on "Yii" PHP Framework. These Multiple Choice Questions (MCQ) should be practiced to improve the PHP Yii skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.

1. Which of the following is true about Yii?

A. The Yii framework is an open-source PHP framework for rapidly-developing, modern Web applications
B. Yii is built around the Model-View-Controller composite pattern
C. Yii provides secure and professional features to create robust projects rapidly
D. All of the above

View Answer


2. The r parameter in the URL stands for ?

A. response
B. route
C. render
D. requires 

View Answer


3. Which folder entry point from web?

A. Tests 
B. View
C. Web
D. Config

View Answer


4. To create a model, you should extend the?

A. yiiderivedModel class
B. baseModel class
C. derivedModel class
D. yiiaseModel class

View Answer


5. The _______ function should normalize the widget properties.

A. run()
B. render()
C. init()
D. widget()

View Answer


6. A ________ is an entity that has its own models, views, controllers, and possibly other modules.

A. Widget
B. Module
C. Models
D. Views

View Answer


7. Which of the following is true about External Assets?

A. The assets are located in a web accessible directory
B. The assets are located in the directory that cannot be directly accessed via web.
C. The assets are located on another web server.
D. None of the above

View Answer


8. Yii is equipped with a Web-based code generation tool called

A. Yii
B. Gii
C. Zii
D. Cii

View Answer


9. Which represents a query criteria, such as conditions, ordering by, limit/offset?

A. Query
B. CQuery
C. CDbCriteria
D. None of the above

View Answer


10. The asset manager in Yii converts assets in extended syntax into CSS and JS, automatically.

A. TRUE
B. FALSE
C. Can be true or false
D. Can not say

View Answer





Discussion


* You must be logged in to add comment.