Docsity

Shopify Theme Development Certification 108 Exam, Exams of Nursing

Toggle sidebar
bg1
SHOPIFY THEME DEVELOPMENT CERTIFICATION
108 EXAM WITH VERIFIED QUESTIONS AND
ANSWERS
What is the purpose of the { { block.shopify_attributes } } object? - ANSWERSTo identify blocks to the
theme editor's JavaScript API
https://shopify.dev/api/liquid/objects/block#block-shopify_attributes
Which of the following is required for an alternative layout file?
{{ content_for_footer }}
{{ content_for_layout }}
{% layout 'alternative' %}
{% alternative_ layout %}
{{ get_content }}
https://www.shopify.com/partners/blog/84342470-the-power-of-alternate-layout-files-in-shopify-
theme-development - ANSWERS{% layout 'alternative' %}
If you wanted to display offsite gateway buttons on your checkout page, you would need to remove, or
comment out, the additional_checkout_buttons Liquid tag from the cart page.
True
False
https://help.shopify.com/en/themes/customization/cart/add-more-checkout-buttons-to-cart-page -
ANSWERSTrue, since these buttons show up in both cart and checkout, you would need to disable this
tag in the cart page in order to have it show in checkout
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20

Partial preview of the text

Download Shopify Theme Development Certification 108 Exam and more Exams Nursing in PDF only on Docsity!

SHOPIFY THEME DEVELOPMENT CERTIFICATION

108 EXAM WITH VERIFIED QUESTIONS AND

ANSWERS

What is the purpose of the { { block.shopify_attributes } } object? - ANSWERSTo identify blocks to the theme editor's JavaScript API https://shopify.dev/api/liquid/objects/block#block-shopify_attributes Which of the following is required for an alternative layout file? {{ content_for_footer }} {{ content_for_layout }} {% layout 'alternative' %} {% alternative_ layout %} {{ get_content }} https://www.shopify.com/partners/blog/84342470-the-power-of-alternate-layout-files-in-shopify- theme-development - ANSWERS{% layout 'alternative' %} If you wanted to display offsite gateway buttons on your checkout page, you would need to remove, or comment out, the additional_checkout_buttons Liquid tag from the cart page. True False https://help.shopify.com/en/themes/customization/cart/add-more-checkout-buttons-to-cart-page - ANSWERSTrue, since these buttons show up in both cart and checkout, you would need to disable this tag in the cart page in order to have it show in checkout

Multiple filters can be applied to a single output. Filters are applied in order from: Left to right Right to left You can use parentheses to dictate the order https://help.shopify.com/en/themes/liquid/filters - ANSWERSLeft to right What's the maximum size a theme zip file can be? 20 MB 50 MB 100 MB There is no limit - ANSWERS50 MB If you are running Yarn, which Slate command will generate a new Slate project? yarn create slate-theme my-new-theme yarn slate create-theme my-new-theme yarn slate build-theme my-new-theme yarn create slate-build my-new-theme https://www.shopify.com/partners/blog/shopify-slate-new-release - ANSWERSyarn create slate-build my-new-theme To submit a theme to the Shopify Theme Store, you must be approved as a Shopify Design Expert. True

https://help.shopify.com/en/themes/development/getting-started/search-engine-optimization - ANSWERS Which of the following attributes is required to render a block? Type ID Title Settings Default https://help.shopify.com/en/themes/development/sections#blocks - ANSWERSType "A block must have a name and a type." What are the different section input setting types https://help.shopify.com/en/themes/development/theme-editor/settings-schema#input-setting-types - ANSWERStext textarea image_picker radio select checkbox range The global variable Shopify.designMode can be used to: Detect whether or not Shopify Developer Tools is open

