Quiz
FRONT-END DEVELOPER TEST POOL-3 (MAGENTO 2 CERTIFIED PROFESSIONAL)
Fragen in diesem Quiz (29)
1What command would you use to create symlinks to LESS files for the Magento/luma theme in the fr_FR locale
bin/magento ??--locale ?? --theme Magento/luma? (Select 2)- Adev:source-theme:deploy
- Bfr_FR
- Ccache:clean
- Dcache:flush
2Which of the main css files included in the default_head_blocks.xl file in a Magento theme? Select all that apply?
- Astyles-m.css
- Bstyles-l.css
- Cprint.css
- Dstyles-s.css
- Emain.css
- Fscreen.css
3What does the template node do in the widgets.xml configuration file?
- AFilters which templates will be available for the widget in a specific container
- BDefines new templates for the module
- CAssign one template to a container so that template is automatically used if the widget is inside the specified container
- DDefines new layout for the module
4Keep simplicity mind How would you configure a category to inherit design settings from its parent category?
- A"Use parent category settings" option in design tab
- BA category automatically inherits design settings from its parent
- CUse the catalog_category_view_id_[id]_children.xml layout handle
- Doverride category layout.xml
5You are developing a new theme for your customer for his local regional language support, Which folders are required in a theme? Select all folders that are required.
- A/etc/
- B/media/
- C/registration.php
- Di18n/
- Eweb/
6Which of the following is a Knockout virtual element?
- A<!-- ko something: something --><!-- /ko -->
- B<div data-bind="something: something">
- C<something args="something">
- D<div something="something">
7What attributes are required on a <block> layout element in Magento 2.x?
- Aclass
- Bbefore/after
- Ccacheable
- Dtemplate
- Ename
- Fas
8What command would you use to create a language pack from a csv file?
bin/magento ---- /absolute/path/to/file.csv [language_code]- Ai18n:pack
- Bi18n:collect-phrases
- Csetup:static-content:deploy
- Di18n:static-content:deploy
9What is the custom LESS directive added by Magento in order to implement a fallback system in the import mechanism?
- A//@magento_import
- B@magento_import
- C@mage_imports
- D//@mage_import
10How can a group of child blocks be rendered in a template?
- AUsing the getGroupChildNames() method and then rendering each block by name in a loop
- BUsing the getGroupChildHtml() method
- CUsing the getData('group_items') method in a foreach loop
- DUsing the getData('group_items') method in a while loop
11What Cms template directive would you use to output a URL?
- A{{store url="[path]"}}
- B{{url [path]}}
- C{{url path="[path]"}}
- D{{base url path="[path]"}}
12What does the special variable @arguments do in a LESS mixin?
- ATakes the arguments that were passed into the mixin an renders them in that order
- BDefines additional arguments to be used in the mixin
- CContains default arguments that are passed to all mixins by the framework
- DInitiate additional arguments to be used in the mixin
13What command do you need to run when you create a new LESS file?
bin/magento ----- Adev:source-theme:deploy
- Bdev:content-theme:deploy
- Ctheme:source:deploy
- Dtheme:conten-source:deploy
14How would you initialize a JS component using a data-attribute?
<div ??? ='{"[Vendor_Module/js/path/to/file|alias]": {"[optionKey]": "[optionValue]"}}'>- Adata-mage-init
- Bdata-magento-init
- Cdata-mage-start
- Ddata-mage-initialize
15What is the correct way to define a mixin in LESS?
- A.my-mixin(@arguments) {
...
} - B@my-mixin($arguments) {
...
} - C=my-mixin(@arguments) {
...
} - D@mixin my-mixin($arguments) {
...
}
- A.my-mixin(@arguments) {
16What are the available image types in etc/view.xml? Select 4 that apply
- Aimage
small_image - Bthumbnail
- Cswatch_thumb
- Dswatch_image
- Elarge_image
- Fbase_image
- Gswatch_thumbnail
- Aimage
17Select 4 layout handles that can be used to customize a product page's layout.
- Acatalog_product_view_sku_[sku]
- Bcatalog_product_view_id_[id]
- Ccatalog_product_view_type_[type]
- Dcatalog_product_view
- Ecatalog_product_view_name_[name]
- Fcatalog_product_view_category_[category]
18If you need to override a module layout, where would you put the layout file?
- Atheme_dir/Vendor_Module/layout/override/base/name_of_layout.xml
- Btheme_dir/Vendor_Module/layout/override/frontend/name_of_layout.xml
- Ctheme_dir/Vendor_Module/layout/overrides/frontend/name_of_layout.xml
- Dtheme_dir/Vendor_Module/layout/overrides/base/name_of_layout.xml
19How can JavaScript on a page be configured using block arguments in layout XML?
<arguments>
<argument name="???" xsi:type="array">
<item name="???" xsi:type="array">
...
</item>
</argument>
</agrument>- AjsLayout
- Bcomponents
- Cblock
- Dpage
- Earguments
20Where are the Magento UI library LESS files found?
- Alib/web/css/source/lib
- BMagento_Ui/web/css/source/
- CMagento_Framework/web/css/source
- DVandor/Magento/Framework/web/css/source
21Where should overrides of existing LESS variables be added?
- A<theme_dir>/web/css/source/_theme.less
- B<theme_dir>/web/css/source/_variables.less
- C<theme_dir>/web/css/source/lib/_variables.less
- D<theme_dir>frontend//web/css/source/_variables.less
22How do you create a new widget in your custom module that can be used in Cms content?
- AConfigure the widget in etc/widgets.xml
- BConfigure the widget in view/frontend/layout/widget.xml
- CSimply create a new class that implements \Magento\Widget\Block\BlockInterface and it will be registered as a widget automatically
- DConfigure the widget in view/frontend/template/widget.phtml
23Which of the following are valid Magento KnockoutJS bindings? (Select 3)
- A<!-- ko if: isVisible-->
<div class="someClass">
<!-- ko i18n: 'Some translatable message!'--><!-- /ko -->
<span data-bind="html: content"></span>
</div>
<!-- /ko --> - B<if args="isVisible">
<div class="someClass">
<translate args="'Some translatable message!'"/>
<span html="content"></span>
</div>
</if> - C<div class="someClass" if="isVisible">
<span translate="'Some translatable message!'"></span>
<span html="content"></span>
</div> - D<div class="someClass" data-bind="if: isVisible">
<span data-bind="translate: 'Some translatable message!'"></span>
<span html="content"></span>
</div> - E<div class="someClass" if="isVisible">
<translate args="'Some translatable message!'"/>
<html args="content"></html>
</div>
- A<!-- ko if: isVisible-->
24How can you call jQuery UI Widget methods?
- A$(‘.element-selector’).nameOfWidget(’nameOfMethod’);
- B$(‘.element-selector’).nameOfWidget.nameOfMethod();
- C$(‘.element-selector’).call(’nameOfMethod’);
- DnameOfWidget.nameOfMethod($('.element-selector'));
25How would you initialize a JS component using the Magento script tag?
<script type=“???">
{
“[.element-selector]”: {
“[Vendor_Module/js/path/to/file|alias]”: {
“[optionKey]”: “[optionValue]"
}
}
}
</script>- Ascript/x-magento-init
- Bscript/x-mage-init
- Cjs/x-magento-init
- Dscript/x-magento-fire
26Given the following code, how would you call the following jQuery UI widget?
// Vendor_Module/js/name-of-widget.js
define([jquery], function ($) {
$.widget('vendor.myWidget', {
...
});
return $.vendor.myWidget;
}); (select 2)- Arequire(['jquery', 'Vendor_Module/js/name-of-widget'], function ($, nameOfWidget) {
$('.element-selector').myWidget({...});
}); - Brequire(['jquery', 'Vendor_Module/js/name-of-widget'], function ($, nameOfWidget) {
nameOfWidget(...);
}); - Crequire(['jquery', 'Vendor_Module/js/name-of-widget'], function ($, nameOfWidget) {
$('.element-selector').nameOfWidget({...});
}); - Drequire(['jquery', 'Vendor_Module/js/name-of-widget'], function ($, nameOfWidget) {
myWidget(...);
});
- Arequire(['jquery', 'Vendor_Module/js/name-of-widget'], function ($, nameOfWidget) {
27How would you translate the phrase "Shopping Cart" in a UI Component?
<span data-bind="???: 'Shopping Cart''></span>
<translate args="'Shopping Cart'"></translate>
<span translate="'Shopping Cart'">- Ai18n
- Btheme
- Cmodule
- Dblock
28Which arguments are received by the function that is returned by a JS mixin?
- Atarget - The original object that was returned by the component extended by the mixin
- BadditionalData - Additional data passed in the requirejs-config.js file
- Cdata - Data passed to the original object being extended by the mixin
- Dattribute - Attribute passed to the original object being extended by the mixin
29How do you bind a KO view model to a section of the DOM with the scope binding?
The ??? connects a UI component that is registered in the ??? with an element that has already been configured. This changes that element's KO binding scope to use the class that represents the specified UI component.- Ascope binding
- BuiRegistry
- CurlRegistry
- Ddynamic binding
Informationen
- Beschreibung
- This Only study note not real question
- Autor
- Miska Red
- Sprache
- English
- Aufrufe
- 562
- Schlagwörter
- Bewertung
- 5,0 von 5 · 1 Bewertung Bewerte dieses Quiz