M70-301

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

Question 16

You want to add additional XML (`Additional XML Declaration`) to an existing layout block. Which is the proper tag for adding it?

  1. <reference type=ג€blockג€>Additional XML Declaration</ reference>
  2. <action method= ג€addNewBlockג€><block name>Additional XML Declaration <I block name></ action>
  3. <reference name=ג€block.nameג€>Additional XML Declaration</reference>
  4. <method action= ג€setBlockContentג€><xml>Additional XML Declaration</xml></method>

Question 17

What is the proper layout update handle for adding a CSS file to the product page?

  1. <catalog_product>
  2. <catalog_product_view>
  3. <default>

Question 18

The name of a design package in the Design tab of the System->Configuration window in Admin is also used as ________ and ________ . (Choose TWO.)

  1. a folder name in app/design/frontend
  2. a configuration value taken from index.php
  3. a folder name in skin/frontend
  4. a setting in the menu System -> Design
  5. a folder name in app/design/frontend/base

Question 19

You have a `custom/default` design package. You need to edit this file: /app/design/frontend/base/defauIt/template/page/html/header.Phtml Which method is a bad practice because the file will be overwritten during Magento upgrades?

  1. Edit the ג€base/defaultג€ file directly.
  2. Create a new module in ג€base/defaultג€ called ג€customג€ and copy the file there for editing.
  3. Create a new package called ג€custom/customג€ and copy the file there for editing.
  4. Copy the file to ג€custom/defaultג€ for editing.

Question 20

Given a configured package `tmypackage` and a configured theme `mytheme`, which THREE of the following templates would be part of the design fallback? (Choose THREE.)

  1. mypackage/default/template/my/template.phtml
  2. base/mytheme/template/my/template.phtml
  3. default/default/template/my/template.phtml
  4. base/default/template/my/template.phtml
  5. default/mytheme/template/my/template.phtml
  6. mypackage/mytheme/template/my/template.phtml