ExamGecko
Home / Adobe / AD0-E720 / List of questions
Ask Question

Adobe AD0-E720 Practice Test - Questions Answers, Page 3

List of questions

Question 21

Report Export Collapse

Where are the Magento Ul library LESS files located?

Magento_Ui/web/css/source/
Magento_Ui/web/css/source/
Magento_Lib/web/css/source
Magento_Lib/web/css/source
lib/web/css/source/lib
lib/web/css/source/lib
Suggested answer: B
Explanation:

This directory contains various LESS files that define variables, mixins, functions, and styles for common UI elements and components. The Magento_Ui/web/css/source and lib/web/css/source/lib directories are not valid and do not contain the Magento UI library LESS files.

Reference: [Magento UI library], [Magento UI library source files]

asked 02/10/2024
Wellington Rodrigues da Costa
42 questions

Question 22

Report Export Collapse

An Adobe Commerce developer has found following code:

Adobe AD0-E720 image Question 22 92285 10022024174856000000

After compiling the .less file into a .ess file, what will be the results of the code above?

A)

Adobe AD0-E720 image Question 22 92285 10022024174856000000

B)

Adobe AD0-E720 image Question 22 92285 10022024174856000000

C)

Adobe AD0-E720 image Question 22 92285 10022024174856000000

Option A
Option A
Option B
Option B
Option C
Option C
Suggested answer: B
Explanation:

After compiling the .less file into a .css file, the result of the code above will be option B. This is because the .less file uses a mixin called .animation() that takes two parameters: the name of the animation and the duration. The mixin defines a set of vendor-prefixed properties for the animation and assigns them the values of the parameters. For example:

.animation(@name; @duration) { -webkit-animation-name: @name; -webkit-animation-duration: @duration; -moz-animation-name: @name; -moz-animation-duration: @duration; animation-name: @name; animation-duration: @duration; }

When the mixin is called with the values ''fade'' and ''2s'', it will generate the following CSS code:

-webkit-animation-name: fade; -webkit-animation-duration: 2s; -moz-animation-name: fade; -moz-animation-duration: 2s; animation-name: fade; animation-duration: 2s;

Option A is not correct because it does not use the vendor prefixes for the animation properties. Option C is not correct because it uses the wrong values for the animation name and duration.

Reference: [LESS Mixins], [CSS Animations]

asked 02/10/2024
Francesco Mammola
43 questions

Question 23

Report Export Collapse

An Adobe Commerce developer is extending a theme from Magento\blank and wants to override parent styles. Which file does the developer need to change to override the parent theme styles?

web/css/source/_extends.less
web/css/source/_extends.less
web/css/source/_extend.less
web/css/source/_extend.less
web/css/source/_theme. less
web/css/source/_theme. less
Suggested answer: B
Explanation:

To override the parent theme styles, the developer needs to change the web/css/source/_extend.less file in the child theme. This file is used to import and extend the parent theme styles without modifying the original files. The developer can use the @import directive to import the parent theme styles and then use the .lib-css() mixin to override the CSS properties. For example:

@import 'source/_extend.less'; // Import parent theme styles .lib-css(color, red); // Override color property

The web/css/source/_extends.less and web/css/source/_theme.less files are not valid and will not work, as they do not follow the theme structure or the naming convention.

Reference: [Theme inheritance], [Extend parent theme styles]

asked 02/10/2024
Daniel Bucknor-Ankrah
44 questions

Question 24

Report Export Collapse

An Adobe Commerce developer has been asked to implement a custom font specifically for emails. The Adobe Commerce developer has already added their font into the file system.

Keeping best practice in mind, which two files would need to be implemented to show the custom font in the email?

