0
0
Prompt Engineering / GenAIml~10 mins

Chain-of-thought prompting in Prompt Engineering / GenAI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to start a chain-of-thought prompt with an example reasoning step.

Prompt Engineering / GenAI
prompt = "Q: What is 2 + 3? Think step-by-step. A: First, add 2 and [1]. Then, you get 5."
Drag options to blanks, or click blank then click option'
A4
B3
C5
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 4 or 5 instead of 3 because of confusion with the sum.
Choosing 1 thinking it's a step number.
2fill in blank
medium

Complete the code to add a chain-of-thought prompt that explains the answer.

Prompt Engineering / GenAI
prompt = "Q: If there are 4 apples and you get 3 more, how many apples now? Think step-by-step. A: There were 4 apples, then added [1] apples, so total is 7."
Drag options to blanks, or click blank then click option'
A7
B2
C4
D3
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 2 or 4 instead of 3.
Confusing the total 7 with the added apples.
3fill in blank
hard

Fix the error in the chain-of-thought prompt to correctly explain the reasoning.

Prompt Engineering / GenAI
prompt = "Q: What is 10 minus 4? Think step-by-step. A: Start with 10, then subtract [1] to get 6."
Drag options to blanks, or click blank then click option'
A5
B3
C4
D6
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 5 or 3 which do not produce 6 when subtracted from 10.
Choosing 6 which is the result, not the subtracted number.
4fill in blank
hard

Fill both blanks to complete the chain-of-thought prompt that explains the answer.

Prompt Engineering / GenAI
prompt = "Q: What is 3 times 4? Think step-by-step. A: Multiply 3 by [1] to get [2]."
Drag options to blanks, or click blank then click option'
A4
B12
C7
D9
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 7 or 9 which are incorrect multipliers or results.
Swapping the order of multiplier and result.
5fill in blank
hard

Fill all three blanks to complete the chain-of-thought prompt that explains the answer.

Prompt Engineering / GenAI
prompt = "Q: If you have 5 candies and eat 2, how many left? Think step-by-step. A: Start with [1] candies, eat [2], so [3] remain."
Drag options to blanks, or click blank then click option'
A5
B2
C3
D7
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the numbers for start, eaten, and remaining candies.
Choosing 7 which is not related to the question.