Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Magento M70-301 Practice Exam with Questions & Answers | Set: 2

Questions 11

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

Options:
A.

var AdvancedPhotoViewer = new PhotoViewer()

B.

AdvancedPhotoViewer.prototype = Object.extend (new PhotoViewer ()

C.

var AdvancedPhotoViewer = Class.extend (PhotoViewer)

D.

AdvancedPhotoViewer = PhotoViewer.extend ()

Magento M70-301 Premium Access
Questions 12

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

M70-301 Question 12

Options:
A.

green

B.

blue

C.

red

D.

black

Questions 13

Which is the correct type attribute for a structural block?

Options:
A.

core/block

B.

core/html_wrapper

C.

core/text

D.

core/text_list

Questions 14

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

Options:
A.

$(‘ul’).children(‘li.item’)

B.

$(‘item’)

C.

$$(‘li.item’)

D.

$$(‘ul > li#item’)

Questions 15

Which string will NOT be translated?

Options:
A.

“You can save % s %% in the next 15 min.”, “Du kannst % s %% in den nachsten 15min sparen”

B.

“Click <a href= “%s”>here</a> to continue.”,”Klicken Sie <a href=“%s”>hier</a> um welter zu machen .”

C.

“We\’ll send you a new password.” , ”Wir werden dir emneues Password zusenden.”

D.

“The coupon has expired” , ” Der Coupon ist “abgelaufen”

Questions 16

The underscore prefix (“_”) in variable names in Magento template files marks these variables as __________?

Options:
A.

“protected”

B.

“public”

C.

“private”

D.

declared in the template file

Questions 17

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?

Options:
A.

position:absolute

B.

position:fixed

C.

position:relative

D.

position:static

Questions 18

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

Options:
A.

mypackage/default/template/my/template.phtml

B.

base/mytheme/template/my/template.phtml

C.

default/default/template/my/template.phtml

D.

base/default/template/my/template.phtml

E.

default/mytheme/template/my/template.phtml

F.

mypackage/mytheme/template/my/template.phtml

Questions 19

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

Options:
A.

core/head

B.

core/template

C.

page/head

D.

page/html_head

E.

page/head_template

Questions 20

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

Options:
A.

Enable JavaScript merging in the admin.

B.

Move JavaScript requests to footer block in local.xml.

C.

Enable all Cache Storage Management.

D.

Remove Magento JavaScript and only use files hosted by a third party CDN.

Exam Code: M70-301
Certification Provider: Magento
Exam Name: Magento Front End Developer Certification Exam
Last Update: Jul 9, 2025
Questions: 107