{{ }}
learnshopify.dev
/
Workspace
/
Module 1 · 17. Lock it in: Module 1 recap
Hide guide
← Prev
Next →
Task 1 of 1
quiz
Six questions · ~5 minutes
1. Why does a production footer use `{{ shop.name }}` instead of hardcoding the company name as a literal string?
A
It's shorter than typing the full name.
B
It survives when the merchant changes the shop name in admin.
C
Shopify rejects themes that hardcode names.
D
It renders faster than a hardcoded string.
2. You need to render the integer `2499` as a price on a product page. Which is the right approach?
A
Write `${{ 2499 }}` and rely on the reader to divide by 100.
B
Write `{{ 2499 | money }}` so the shop's money format applies.
C
Output `{{ 2499 }}` and style with CSS.
D
Concatenate `$` manually with the value.
3. You want to temporarily hide a section of code that contains sensitive copy. Which comment style do you use?
A
An HTML comment: `<!-- … -->`
B
A Liquid comment: `{% comment %}…{% endcomment %}`
C
A JavaScript comment: `// …`
D
Delete the code; you can rewrite it later.
4. A guest visits a page rendering `{% if customer %}Hi, {{ customer.first_name }}{% endif %}`. What renders for them?
A
"Hi, "
B
"Hi, Guest"
C
Nothing. The `{% if %}` block is falsy.
D
An error. `customer` is undefined.
5. You're iterating over `collection.products` in a section. What should you always include?
A
A `{% break %}` somewhere inside.
B
A `limit:` argument on the `{% for %}`.
C
A reference to `forloop.index`.
D
An `{% if %}` block inside the loop.
6. Northwind is opening a UK market alongside their US store. Same theme, both currencies. What's the safer filter for cart and confirmation pages?
A
`money`, which adapts to the shop's primary format.
B
`money_with_currency`, which appends the ISO code (USD or GBP).
C
Hardcode the currency symbol with conditional logic.
D
`default`, which falls back gracefully.
0 / 1 task solved
Submit answer