EMT Practice Test

1. Question Content...


Question List

Question1: You want to create a wrapper block that uses an HTML tag name which is set by the action setHtmlTagName. The wrapper block should render all its child blocks within the HTML tag. Which block type should you use to create the wrapper block?

Question2: When you create an inline translation, where is it stored?

Question3: In layout XML, which of the following action methods would you use to define the block identifier on a block of type cms/block?

Question4: What is the difference between "display: none" and "visibility: hidden"?

Question5: Given the layout XML example below, which one of the following actions will cause the title, "Some Title," to be translated by Magento?
EXAMPLE:

Question6: Which file adds "breadcrumbs" on pages?

Question7: Given the following HTML and CSS, what color will the word "nice be:

Question8: Given the following XML, which statement is true?

Question9: Given the information shown below, which answer will correctly assign a customized template file using layout XML?
Block type:
example/controller
Template path:
/a pp/design/frontend/base/exampletheme/examplefolder/example.phtml

Question10: Using Magentos JavaScript translator object, which is the correct option for translating JavaScript strings within a.phtml file?

Question11: Which of the following is a native frontend layout handle in Magento?

Question12: How can you override a native template file in an activated custom theme, using the design fallback?

Question13: You want to create a new "screendesign" package based on the "default" package's "default" theme.
Which ONE of the following steps do you have to take?

Question14: Which two of the following examples can be used to include a custom JavaScript on every page? (Choose TWO.)

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

Question16: You want to change the number of columns per row in the list of upsell products on all product pages.
Where do you set the parameter that specifies the number of columns?

Question17: Given the following layout XML, what will be the expected result on the Magento frontend?

Question18: What is the function of the attribute output= "to Html" when applied to a <block> tag?

Question19: 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?

Question20: Using prototype.js, which selector would be used to target a group of list items with the class of item?

Question21: In which of the following directories is a .xml file located?

Question22: To configure a category to display a set of "Shop By" filters, what is the correct option to set in the Magento admin?

Question23: A block named newsletter is already defined in the layout XML, as in the example shown below. The page on which the block is visible has a three-column layout. How can you move the block from the left column to the right column?

Question24: Which code snippet shows the correct way to add a JavaScript file from your custom theme to all Magento pages?

Question25: Which is the proper XML markup for creating a new content block containing the content from a CMS static block?

Question26: Which is the correct order of the three types of translations by priority (1 = highest, 3 = lowest)?

Question27: Which XML layout handle is used to assign layout configurations to all pages of a store?

Question28: Given the following HTML code, how are the divs "#column1", "#column2", and "#column3" displayed on the page?

Question29: What is System -> Design used for?

Question30: You have created a custom theme called my_theme within the default package and want to override the native template file /page/lcolumn.phtml. You will need to place the file in the following structure:

Question31: How can a template be included in a CMS block?

Question32: Your project, which uses prototype.js, contains the JavaScript class Photoviewer (see EXAMPLE, below).
Which one of the following code samples will create a class called AdvancedPhotoViewer that extends Photoviewe r?
EXAMPLE:
var PhotoViewer = Class.create();

Question33: Which of these block types can be used to define "breadcrumbs" on a page?

Question34: What type of block is created by the code below?

Question35: Based on the code below, what color will a browser display in rendering the text inside the div tag?

Question36: You want to add CSS to an HTML page. Which HTML tag would you use?

Question37: A parent HTML element has the style position:relative". You need to position a child element within the parent so that the child's position originates from the parent element's box. Which style on the child will accomplish that?

Question38: Which two of the following code samples contain correct XML code for adding style.css to a page?
(Choose TWO.)

Question39: You want to set up different languages in a Magento installation with multiple stores. Which configuration scope should you use?

Question40: In Magento layouts, which attribute for <block> defines the functionality of the block?

Question41: You want to override the lcolumn.phtml file. Which two of the following methods could you use? (Choose TWO.)

Question42: Which type of block defines the HTML head section of the page, which contains elements for including JavaScript, CSS, etc.?

Question43: 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?

Question44: Which string will NOT be translated?

Question45: Which ONE of the following adds links to the top links navigation?

Question46: If you want to provide an existing custom theme for a mobile device browser, you'll only have to
_____________.

Question47: Which attribute of an XML tag in the layout defines the system configuration key to be checked before performing the action method?

Question48: Which one of these code samples will assign a root template to a specific page of native Magento?

Question49: How can you minimize the number of HTTP requests made by your native Magento sites for JavaScript files?

Question50: Which one of the following methods assigns a custom template to the product compare sidebar block?

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

Question52: Which of following "if else" constructs is used in Magento core templates?

Question53: You have created a system of multiple stores within a single Magento installation. Which one of the following levels of settings is NOT available?

Question54: Which of the following is the correct code for assigning a custom template file using layout XML?

Question55: 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?

Question56: Which is the correct type attribute for a structural block?

Question57: You want to add the file "somescript.js" in a template. The JS-file is in the folder "root: js/lib". Which piece of code should you use?

Question58: Which file adds the search module on a Magento website frontend?

Question59: What is the total width of a block-element styled with the following CSS?

Question60: Given the following code, what color is the word "sale"?

Question61: You want to remove the right structural block from a page. Which code should you use?

Question62: What is the correct PHP code for adding the output of a CMS block to a template?

Question63: Where are the core module translations located?

Question64: Layered navigation is displayed for a specific category when _________?

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

Question66: Which layout handle can be used to assign a customized template file to the filter navigation block in the left column?

Question67: Which of the following is the layout update handle loaded for built-in simple products?

Question68: Which two of the following would add a CSS file to every page? (Choose TWO.)

Question69: The underscore prefix ("_") in variable names in Magento template files marks these variables as
__________?

Question70: What does the <update handle="catalog_seo_sitemap" /> element do in the following piece of layout XML?

Question71: You want to figure out which phtml-files are rendering in the front end. Which developer tool helps you do that?

Question72: In order to display a custom design on a category landing page for a set number of days, you need to make a change to the ___ area of Magento.

Question73: Which piece of code creates a url that links to the store pages in transactional email templates?

Question74: Given a configured package "mypackage", which of the following sequences of design fallback steps is correct?

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

Question76: What result will be produced by the following layout handle?

Question77: You created a header-new.phtml from the original header.phtml. How can you force Magento to use that new file in place of the native header block template?

Question78: You want to load my-file.js only on the exam' CMS page. In native Magento, which two of the following statements are true? (Choose TWO.)

Question79: In layout XML, which two handles are used to assign layout rules to catalog category pages of a store?
(Choose TWO.)

Question80: Which element in layout XML specifies a method to be called on a referenced or newly defined block?