🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101

AI quiz generator from notes

Paste class notes and get a multiple-choice quiz with explanations, then take it in the browser.

Intermediate⏱ 8–12 hoursđŸĒœ 7 stepsNext.js or FlaskLLM API

What you'll learn

  • ◆Prompting for reliable, checkable output
  • ◆Validating AI output before showing it
  • ◆Building a small full-stack app

What you'll build

  • ✓Paste notes or upload a text file
  • ✓Choose number of questions and difficulty
  • ✓Quiz with instant feedback
  • ✓Export to CSV

Step-by-step guide

  1. 1

    Input

    A text area with a length limit (for example 6,000 words); show the word count.

  2. 2

    Prompt

    Ask for N questions, 4 options each, exactly one correct, an explanation quoting the notes, as JSON.

  3. 3

    Validate

    Check every question has 4 unique options and a valid answer index; drop or regenerate bad ones.

  4. 4

    Quiz UI

    One question at a time, show explanation after answering, final score.

  5. 5

    Grounding check

    Ask the model (or a second call) to confirm each answer is supported by the notes; flag unsupported ones.

  6. 6

    Save

    Download as CSV or JSON to reuse.

  7. 7

    Costs

    Show estimated tokens before generating; set a max per request.

🚀 Make it stand out

  • +Hindi output
  • +Spaced repetition of wrong answers
  • +Share a quiz link with friends