AI Computer Science Academy · Faisalabad

AI & Prompt Engineering

The four-part prompt

Task 5 of 56 Quiz Thinking about AI
All tasks
Read first Concept

The four-part prompt

Role, task, context, output format. Say who, what, with what facts, in what shape.

Definition and example

The four-part prompt is the focus of this lesson. Role, task, context, output format. Say who, what, with what facts, in what shape. The task asks you to apply that idea in a small example: Which is NOT part of a good prompt. Before you run the code, predict what should happen. Then Inspect the result produced by the exercise and compare it with your prediction. If the result differs, change one relevant line and run it again. Testing one change at a time makes the cause of a result easier to understand.

Checkpoint quiz Thinking about AI
Answer the question One answer is correct

Which is NOT part of a good prompt?

Question step · 5 of 56
Your result

Pick an answer to check

Pick the right option in the middle column. A wrong answer keeps the next task locked.

One question, one correct answer. The explanation appears as soon as you are right, and the next task unlocks with it.

Sign in to use up to 8 optional task skips in this course.

Incorrect attempts before answer: 0 / 3

Track progress

0 passed of 56 tasks

Pass every check or use one of your available skips to open the next task.

Sign in to keep your code and certificates.

Next task (mark this task read first)