Yii
Test
Model Test
Ebook
Quiz-1: Yii Basic
Index
Yii Home
Basic
51
Controller
1
Model
3
Yii Component
1
Schools
Ebook
Question:
Which method is incorrect
A
$this->render
B
$this->renderPartial
C
$this-> loadModel
D
$this-> performAjaxValidation
E
$this->Validation
Note:
Not available
Show answer
Show Note
Report
Question:
A controller is an instance of
A
CController
B
CModel
C
CBase Class
D
CComponent
Note:
Not available
Show answer
Show Note
Report
Question:
. A controller has a default action. The default action will be executed by default, the default action is named as
A
View
B
Index
C
Render
D
Action
Note:
Not available
Show answer
Show Note
Report
Question:
Which can be defined as a method whose name starts with the word action?
A
Index
B
Controller
C
Action
D
Model
Note:
Not available
Show answer
Show Note
Report
Question:
A filter can also be an instance of
A
CFilter
B
CController
C
CDatabase
D
CModel
Note:
Not available
Show answer
Show Note
Report
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
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 © 2025. Powered by
Intellect Software Ltd