Practice Practice Exercise - 4.8 | Types of Prompts — Zero-shot, Few-shot, and Chain-of-Thought | Prompt Engineering fundamental course
Students

Academic Programs

AI-powered learning for grades 8-12, aligned with major curricula

Professional

Professional Courses

Industry-relevant training in Business, Technology, and Design

Games

Interactive Games

Fun games to boost memory, math, typing, and English skills

Practice Exercise

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.

Learning

Practice Questions

Test your understanding with targeted questions

Question 1 Easy

Create a zero-shot prompt asking the model to define a 'computer'.

💡 Hint: Think about a simple definition that doesn't need context.

Question 2 Easy

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

Question 1

What is zero-shot prompting?

Providing examples to AI
No examples provided to AI
Only verbal instructions

💡 Hint: Think about how many examples are given.

Question 2

True or False: Few-shot prompting is useful for controlling the tone of AI responses.

True
False

💡 Hint: Consider how examples affect tone.

2 more questions available

Challenge Problems

Push your limits with advanced challenges

Challenge 1 Hard

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.

Challenge 2 Hard

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.