M70-201 practice questions, page 3 of 6, with answer review and explanations.
Question 11
Which of the following block methods is the best to override when there is a need to customize how the block's html is rendered?
_toHtml()
toHtmlO
setLayout ()
renderLayout ()
Question 12
Which kind of class is responsible for calculating the actual amount of reward points in every case?
Reward model (Enterprise_Reward_Model_Reward)
Action model (derivatives from Entet:prise_Reward_Model_Action)
Event model (derivatives from Enterprise_Reward_Model_Event)
Calculation model (Enterprise_Reward_Model_Calculator)
Question 13
In what order are the routers from the Magento core checked for a matching route? Default: Mage_Core_Controller_Varien_Router_Default CMS: Mage_Cms_Controller_Router - Standard: Mage_Core_Controller_Varien_Router_Standard Admin: Mage_Core_Controller_Varien_Router_Admin
Admin, Standard, CMS, Default
Default, CMS, Standard, Admin
Admin, CMS, Standard, Default
Standard, Admin, Default, CMS
Question 14
What type of Magento class is an API resource?
Controller
Helper
Model
Resource model
Question 15
To implement a standard Adminhtml form for a custom data model, which two of the following must you do? (Choose two)
Declare your module's block class prefix in the config.xml file.
Implement a sub-class of Mage_Adminhtml_Block_Widget_Form.
Implement a sub-class of Mage_Adminhtml_Block_Form_Abstract.
Create sub-classes of Mage_Adminhtml_Block_Form_Element_Abstract for each form field to be presented.
Add a set of configuration values in the module's config-xml defining the form fields to be displayed.