Yii
Test
Model Test
Ebook
Quiz-1: Yii Basic
Index
Yii Home
Basic
51
Controller
1
Model
3
Yii Component
1
Schools
Ebook
Question:
To read data in a database table, which methods we need to call?
A
find()
B
findAll()
C
read()
D
readByPk()
E
findByAttributes(
Note:
Not available
Show answer
Show Note
Report
Question:
Which is correct ?
A
Chtml::Error()
B
CHtml::error()
C
form->error()
D
form->error
Note:
Not available
Show answer
Show Note
Report
Question:
Which is correct ?
A
$form->hiddenField()
B
CHtml ->hiddenField()
C
CHtml:: hiddenField()
D
none of the above
Note:
Not available
Show answer
Show Note
Report
Question:
Which is correct ?
A
$form-> submitButton ()
B
CHtml -> submitButton ()
C
CHtml::submitButton()
D
none of the above
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
Question:
AR stands for in Yii framework
A
Auto Read
B
Active Rules
C
All Records
D
Active Records
Note:
Not available
Show answer
Show Note
Report
Question:
. ____method use to delete a row of data ?
A
delete()
B
remove()
C
truncate()
D
All of them
Note:
Not available
Show answer
Show Note
Report
Question:
The validation is based on the rules specified in the ______method of the AR class?
A
rules()
B
Validation()
C
Check()
D
Check
Note:
Not available
Show answer
Show Note
Report
Question:
when you create a new object of widget class, what is you have to write?
A
Widget
B
CWidget
C
$this->beginWidget()
D
$this->Widget()
Note:
Not available
Show answer
Show Note
Report
Question:
What is the first parameter of widget object
A
CActiveForm
B
id
C
htmlOptions
D
enableAjaxValidation
Note:
Not available
Show answer
Show Note
Report
First
Prev
1
2
3
4
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