DEV Community

Cover image for How to Build an AI-Based Quiz Maker App with Flask – EdTech Project for Beginners
Nivesh Bansal
Nivesh Bansal

Posted on

How to Build an AI-Based Quiz Maker App with Flask – EdTech Project for Beginners

Build Your Own AI-Based Quiz Generator – syllabusQuiz (Open Source + Step-by-Step)

Looking to build a smart quiz generator powered by AI that saves hours of manual work?

Introducing syllabusQuiz, an open-source project that helps you:

  • ✅ Create topic-wise MCQ quizzes
  • ✅ Choose difficulty level, language, and number of choices
  • ✅ Get instant, non-repetitive questions
  • ✅ Empower students, teachers, coaching centers, and EdTech startups

Why Use syllabusQuiz?

If you’re:

  • 🧑‍🎓 a student wanting quick revision tests
  • 👩‍🏫 a teacher making assignments
  • 🏢 an EdTech founder prototyping fast
  • 💻 a developer learning AI integration

Then this tool is exactly for you!


🛠️ Tech Stack

  • Frontend: HTML, CSS, JavaScript (minimal & responsive UI)
  • Backend: Python + Flask
  • AI Integration: Gemini / OpenAI / LLM-based API (configurable)
  • Features:

    • Quiz by topic, subject, class
    • Choose language, options count, difficulty
    • Prevents duplicate questions
    • Real-time quiz generation
load_dotenv()
API_KEY = os.getenv("GEMINI_API_KEY")
Enter fullscreen mode Exit fullscreen mode
 prompt = f"""
        Generate {num_questions} multiple choice questions on the topic "{topic}".
        Difficulty: {difficulty}.

        Each question should have:
        - A question
        - 4 options (A to D)
        - Correct answer at the end in the format: Answer: A

        Format:
        Q: What is...?
        A. Option A
        B. Option B
        C. Option C
        D. Option D
        Answer: A
Enter fullscreen mode Exit fullscreen mode

📸 Live Demo / Video Walkthrough

Check out the complete working demo and setup guide:
👉 Try it: SyllabusQuiz


🧑‍💻 How to Use / Run Locally

  1. Clone the repo
  2. Install dependencies
  3. Set your API key
  4. Run app.py

Full documentation is inside the repo.


🌍 Use Cases

  • Students can self-test anytime
  • Teachers can automate quiz creation
  • Developers can learn how to integrate AI into real projects
  • Startups can build a base quiz engine for their app

🧠 Future Plans

  • Export quizzes to PDF
  • Multi-user login (teacher/students)
  • Admin dashboard
  • LMS & chatbot integration
  • Mobile responsive version

💾 GitHub Repo

🔗 View the complete source code on GitHub

Top comments (0)