Detect whether the storefront is being viewed in the theme editor Preview theme changes before publishing Edit how the theme editor appears https://shopify.dev/themes/architecture/sections/integrate-sections-with-the-theme-editor#detect- the-theme-editor - ANSWERSDetect whether the storefront is being viewed in the theme editor You cannot change which products appear on the page at your-store.com/collections/all. True False https://help.shopify.com/en/themes/customization/collections/change-catalog-page - ANSWERSFalse Where are changes saved while interacting with the theme editor in the browser? Within the schema tags of an edited section In the settings_schema.json file In the settings_data.json file They are not saved https://help.shopify.com/en/themes/development/theme-editor#merchant-settings - ANSWERSsettings_data.json

Which of the following are theme section tags? {% schema %} {% javascript %} {% stylesheet %} {% schema %} {% js %} {% css %} {% schema %} {% js %} {% scss %} {% schema %} {% javascript %} {% style %} https://help.shopify.com/en/themes/development/sections - ANSWERS{% schema %} {% javascript %} {% stylesheet %} Which Liquid object listed below can you use to access product information? products_info display_products products_json all_products https://help.shopify.com/en/themes/liquid/objects#global-objects https://www.shopify.com/partners/blog/89205510-how-to-use-all_products-in-a-shopify-theme - ANSWERSall_products How many levels deep can you nest Shopify nested menu items? 2 3 5 Unlimited

https://help.shopify.com/en/themes/development/building-nested-navigation - ANSWERS3 levels deep What is the benefit of setting up responsive images on a Shopify theme? It allows developers to make deliberate decisions to use correctly sized images in their theme It improves user experience by loading small images before full-sized images Images can be automatically cropped to fit small screens All of the above https://www.shopify.com/partners/blog/using-responsive-images - ANSWERSAll of the above Liquid is rendered: Client side Server side https://www.shopify.com/partners/blog/115244038-an-overview-of-liquid-shopifys-templating- language - ANSWERSServer side Liquid objects cannot be added to the 'Additional scripts' box on the Shopify Admin at 'Settings > Checkout' True False

Using, for example, the {% section.settings.setting_id %} Liquid drop anywhere Using, for example, the {% section[header].settings.setting_id %} Liquid drop anywhere Passing the section's setting into a snippet file using a custom variable You can't—it's best to use global settings for theme-wide options. https://help.shopify.com/en/themes/development/sections#settings - ANSWERSYou can't What are translation keys used for? Translating strings into other languages Editing hard-coded text in a theme Categorizing active checkout and system messages Retrieving content from the theme's language files https://help.shopify.com/en/themes/development/theme-store- requirements/internationalizing/translation-filter - ANSWERSTranslating strings into other languages Theme Kit powers Slate deploys, so the configuration requirements are the same. True False - ANSWERSFalse

In a Liquid template file, the paginate.pages object is generally used to: Create an if statement which loads pagination Display how many pages of pagination can be accessed Return an array of previously viewed pages Generate the pagination tags for a page https://help.shopify.com/en/themes/liquid/objects/paginate#paginate-pages - ANSWERSDisplay how many pages of pagination can be accessed ? Customers can add line item properties to their order on the cart page, which are used to record additional information about an entire order. True False https://help.shopify.com/en/themes/customization/products/features/get-customization-information- for-products - ANSWERSTrue Liquid tags are wrapped in which of the following characters? {{ }} {% %} < > { }

https://www.shopify.com/partners/blog/91564358-how-urls-map-to-shopify-templates - ANSWERSpassword.liquid ? Where can you find an API key for connecting Theme Kit to a live store? In the 'Themes' section of your partner dashboard In the 'Apps' section of the Shopify Admin In the 'Themes' section of the Shopify Admin In the 'Apps' section of your partner dashboard - ANSWERSIn the 'Apps' section of the Shopify Admin Metafields can only be added to products with the use of an app or browser extension. True False - ANSWERStrue The following nested Sass would compile out to which selectors? .button { color: #ffffff; background-color: #2980b9; .page-contact & { background-color: #e67e22; } }

