M70-201

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?

  1. _toHtml()
  2. toHtmlO
  3. setLayout ()
  4. renderLayout ()

Question 12

Which kind of class is responsible for calculating the actual amount of reward points in every case?

  1. Reward model (Enterprise_Reward_Model_Reward)
  2. Action model (derivatives from Entet:prise_Reward_Model_Action)
  3. Event model (derivatives from Enterprise_Reward_Model_Event)
  4. 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

  1. Admin, Standard, CMS, Default
  2. Default, CMS, Standard, Admin
  3. Admin, CMS, Standard, Default
  4. Standard, Admin, Default, CMS

Question 14

What type of Magento class is an API resource?

  1. Controller
  2. Helper
  3. Model
  4. 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)

  1. Declare your module's block class prefix in the config.xml file.
  2. Implement a sub-class of Mage_Adminhtml_Block_Widget_Form.
  3. Implement a sub-class of Mage_Adminhtml_Block_Form_Abstract.
  4. Create sub-classes of Mage_Adminhtml_Block_Form_Element_Abstract for each form field to be presented.
  5. Add a set of configuration values in the module's config-xml defining the form fields to be displayed.