Home › Quizzes › Platforms & LMS › Liquid drops how-to with a practice quiz

Learn how to use liquid drops with a quiz built from your notes

Upload a PDF, slides or notes and get multiple-choice, true/false or short-answer questions with explanations to check what you learned.

Create quizzes nowFree · No credit card required

Free · First set needs no signup · Creates quizzes in seconds

Using liquid drops in Liquid templates

Liquid drops are the objects a template language exposes to your code, and how to use liquid drops mostly comes down to dot notation. In Shopify themes, for example, product, collection, variant and customer are drops, so {{ product.title }} reads the title attribute of the current product.

  • Start with dot notation: object.attribute reads a value from a drop.
  • Check the documented attributes of each drop, since undefined ones render as empty.
  • Use filters such as money to format values before showing them to shoppers.
  • Guard optional objects like customer with an if check to avoid blank output.
Example liquid drops practice questions
In Shopify Liquid, what does {{ product.title }} output?The title of the current product. It reads the title attribute of the product drop.
Which tag loops over the variants of a product?{% for variant in product.variants %}. The variants attribute is a list that a for loop can iterate over.
What does Liquid output if you reference an attribute a drop does not expose?Nothing, since the value is nil and renders as empty output. Check the documented attributes to avoid blank content.
How do you format a product price drop for display?Use the money filter, as in {{ product.price | money }}, because it converts the stored value into a formatted currency string.
How can you show content only to logged-in shoppers?Wrap it in {% if customer %}, because the customer drop is nil for guests and is only set when someone is signed in.
Generate the full set

Questions from your material

Upload PDFs, slides, DOCX files, plain notes or photos of pages and get questions based on what you actually studied.

Explanations for every answer

Each multiple-choice, true/false or short-answer question comes with an explanation, so wrong answers teach you something.

Exports when you need them

Export to PDF or DOCX on Plus, and to QTI 2.1 or Moodle XML on Pro. The free plan studies in the browser.

How it works

Upload your material

Add the lesson, docs page or notes on liquid drops as a PDF, DOCX, PPTX, text file or photo.

Choose the question types

Pick multiple choice, true/false or short answer, then generate the quiz.

Practice and review

Answer the questions, read the explanations and retry the ones you missed.

Most mistakes come from asking a drop for something it does not expose, which renders as empty output rather than an error. Check the attributes each drop documents, use filters such as money for prices, and wrap optional data in an if check like {% if customer %} before you show it.

A good way to lock this in is to quiz yourself on the examples in your own notes until you can predict what each line outputs before you run it.

Explore related topics

Frequently asked questions

How do I access a drop's attributes in Liquid?

Use dot notation, such as {{ product.title }}, and check the drop's documented attributes to see which ones are available. Attributes the drop does not expose will render as empty output.

How should I study liquid drops for a test?

Predict the output of short template snippets before you run them, then review the ones you got wrong. Writing out a few drops and their attributes from memory also helps the details stick.

Can I export the generated quiz questions?

Exports are a paid feature: PDF and DOCX are on Plus, and QTI 2.1 and Moodle XML are on Pro. The free plan lets you study the questions in the browser.

Is there a free plan, and do I need a credit card?

Yes, the free plan includes 3 generations per month and browser study. No credit card is needed to start.

Generate free quizzes

Keep exploring the topic

Review the main ideas visually or practice recalling them.