AI & machine learning quiz

Artificial Intelligence Quiz: AI, Generative AI, LLMs and AI Agents MCQs

How well do you understand AI? 60 questions on AI vs machine learning vs deep learning, key ideas and history, generative AI, how large language models work, RAG and AI agents, responsible AI and real-world uses.

✅ Free · no login60 questions⏱ Timer📝 Explanations🖨 Mark sheet & PDFBeginner to intermediate
AI & Generative AI Quiz: free online quiz with timer and mark sheet by Codanics
Loading…

AI & Generative AI Quiz

60 questions · 8 topics · timer · instant explanations · printable mark sheet.

  • Questions60 in the bank, 10–30 per attempt
  • Levels20 easy · 24 medium · 16 hard
  • TimeAbout 5–20 minutes
  • PriceFree, no login needed
  • Made byDr. Aammar Tufail, Codanics
  • Updated18 November 2026

In short: the AI & Generative AI Quiz is a free online multiple-choice quiz by Codanics with 60 questions on AI, ML and DL basics; history and key ideas; search, agents and RL; generative AI models; how LLMs work; RAG and AI agents; responsible AI; and AI in practice. You choose the number of questions and the difficulty, answer against a timer, see an explanation after every answer and finish with a printable mark sheet.

🚀 Follow Codanics for more free quizzes and lessonsNew quizzes, free lessons, scholarships and PhD positions, straight to your phone.

What the AI & Generative AI Quiz covers

Everyone uses AI tools now, but few people can explain what a token is, why models hallucinate or what makes an AI agent different from a chatbot. This quiz builds that understanding without needing any code.

It also covers responsible use: bias, privacy, copyright, deepfakes and academic integrity, the questions every student and researcher should be able to answer.

  • AI, ML and DL basics 7 questions
  • History and key ideas 6 questions
  • Search, agents and RL 7 questions
  • Generative AI models 8 questions
  • How LLMs work 9 questions
  • RAG and AI agents 8 questions
  • Responsible AI 9 questions
  • AI in practice 6 questions

Who it is for: Students, teachers, professionals and parents who use AI tools and want to understand how they work, and learners of AI ka Chilla.

How the quiz works

  1. Type your name if you want it printed on the mark sheet (optional; it never leaves your browser).
  2. Choose 10, 20 or 30 questions, a difficulty (Easy, Mixed or Hard) and the timer: Standard, Relaxed or none.
  3. Answer each question before the timer runs out. Press A–D or 1–4 on a keyboard, or tap an option on your phone.
  4. Read the explanation after every answer, then press Next.
  5. At the end, get your score, grade, topic-wise breakdown and a full answer review. Print it or save it as a PDF.
  6. Retake the quiz for a fresh random set, or practise only the topics you found hard.

Free video lessons from Codanics

Score lower than you hoped? These free lessons from the Codanics YouTube channel cover the same topics, explained step by step.

▶ Full playlist: AI and data science 6-month track (275 videos)
Free on the Codanics YouTube channel, taught in Urdu/Hindi.

Sample questions with answers

Here are 9 questions from the bank, with answers and explanations. The quiz above draws from all 60.

1. Which statement best describes the relationship between AI, machine learning and deep learning?
  1. AI is a subset of deep learning, which is part of ML
  2. ML and AI are separate fields with no overlap
  3. Deep learning is a subset of ML, which is a subset of AI
  4. Deep learning contains AI, which contains ML

Answer: C. Deep learning is a subset of ML, which is a subset of AI
AI is the broad goal of making machines act intelligently. ML is one approach (learning from data), and deep learning is ML using many-layered neural networks.

2. A chess program that cannot do anything except play chess is an example of what?
  1. Narrow AI
  2. General AI
  3. Superintelligence
  4. Symbolic hardware

Answer: A. Narrow AI
Narrow (weak) AI is built for one task or a small range of tasks. Artificial general intelligence would handle a wide range of tasks as flexibly as a human.

3. What does LLM stand for?
  1. Linear learning machine
  2. Large language model
  3. Long logic memory
  4. Layered latent model

Answer: B. Large language model
A large language model is a neural network, usually a transformer, trained on very large amounts of text to predict and generate language.