.button{} and .button .page-contact{} .button{} and .button.page-contact{} .button{} and .page-contact .button{} .button{} and .page-contact.button{} - ANSWERS.button{} and .button .page-contact{} What would the output of this Liquid be if the settings.main_heading is an empty string? {% if settings.main_heading %} {{ settings.main_heading }} {% endif %}

settings.main_heading Blank, because settings.main_heading returns false - ANSWERS What would the output of this Liquid be?

{% assign collection_titles = collections | map: 'title' %} {{ collection_titles }}

Spring,Summer,Fall,Winter SpringSummerFallWinter Spring Summer Fall Winter - ANSWERSSpringSummerFallWinter

Identify the object in the following: {{ 'sections.slideshow.previous_slide' }} sections slideshow previous_slide Everything within the curly brackets - ANSWERSsections ? What would the output of the following Liquid code be? {% assign var = 10 %} {{ var }} {% increment var %} {% increment var %} {% increment var %} 10 10 11 12 13 10 0 1 2 - ANSWERS ? With regard to accessibility, WCAG 2.0 best practices suggest a minimum ratio of 4.5:1 for 16px body text on a background color. Which of the following is a benefit of ensuring appropriate contrast ratios in a theme? Content works in different lighting conditions, such as sunlight and glare People with a color-vision deficiency can more easily read content

Improved usability for all types of visitors All of the above - ANSWERSAll of the above Variant inventory quantity can be returned in a product's storefront JSON endpoint. True False - ANSWERSTrue If a collection image does not exist on a collection page: A backup store logo or placeholder should load instead The featured image of the first product in that collection should load instead Only product images load An error message appears - ANSWERSA backup store logo or placeholder should load instead Which of the following is not found in the Shopify Liquid Cheat Sheet? Tags Objects Filters Sections - ANSWERSSections You have written a custom JavaScript function in your theme. Upon installing a new app, your function breaks due to a conflict with the app's JavaScript. What is the most likely cause of the issue?

False - ANSWERSTrue To include and render a Sass file named theme.scss, which of the following would you add to the of your theme.liquid file: {{ 'theme.scss' | asset_url | stylesheet_tag }} {{ 'theme.scss.liquid' | asset_url | stylesheet_tag }} {{ 'theme.scss.css' | asset_url | stylesheet_tag }} - ANSWERS{{ 'theme.scss.css' | asset_url | stylesheet_tag }} Your client wants to add new content to their storefront. This content requires custom backend functionality. What is the best way to accomplish this? Create a new Liquid template to display the content and build additional functionality with JavaScript Use Liquid to return any necessary data as JSON and use JavaScript to build additional functionality Build a private app and use a script resource to display the content Build a private app and use JavaScript and Liquid to display the content - ANSWERSBuild a private app and use a script resource to display the content Which example uses the correct syntax to lighten an input color in Liquid? {{ '#ffc107' | lighten_color: 30 }} {{ '#ffc107' | color: 'lighten', 30 }} {{ '#ffc107' | lighten_to: 30 }} {{ '#ffc107' | color_lighten: 30 }}

https://help.shopify.com/en/themes/liquid/filters/color-filters#color_lighten - ANSWERS{{ '#ffc107' | color_lighten: 30 }} Which of the following is the correct way of multiplying two variables in Liquid? {{ foo * bar }} {{ foo | multiplied_by: bar }} {{ foo | times: bar }} {{ foo | * bar }} https://help.shopify.com/en/themes/liquid/filters/math-filters - ANSWERS{{ foo | times: bar }} Slate requires you to set up the theme file structure from scratch. True False - ANSWERSFalse As a theme author, including/updating the theme_info object in your work is important because: It's easier to identify which agency made the theme It's great advertising space for your agency It allows your agency to see which merchants use your theme All of the above https://help.shopify.com/en/themes/development/theme-editor/add-theme-info - ANSWERSAll of above Which of the following describes the purpose of this for loop: