4.8 - Practice Exercise
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Practice Questions
Test your understanding with targeted questions
Create a zero-shot prompt asking the model to define a 'computer'.
💡 Hint: Think about a simple definition that doesn't need context.
Write a few-shot prompt to describe motivational quotes by providing two examples.
💡 Hint: Consider the style you want the quotes to follow.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What is zero-shot prompting?
💡 Hint: Think about how many examples are given.
True or False: Few-shot prompting is useful for controlling the tone of AI responses.
💡 Hint: Consider how examples affect tone.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Create a chain-of-thought prompt to solve this: 'A chef has 10 eggs, uses 4 for a recipe, and later buys 6 more. How many eggs does he have now?'
💡 Hint: Focus on addition and subtraction in the solution steps.
Design a few-shot prompt that generates jokes based on provided scenarios.
💡 Hint: Ensure that the jokes align with the tone and style of the provided examples.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.