How cbharath29/quiz-application works
This is a single-file terminal quiz application. Users enter through a menu, start a randomized timed quiz, receive per-question feedback, and see a scored and graded result; high scores and quiz history are persisted for later viewing. The README documents the main capabilities, while the sampled source confirms the quiz, grading, persistence, timer, and menu responsibilities. Since the implementation is monolithic, the internal components below share main.py; the source excerpts do not expose every call, so documented workflow links cite the README.
Main entry points: main.py Quiz session · highscore.txt High-score file · history.txt History file
Components 16
Terminal experience
- Main menu
main.py - Instructions
main.py - Terminal rendering
main.py
Quiz session
- Question bank
main.py - Quiz session
main.py - Question randomizer
main.py - Timed answer input
main.py - Progress indicator
main.py - Answer feedback
main.py
Results and records
- Score calculation
main.py - Grade calculation
main.py - High-score handling
main.py - High-score file
highscore.txt - History handling
main.py - History file
history.txt
Other components
- Player
Connections 18
- Player → Main menu: selects options
README.md - Main menu → Quiz session: starts quiz
main.py - Main menu → Instructions: opens instructions
README.md - Main menu → High-score handling: views record
main.py - Main menu → History handling: views history
README.md - Quiz session → Question bank: uses questions
main.py - Quiz session → Question randomizer: shuffles questions
main.py - Quiz session → Timed answer input: collects answers
README.md - Quiz session → Progress indicator: shows progress
README.md - Quiz session → Answer feedback: shows feedback
README.md - Quiz session → Score calculation: calculates result
README.md - Score calculation → Grade calculation: calculates grade
main.py - Quiz session → High-score handling: saves score
main.py - High-score handling → High-score file: reads and writes
main.py - Quiz session → History handling: records session
main.py - History handling → History file: reads and writes
main.py - Main menu → Terminal rendering: renders menu
main.py - Quiz session → Terminal rendering: renders quiz
README.md