Basic
Test
Model Test
Ebook
Quiz-1: Yii Basic
Index
Yii Home
Basic
51
Controller
1
Model
3
Yii Component
1
Schools
Ebook
Question:
Which models are used to store data collected from user input?
A
Active Record Model
B
Form Model
C
Widget
D
CModel
Note:
Not available
Show answer
Show Note
Report
Question:
Which views refer to the views used by Yii to display error and logging information?
A
Layout
B
Form
C
System
D
All of them
Note:
Not available
Show answer
Show Note
Report
Question:
A component is an instance of ____________or its derived class.
A
CModel
B
CController
C
CForm
D
CComponent
Note:
Not available
Show answer
Show Note
Report
Question:
How we can retrieve the error messages?
A
by calling CModel::getErrors() and CModel::getError().
B
by calling CModel:: Errors() and CModel:: Error()
C
by calling Errors() and Error()
D
by calling Errors() and Error()
E
All of them
Note:
Not available
Show answer
Show Note
Report
Question:
To create a text input field, we can call
A
CHtml::textField();
B
CForm::textField()
C
CModel::textField()
D
CController::textField()
Note:
Not available
Show answer
Show Note
Report
Question:
______________generates a label associated with the specified model attribute.
A
Labe
B
CHtml::Label
C
CHtml::activeLabel()
D
activeLabel
Note:
Not available
Show answer
Show Note
Report
Question:
CFormInputElement recognizes which of the following built-in types?
A
ActiveLabel
B
ActiveTextbox
C
Text
D
Hidden
E
password
Note:
Not available
Show answer
Show Note
Report
Question:
Yii introduces which of the three ways that allow you to work with databases?
A
Active Record
B
ADO
C
Query Builder
D
SQL via DAO
Note:
Not available
Show answer
Show Note
Report
Question:
Yii DAO mainly consists, which of the following classes?
A
DataReader
B
CDbConnection
C
CDbCommand
D
SqlCommand
Note:
Not available
Show answer
Show Note
Report
Question:
Which class represents a connection to a database?
A
CDbConnection
B
SQLConnection
C
DBConnection
D
Connection
Note:
Not available
Show answer
Show Note
Report
First
Prev
2
3
4
5
6
Next
Last
/6
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2024. Powered by
Intellect Software Ltd