magento m70-301 practice test

Front End Certified Developer

Last exam update: Nov 18 ,2025
Page 1 out of 8. Viewing questions 1-15 out of 107

Question 1

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

  • A. <block type=“core/text_list” name=“custom.template” template=“ folder/custom_template.phtml”/>
  • B. <block type=“core/template” name=“custom template” template=“ folder/custom_template.phtml”/>
  • C. <block type=“block/template” name=“custom template” template=“ folder/custom_template.phtml”/>
  • D. <block type=“cms/block” name=“custom.template” template=“ folder/custom_template.phtml”/>
  • E. <block type=“block/html” name=“custom template” template=“ folder/custom_template.phtml”/>
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 2

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?

  • A. page/html
  • B. page/wrapper
  • C. page/div wrapper
  • D. page/html_wrapper
Mark Question:
Answer:

D

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 3

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

  • A. Profiler
  • B. Exception.log
  • C. Block Class Names
  • D. Template Path Hints
  • E. System.log
Mark Question:
Answer:

D

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 4

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

  • A. 1. Database (Inline) translation 2. Module translation 3. Theme translation
  • B. 1. Database (Inline) translation 2. Theme translation 3. Module translation
  • C. 1. Module translation 2. Database (In line) translation 3. Theme translation
  • D. 1. Theme translation 2. Database (In line) translation 3. Module translation
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 5

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

  • A. { {store url= “ ”}}
  • B. { { store_page url= “ ”} }
  • C. { { store_url= “ ”} }
  • D. { { store_name url= “ ”} }
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 6

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();

  • A. var AdvancedPhotoViewer = new PhotoViewer()
  • B. AdvancedPhotoViewer.prototype = Object.extend (new PhotoViewer ()
  • C. var AdvancedPhotoViewer = Class.extend (PhotoViewer)
  • D. AdvancedPhotoViewer = PhotoViewer.extend ()
Mark Question:
Answer:

B

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 7

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

  • A. <action>
  • B. <call>
  • C. <change>
  • D. <method>
  • E. <update>
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

Question 8

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

B.

C.

D.

Mark Question:
Answer:

D

User Votes:
Discussions
vote your answer:
0 / 1000

Question 9

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?

  • A. Copy app/design/base to app/design/screendesign B. Create an empty folder app/design/frontend/screendesign and copy app/design/frontend/default/default into it
  • C. Create skin/frontend/screendesign, then copy the CSS and images folders and their files from /skin/frontend/default/default/ to skin/frontend/screendesign/default
  • D. Inside app/design/frontend and skin/frontend, copy the folder “default” to the folder “custom”; then rename custom/default to custom/screendesign in both places
  • E. Create app/design/frontend/default/screendesign
Mark Question:
Answer:

C

User Votes:
A
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
C
D
E
0 / 1000

Question 10

Which ONE of the following adds links to the top links navigation?
A.

B.

C.

D.

Mark Question:
Answer:

B

User Votes:
Discussions
vote your answer:
0 / 1000

Question 11

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

  • A. Page/html
  • B. Core/template
  • C. Core/text_list
  • D. Page/html_wrapper
Mark Question:
Answer:

C

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 12

Which is the correct type attribute for a structural block?

  • A. core/block
  • B. core/html_wrapper
  • C. core/text
  • D. core/text_list
Mark Question:
Answer:

D

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

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?

  • A. app/frontend/base/my_package/my_theme/template/catalogsearch/form.mini.phtml
  • B. app/design/frontend/base/default/template/customsearch/form.mini.phtml
  • C. app/design/frontend/my_theme/my_package/template/catalogsearch/custom.form.mini.phtml
  • D. app/design/frontend/my_package/my_theme/template/catalogsearch/form.mini.phtml
  • E. app/frontend/default/my_theme/customsearch/form.mini.phtml
Mark Question:
Answer:

D

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
vote your answer:
A
B
C
D
E
0 / 1000

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?

  • A. <block type=“core/template” name=“custom” template=“mytemplates/custom.phtml”/>
  • B. <block type=“core/template” name=“custom” template=“template/mytemplates/ custom.phtml”/>
  • C. <block type=“custom1’ name=“custom” template=“template/mytemplates/ custom.phtml”/>
  • D. <block type=“custom” name=“custom” template=“mytemplates/custom.phtml”/>
Mark Question:
Answer:

A

User Votes:
A
50%
B
50%
C
50%
D
50%
Discussions
vote your answer:
A
B
C
D
0 / 1000

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.)

  • A. after
  • B. as
  • C. before
  • D. name
  • E. template
  • F. type
Mark Question:
Answer:

D, E, F

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
F
50%
Discussions
vote your answer:
A
B
C
D
E
F
0 / 1000
To page 2