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")
 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
📸 Live Demo / Video Walkthrough
Check out the complete working demo and setup guide:
👉 Try it: SyllabusQuiz
🧑💻 How to Use / Run Locally
- Clone the repo
 - Install dependencies
 - Set your API key
 - 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
 
              
    
Top comments (0)