Yii PHP web application framework/PHP Yii MCQ Questions Sample Test,Sample questions

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

1.Widget

2.Module

3.Models

4.Views


Question:
. The global constants should be defined at the __________ of an entry script.

1.end

2.beginning

3.middle

4.anywhere in the script


Question:
A ________ is a reusable client-side code, which contains HTML, CSS, and JS.

1.Widget

2.Models

3.Modules

4.Views


Question:
Cookies are plain text files stored on the client side.

1.TRUE

2.FALSE

3.Can be true or false

4.Can not say


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

1.TRUE

2.FALSE

3.Can be true or false

4.Can not say


Question:
The r parameter in the URL stands for ?

1.response

2.route

3.render

4.requires


Question:
The _______ function should normalize the widget properties.

1.run()

2.render()

3.init()

4.widget()


Question:
To access a database table, we first need to define an AR class by extending

1.CActive

2.ActiveRecord

3.CController

4.CActiveRecord


Question:
To create a model, you should extend the?

1.yiiderivedModel class

2.baseModel class

3.derivedModel class

4.yiiaseModel class


Question:
To use a widget in a View, you should call the yiiaseWidget::widget() function.

1.TRUE

2.FALSE

3.Can be true or false

4.Can not say


Question:
when you write a new widget, which class you are extending?

1.Widget

2.CWidget

3.CForm

4.CControl


Question:
Which assestbundles Includes the yii.js file?

1.yiiwebJqueryAsset

2.yiiwebYiiAsset

3. yiiootstrapBootstrapAsset

4.yiijuiJuiAsset


Question:
Which folder contains all the third-party packages managed by Composer?

1.Vendor

2.Views

3.Web

4.Config


Question:
Which folder entry point from web?

1.Tests

2.View

3. C. Web

4.Config


Question:
Which of the following is not a feature of Yii?

1.Yii implements the MVC architectural pattern

2.It is extremely extensible.

3.Yii provides single-tier caching support.

4.Yii provides RESTful API development support.


Question:
Which of the following is true about External Assets?

1.The assets are located in a web accessible directory

2.The assets are located in the directory that cannot be directly accessed via web.

3.The assets are located on another web server.

4.None of These


Question:
Which of the following is true about Yii?

1.The Yii framework is an open-source PHP framework for rapidly-developing, modern Web applications

2.Yii is built around the Model-View-Controller composite pattern

3.Yii provides secure and professional features to create robust projects rapidly

4.All of the above


Question:
Which represents a query criteria, such as conditions, ordering by, limit/offset?

1.Query

2.CQuery

3.CDbCriteria

4.None of the above


Question:
Yii is equipped with a Web-based code generation tool called

1.Yii

2.Gii

3. Zii

4.Cii


Question:
Yii manages assets in ?

1. asset blocks

2.asset views

3. asset trigger

4.asset bundles


More MCQS

  1. PHP Yii MCQ Questions & Answers
  2. PHP Laravel MCQ
  3. PHP Symfony MCQ
  4. PHP CodeIgniter MCQ
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!