Gen AI Tutorial menu

Gen AI Quiz

Check what you learned in the Gen AI tutorial with these questions.

Before You Start

Here is a quick summary of the key ideas:

IdeaOne-line meaning
Generative AIAI that creates new content from a prompt
DiffusionTurning noise into an image step by step
TokenA small chunk of text the model reads and writes
Context windowHow many tokens the model can consider at once
TemperatureHow predictable or creative the output is
HallucinationA confident but false answer

A reminder of the generation loop in code:

Example

python
words = ["Gen", "AI", "writes", "one", "token", "at", "a", "time"]
sentence = ""
for w in words:
    sentence += w + " "
print(sentence.strip())
Output
Gen AI writes one token at a time

And a grounded prompt that reduces hallucinations:

Example

text
Use only the text below. If the answer is missing, say "Not in the text."

Questions

Exercise

What is a prompt?

Exercise

Most modern image generators are based on which method?

Exercise

What is a deepfake?

Exercise

Roughly how many characters of English text make one token?

Exercise

Why might a chatbot "forget" instructions in a very long conversation?

Exercise

Which setting is best for extracting exact data from an invoice?

Exercise

An AI gives you a research paper title and author for your assignment. What should you do?

Exercise

Which is NOT a responsible use of Gen AI?

Learn Gen AI with a teacher

Join the AI & Prompt Engineering course at Workownix, online or in Orangi Town, Karachi, and get a certificate.

See the course Ask on WhatsApp