Welcome to Coding Quiz, an interactive and dynamic quiz platform created by Mr. Halip. Test your programming knowledge with personalized quizzes in Web Development and Python!
- Personalized Experience: Enter your name and age before starting
- Two Quiz Categories:
- Basic Web Development (HTML, CSS, JavaScript)
- Basic Python Programming
- 15 Questions Per Category: Comprehensive coverage of fundamental concepts
- Randomized Questions: Questions appear in random order for each session
- Real-time Scoring: Instant feedback on your performance
- Animated Transitions: Smooth, professional animations between screens
- Gradient Design: Modern purple-pink gradient theme
- Fully Responsive: Works perfectly on desktop, tablet, and mobile devices
- User-Friendly Interface: Clean and intuitive design
- Personalized Feedback: Results include your name and age
- Performance-Based Messages: Different encouragement based on your score
- 80%+ : "Excellent work!"
- 60-79%: "Good job!"
- <60%: "Keep learning!"
- Restart Option: Easy replay with "Play Again" button
- Separation of Concerns: Quiz data stored in JSON file
- Modular Design: Easy to add more quiz categories
- Maintainable Code: Well-organized and commented
-
Clone the repository
git clone https://github.com/halip26/coding-quiz.git cd coding-quiz -
Open the quiz
- Simply open
index.htmlin your web browser - Or use a local server for better experience
- Simply open
-
Take the quiz
- Enter your name
- Enter your age
- Choose between Web Development or Python quiz
- Answer all 15 questions
- View your results with personalized feedback
quiz-game-js/
├── assets/
│ ├── css/
│ │ └── style.css # Modern styling with gradients
│ ├── data/
│ │ └── quizData.json # Quiz questions (Web Dev & Python)
│ ├── images/
│ │ ├── quiz-game.png # Favicon
│ │ └── screenshot.png # Preview image
│ └── js/
│ └── script.js # Quiz logic and interactivity
├── index.html # Main HTML file
├── README.md # This file
└── LICENSE # MIT License
- HTML5: Semantic markup structure
- CSS3:
- Custom properties
- Flexbox layout
- CSS animations and transitions
- Gradient backgrounds
- Responsive design with media queries
- JavaScript (ES6+):
- Async/await for data loading
- Fetch API for JSON data
- DOM manipulation
- Event handling
- Array methods (shuffle algorithm)
- JSON: External data storage for quiz questions
- Font: Poppins (Google Fonts)
- Color Scheme:
- Primary: Purple to Pink gradient (#667eea → #764ba2 → #f093fb)
- Success: Green gradient (#2ecc71 → #27ae60)
- Backgrounds: Light gradient overlays
- Animations: Smooth fade-in/fade-out transitions
- Shadows: Layered shadows for depth
The quiz automatically adapts to:
- Desktop (600px+)
- Tablet (600px and below)
- Mobile devices (optimized touch targets)
Edit assets/data/quizData.json:
{
"webDev": [
{
"question": "Your question here?",
"a": "Option A",
"b": "Option B",
"c": "Option C",
"d": "Option D",
"correct": "a"
}
]
}- Add new category to
quizData.json - Update
script.jsto handle the new category - Add button in HTML for the new quiz type
Visit the live demo: Coding Quiz
Mr. Halip
- Website: halip26.github.io
- GitHub: @halip26
- Twitter: @halip26
This project is licensed under the MIT License. See the LICENSE file for details.
- Font: Google Fonts - Poppins
- Inspiration: Modern web design trends
- Built with ❤️ for coding education
Happy Coding! 🚀