/Vendor/Theme/web/css/source/_extend.less Use the ^import font function with the url of the custom font from the theme. /Vendor/Theme/web/css/source/_email.less file
/Vendor/Theme/web/css/source/_extend.less Use the ^import font function with the url of the custom font from the theme. /Vendor/Theme/web/css/source/_email.less file
Add in the styles to target the elements that require being changed. /vendor/Theme/web/css/source/_typography.less
Add in the styles to target the elements that require being changed. /vendor/Theme/web/css/source/_typography.less
Add in a lib-font-face mixin with the custom font name into the newly created file.
Add in a lib-font-face mixin with the custom font name into the newly created file.
Add the font-family into the <head></head> of the email within the email template.
Add the font-family into the <head></head> of the email within the email template.
Suggested answer: A, B
Explanation:

To implement a custom font specifically for emails, the developer needs to do the following steps:

Add the custom font file to the web/fonts directory of the custom theme.

Use the @import font function with the url of the custom font from the theme in the /Vendor/Theme/web/css/source/_extend.less file. This will import the custom font and make it available for use in other LESS files. For example:

@import font('custom-font', '@{baseDir}fonts/custom-font.ttf', 'truetype');

Add in the styles to target the elements that require being changed in the /Vendor/Theme/web/css/source/_email.less file. This file is used to define the styles for email templates. The developer can use the .lib-font-face() mixin to apply the custom font to specific selectors. For example:

.lib-font-face( @family-name: @custom-font, @font-path: '@{baseDir}fonts/custom-font', @font-weight: normal, @font-style: normal );

h1 { .lib-font-face( @family-name: @custom-font, @font-path: '@{baseDir}fonts/custom-font', @font-weight: normal, @font-style: normal ); }

The /vendor/Theme/web/css/source/_typography.less file is not suitable for implementing a custom font for emails, as it is used for defining global typography styles for web pages. The <head></head> tag is not used for adding fonts in email templates, as it is not supported by most email clients.

Reference: [Custom fonts], [Email templates overview]

asked 02/10/2024
Lazar Marinovic
41 questions

Question 25

Report Export Collapse

An Adobe Commerce developer is customizing buttons for a custom theme that inherits Magento/blank theme and needs to override the default values. Where would the default values for the buttons be located?

lib/web/css/source/lib/_buttons.less
lib/web/css/source/lib/_buttons.less
lib/web/less/source/lib/_buttons.less
lib/web/less/source/lib/_buttons.less
lib/web/css/source/lib/_button.less
lib/web/css/source/lib/_button.less
Suggested answer: A
Explanation:

To find the default values for the buttons, the developer needs to look at the lib/web/css/source/lib/_buttons.less file. This file contains various variables, mixins, and styles for defining and customizing buttons. The developer can override these values in their custom theme by using the .lib-button() mixin or by creating their own mixins or classes. For example:

.lib-button( @_button-selector, @_button-type, @_button-shape, @_button-color, @_button-background, @_button-border, @_button-text-transform, @_button-box-shadow, @_button-hover-color, @_button-hover-background, @_button-hover-border, @_button-hover-box-shadow );

The lib/web/less/source/lib/_buttons.less and lib/web/css/source/lib/_button.less files are not valid and do not exist.

Reference: [Buttons], [Magento UI library]

asked 02/10/2024
Thomas Drilling
50 questions

Question 26

Report Export Collapse

an Adobe commerce developer wants to override the core Magento Ul library dropdowns in your theme. Which is the correct way to achieve this?

/web/css/source/_dropdowns.less
/web/css/source/_dropdowns.less
lib/web/css/source/.dropdowns.less
lib/web/css/source/.dropdowns.less
/web/css/source/lib/.dropdowns.less
/web/css/source/lib/.dropdowns.less
Suggested answer: A
Explanation:

To override the core Magento UI library dropdowns in a custom theme, the developer needs to create a file named _dropdowns.less in the /web/css/source directory of the theme. This file will override the default _dropdowns.less file from the lib/web/css/source/lib directory and apply the custom styles to the dropdown elements. The lib/web/css/source/_dropdowns.less and /web/css/source/lib/_dropdowns.less files are not valid and will not work, as they do not follow the theme structure or the naming convention.

Reference: [Dropdowns], [Theme structure]

asked 02/10/2024
Athabile Landzela
41 questions

Question 27

Report Export Collapse

