Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
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.
✗ Incorrect
The correct answer is 3 because the question is 2 + 3, so the reasoning step adds 2 and 3.
2fill in blank
mediumComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 2 or 4 instead of 3.
Confusing the total 7 with the added apples.
✗ Incorrect
The reasoning step adds 3 apples to the original 4, so the blank should be 3.
3fill in blank
hardFix 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'
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.
✗ Incorrect
The correct number to subtract from 10 to get 6 is 4, so the blank should be 4.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 7 or 9 which are incorrect multipliers or results.
Swapping the order of multiplier and result.
✗ Incorrect
Multiplying 3 by 4 gives 12, so blanks are 4 and 12 respectively.
5fill in blank
hardFill 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'
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.
✗ Incorrect
You start with 5 candies, eat 2, so 3 remain. The blanks are 5, 2, and 3.