Maths Quiz
Local quiz contest app: time limit, per-user submissions, automatic scoring, results in SQLite.
Problem
Running a timed quiz (e.g. maths contest) with multiple participants usually means paper, manual collection, and hand-marking. There’s no simple local tool that enforces one overall time limit, collects per-user answers, and scores against an answer key.
Solution
Maths Quiz is a local web app: one overall time limit for the whole quiz, no per-question timer, per-user submissions (name/ID), automatic scoring against an answer key, and results stored in a local SQLite database for review later. No cloud or external server—runs entirely on your machine.
Why it matters
Ideal for classrooms, clubs, or small contests where you want a single machine (e.g. teacher’s laptop) to host the quiz and collect results without sign-up or internet dependency.
Tech choices
- Python — Simple to run and modify; minimal dependencies.
- Flask — Lightweight web server; serves the quiz UI and submission endpoint.
- SQLite — All quiz data and results in one local file (e.g.
quiz.db); no database server. - Local only — No external APIs or accounts; suitable for air-gapped or offline use.
Run locally
Code lives in Documents/Maths Quiz. After pip install -r requirements.txt and python app.py, open http://127.0.0.1:5000.