What is the difference between styles-l.less and styles-m.less ?

styles-i.less is used to generate basic and mobile-specific styles and stytes-m.less is used to generate desktop-specific styles.
styles-i.less is used to generate basic and mobile-specific styles and stytes-m.less is used to generate desktop-specific styles.
styles-i.less is used to generate desktop-specific styles and stytes-m.less is used to generate only mobile-specific styles.
styles-i.less is used to generate desktop-specific styles and stytes-m.less is used to generate only mobile-specific styles.
styles-i.less is used to generate desktop-specific styles and stytes-m.less is used to generate basic and mobile-specific styles.
styles-i.less is used to generate desktop-specific styles and stytes-m.less is used to generate basic and mobile-specific styles.
Suggested answer: C
Explanation:

The styles-l.less and styles-m.less files are two main LESS files that are used to generate CSS files for different devices and screen sizes. The styles-l.less file is used to generate styles-l.css, which contains desktop-specific styles that are applied only when the screen width is greater than 768px. The styles-m.less file is used to generate styles-m.css, which contains basic and mobile-specific styles that are applied for all devices and screen sizes. The other options are not correct and do not reflect the purpose of these files.

Reference: [Stylesheets], [Responsive web design]

asked 02/10/2024
Ishan Patel
35 questions

Question 28

Report Export Collapse

In which mode would the stylesheet customizations display immediately after you reload a page in a browser?

server- side compilation mode
server- side compilation mode
less-side compilation mode
less-side compilation mode
client-side compilation mode
client-side compilation mode
Suggested answer: C
Explanation:

In client-side compilation mode, the stylesheet customizations will display immediately after reloading a page in a browser. This is because in this mode, the LESS files are compiled into CSS files by the browser using JavaScript. This mode is useful for development and debugging purposes, as it allows quick changes and previews of the styles. However, this mode is not recommended for production, as it can affect the performance and compatibility of the site. The other modes, server-side compilation and LESS compilation, require running commands or tools to compile the LESS files into CSS files on the server side, which can take some time and delay the display of the customizations.

Reference: [Compilation modes], [Compile LESS]

asked 02/10/2024
L Zsolt
42 questions

Question 29

Report Export Collapse

An Adobe Commerce developer wants to add a custom widget that extends the default Calendar Widget. What would the contents of this file look like?

A)

Adobe AD0-E720 image Question 29 92292 10022024174856000000

B)

Adobe AD0-E720 image Question 29 92292 10022024174856000000

C)

Adobe AD0-E720 image Question 29 92292 10022024174856000000

Option A
Option A
Option B
Option B
Option C
Option C
Suggested answer: B
Explanation:

To add a custom widget that extends the default Calendar Widget, the contents of the file would look like option B. This is because option B follows the correct syntax and structure for defining a jQuery widget in Magento. The code does the following steps:

Defines a module with the name ''Vendor_Module/js/calendar-widget'' that depends on the ''jquery/ui'' and ''Magento_Ui/js/lib/knockout/bindings/datepicker'' modules.

Returns a function that creates a new widget with the name ''vendor.calendarWidget'' that extends the base calendar widget class.

Overrides the init function of the base calendar widget class to add custom logic or functionality to the widget.

Option A is not correct because it does not use the correct syntax for defining a jQuery widget. It uses a script tag instead of a define function, which is not valid for creating a module. It also uses an incorrect name for the widget, which should use a dot instead of a slash. Option C is not correct because it does not use the correct syntax for extending a widget. It uses an extend function instead of a widget function, which is not valid for creating a new widget. It also does not return anything from the module, which will cause an error.

Reference: [jQuery widgets], [Calendar Widget]

asked 02/10/2024
Alain Bijl
49 questions

Question 30

Report Export Collapse

An Adobe Commerce developer wants to apply a knockout binding to a to run a function, onClick(), when it's clicked. Which two solutions would the developer use to achieve this? (Choose two.)

Become a Premium Member for full access
  Unlock Premium Member
Total 50 questions
Go to page: of 5
Search

Related questions