M70-301 practice questions, page 2 of 5, with answer review and explanations.
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();
var AdvancedPhotoViewer = new PhotoViewer()
AdvancedPhotoViewer.prototype = Object.extend (new PhotoViewer ()
var AdvancedPhotoViewer = Class.extend (PhotoViewer)
AdvancedPhotoViewer = PhotoViewer.extend ()
Question 7
Which element in layout XML specifies a method to be called on a referenced or newly defined block?
<action>
<call>
<change>
<method>
<update>
Question 8
Which one of these code samples will assign a root template to a specific page of native Magento?
Option A
Option B
Option C
Option D
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?
Copy app/design/base to app/design/screendesign
Create an empty folder app/design/frontend/screendesign and copy app/design/frontend/default/default into it
Create skin/frontend/screendesign, then copy the CSS and images folders and their files from /skin/frontend/default/default/ to skin/frontend/screendesign/ default
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
Create app/design/frontend/default/screendesign
Question 10
Which ONE of the following adds links to the top links navigation?