4. How does a diffusion model generate an image?
  1. By copying the closest image from the internet
  2. By drawing pixels left to right like text
  3. By gradually removing noise from a random starting image
  4. By combining two photos with a fixed rule

Answer: C. By gradually removing noise from a random starting image
Diffusion models are trained to reverse a noising process. At generation time they start from pure noise and denoise step by step, guided by the text prompt.

5. At its core, what is an LLM trained to do during pre-training?
  1. Search the internet for each answer
  2. Store a copy of every web page
  3. Translate only between two languages
  4. Predict the next token in a sequence

Answer: D. Predict the next token in a sequence
LLMs are pre-trained on huge text collections to predict the next token. Many abilities such as summarising and answering questions emerge from this objective.

6. What usually happens when you raise the temperature setting of an LLM?
  1. Outputs become shorter and more accurate
  2. The model runs on a hotter GPU
  3. The model always gives the same answer
  4. Outputs become more varied and less predictable

Answer: D. Outputs become more varied and less predictable
Temperature rescales the token probabilities. Higher values flatten them so less likely tokens are chosen more often; low values make output more focused and repeatable.

7. What does it mean when an AI agent 'uses tools'?
  1. It physically picks up hammers and screwdrivers
  2. It changes its own training data
  3. It installs new GPUs automatically
  4. It calls external functions like search or a calculator

Answer: D. It calls external functions like search or a calculator
Tool use lets an LLM-based agent request actions such as web search, running code or querying a database, then use the results in its reasoning.

8. A hiring model trained on past decisions favours one gender. What is the main cause?
  1. Bias in the historical training data
  2. The model ran on a slow computer
  3. The model had too few layers
  4. The job adverts were too short

Answer: A. Bias in the historical training data
Models learn patterns in the data, including unfair past decisions. Checking data, measuring fairness across groups and human oversight are needed.

9. Which is a common use of AI in healthcare?
  1. Replacing all doctors in hospitals
  2. Helping detect disease patterns in medical images
  3. Manufacturing medicines without labs
  4. Deciding hospital parking fees

Answer: B. Helping detect disease patterns in medical images
AI can flag possible tumours or eye disease in scans to support clinicians. The final decision usually stays with qualified professionals.

Free guides and blogs to study

Free tools for your studies and research

Codanics also has 160+ free online tools for students and researchers: statistics calculators, meta-analysis, PDF and writing tools. They run in your browser, with no login.

Browse all free tools →

Frequently asked questions

Is the AI & Generative AI Quiz free?

Yes. The AI & Generative AI Quiz is completely free, with no sign-up, no login and no limit on attempts.

How many questions are in the AI & Generative AI Quiz?

The question bank has 60 multiple-choice questions (20 easy, 24 medium and 16 hard) across 8 topics. Each attempt draws 10, 20 or 30 of them at random, so every attempt is different.

How does the timer work?

Each question has its own countdown: about 25 seconds for easy, 40 for medium and 55 for hard questions, plus 15 seconds when there is code to read. Choose Relaxed to double the time or switch the timer off to study at your own pace. Unanswered questions count as skipped.

Can I get a certificate or mark sheet?

Yes. When you finish, you get a mark sheet with your name, score, grade, time, topic-wise performance and every answer explained. Use Print or save as PDF to keep it. It is a self-assessment result, not an official certificate.

Are the answers and explanations correct?

Every question was written and reviewed for one clearly correct answer, and code questions were checked by running the code. If you think an answer is wrong, tell us on the Codanics WhatsApp channel or in the YouTube comments and we will fix it.

Do I need coding knowledge for the AI quiz?

No. The AI quiz is conceptual and suitable for anyone, including non-technical students, teachers and parents.

Does it name specific AI models?

No. Questions focus on ideas that stay true as new models are released, such as tokens, training, hallucination, RAG and agents.

Is my data stored anywhere?

No. The quiz runs entirely in your browser. Your name, answers and score are not uploaded. Your best score and settings are remembered only in this browser so you can track your progress.

More free quizzes

See all Codanics quizzes → · Courses · Free tools · Blog

Follow Codanics

Created by Dr. Muhammad Aammar Tufail, Codanics. Published 18 November 2026, last updated 18 November 2026. Found a mistake or want a quiz on another topic? Tell us on the WhatsApp channel or contact us.