M70-301

M70-301 practice questions, page 3 of 5, with answer review and explanations.

Question 11

When a block of type __________ is rendered, all its child blocks are rendered automatically, without the need to call the getChildHtml () method.

  1. Page/html
  2. Core/template
  3. Core/text_list
  4. Page/html_wrapper

Question 12

Which is the correct type attribute for a structural block?

  1. core/block
  2. core/html_wrapper
  3. core/text
  4. core/text_list

Question 13

Within a Magento instance configured to use the package name `my_package` and the theme name `my_theme`, which file would override the default catalog search template?

  1. app/frontend/base/my_package/my_theme/template/catalogsearch/form.mini.phtml
  2. app/design/frontend/base/default/template/customsearch/form.mini.phtml
  3. app/design/frontend/my_theme/my_package/template/catalogsearch/custom.form.mini.phtml
  4. app/design/frontend/my_package/my_theme/template/catalogsearch/form.mini.phtml
  5. app/frontend/default/my_theme/customsearch/form.mini.phtml

Question 14

You have added some HTML to a custom template located at `template/mytemplates/custom.phtml`. Which code snippet is the correct way to create a block for custom.phtml in the layout XML?

  1. <block type=ג€core/templateג€ name=ג€customג€ template=ג€mytemplates/custom.phtmlג€/>
  2. <block type=ג€core/templateג€ name=ג€customג€ template=ג€template/mytemplates/ custom.phtmlג€/>
  3. <block type=ג€custom1' name=ג€customג€ template=ג€template/mytemplates/ custom.phtmlג€/>
  4. <block type=ג€customג€ name=ג€customג€ template=ג€mytemplates/custom.phtmlג€/>

Question 15

You need to add a custom structural block template to a block that will render all children automatically. Which three attributes are required in the block's XML definition? (Choose THREE.)

  1. after
  2. as
  3. before
  4. name
  5. template
  6. type