Search test library by skills or roles
⌘ K

Adaface Sample Shopify Questions

Here are some sample Shopify questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Medium

Capturing Blocks
Liquid Templating
Variable Scoping
Blocks
Solve
You are developing a Shopify theme and using Liquid, Shopify's templating language. In your template, you have written the following pseudo code:
 image
The code should display the collection and product headings for each product and then print the heading of the last product in each collection. However, after running this code, the 'Last product' print statement for each collection shows 'Product: ' but no product title. What is causing this issue?
A: You can't reassign the 'global_var' inside the 'for' loop.
            B: The 'capture' block doesn't create a new scope for its content.
            C: The 'product_heading' variable is not accessible outside its 'capture' block.
            D: The 'collection_heading' variable should be assigned globally.
            E: You can't use the 'assign' statement inside a 'for' loop.

Medium

Checkout API
Solve
You are a developer for Kylie Cosmetics Shopify App. To create a new checkout, you can send a POST request to the admin/checkouts.json endpoint. If you sent the following JSON string to the endpoint, what would be returned? (Assume that variant_id is correct)
 image
A: An error, as the checkout object is missing parameters necessary to process the customer’s payment
            B: The checkout object, including a web_url parameter which can be used to redirect a customer to this URL for Shopify's web checkout experience
            C: The checkout object, including a `checkout_id` parameter which identifies the customer’s transaction

Easy

The Deceptive Discount
Liquid
Operations
Debugging
Solve
You are creating a Shopify theme and implementing a feature to provide a discount to customers. Your store has a promotional offer where if the total cost of the items in a cart is above $500, a discount of 10% is applied, else, a 5% discount is applied.
            
            You've written the following pseudo code in Liquid Templating language:
 image
You have the following logs with output from different statements:
            
            1. cart.total_price for a $400 purchase -> 40000
            2. 'times' filter with 40000 and 0.10 -> 4000
            3. cart.total_price for a $500 purchase -> 50000
            4. 'times' filter with 50000 and 0.10 -> 5000
            5. cart.total_price for a $600 purchase -> 60000
            6. 'times' filter with 60000 and 0.10 -> 6000
            
            After reviewing these logs, you realize that the discount is not being calculated correctly. What could be the reason?
A: The 'times' filter is not working properly.
            B: The 'money' filter is not converting the discount to the right format.
            C: The 'assign' statement is not assigning the right values.
            D: The 'total_price' of the cart is not being fetched correctly.
            E: The comparison operator in the 'if' condition is incorrect.
🧐 Question🔧 Skill

Medium

Capturing Blocks
Liquid Templating
Variable Scoping
Blocks

2 mins

Shopify
Solve

Medium

Checkout API

2 mins

Shopify
Solve

Easy

The Deceptive Discount
Liquid
Operations
Debugging

3 mins

Shopify
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Capturing Blocks
Liquid Templating
Variable Scoping
Blocks
Shopify
Medium2 mins
Solve
Checkout API
Shopify
Medium2 mins
Solve
The Deceptive Discount
Liquid
Operations
Debugging
Shopify
Easy3 mins
Solve

Trusted by recruitment teams in enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1200+ companies in 75+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️