Quick Quiz is a fun and interactive web-based quiz application that lets users test their knowledge across multiple categories. It features a clean, dark-themed UI, pulls questions from a live API, and gives instant score feedback.
- Multiple Categories: General Knowledge, History, Politics, Geography, Computer Science, Animals.
- Dynamic Questions: Fetched in real-time from the Open Trivia Database (OpenTDB) API.
- Interactive Interface: 10 multiple-choice questions with shuffled options.
- Score Tracking: Updates score as the quiz progresses.
- Final Score Card: Displays score out of 10.
- Rules Modal: Pop-up with quiz guidelines.
- Anti-Cheat: Ends quiz if tab is switched or window resized.
- Responsive Design: Works seamlessly on desktop and mobile.
- Frontend: HTML5, CSS3, JavaScript (ES6+)
- API: Open Trivia Database (OpenTDB)
- User selects a category.
- Rules modal explains quiz guidelines.
- 10 questions are fetched from API.
- One question shown at a time, score updates instantly.
- Final score displayed, with option to return to main menu.
# Clone the repository
git clone https://github.com/ritiku2004/Quick-Quize.git
# Navigate to the project folder
cd Quick-QuizeOpen index.html in your browser.
No API key required.
index.html— Layout, rules modal, quiz container.style.css— Dark theme, layout, responsive design, transitions.script.js— Handles UI events, API calls, score tracking, anti-cheat logic.
Ritik — ritiku2004