Yii
Test
Model Test
Ebook
Quiz-1: Yii Basic
Index
Yii Home
Basic
51
Controller
1
Model
3
Yii Component
1
Schools
Ebook
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
Question:
To start using the Query Builder, we create a new instance of
A
DbCommand
B
CDbCommand
C
Command
D
Connection
Note:
Not available
Show answer
Show Note
Report
Question:
To access a database table, we first need to define an AR class by extending
A
CActive
B
ActiveRecord
C
CController
D
CActiveRecord
Note:
Not available
Show answer
Show Note
Report
Question:
Which method need to call to finish the insertion?
A
Add()
B
Save()
C
Insert()
D
Insertion()
Note:
Not available
Show answer
Show Note
Report
Question:
To read data in a database table, which method we need to call?
A
Add()
B
Save()
C
Insert()
D
Find()
Note:
Not available
Show answer
Show Note
Report
Question:
. Which represents a query criteria, such as conditions, ordering by, limit/offset?
A
Query
B
CDbCriteria
C
CQuery
D
CdQuery
Note:
Not available
Show answer
Show Note
Report
First
Prev
3
4
5
6
Next
Last
/6
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2025. Powered by
Intellect Software Ltd