Skip to content

93Jourdan/PythonQuiz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🎓 Final Exam Quiz App

A simple desktop quiz application built with Python and Tkinter. It presents multiple-choice questions one at a time, tracks your score, and lets you restart when finished.


📋 Features

  • Multiple-choice questions with 4 answer options each
  • Score tracking throughout the exam
  • Warning popup if you try to submit without selecting an answer
  • Final score display when all questions are completed
  • Restart button to retake the exam

🛠️ Technologies Used

  • Python 3 — core programming language
  • Tkinter — Python's built-in GUI library (no install needed)

🚀 How to Run

  1. Make sure Python 3 is installed on your machine:

    python3 --version
  2. Clone or download this repository, then navigate to the project folder.

  3. Run the app:

    python3 exam_app.py

No external libraries are required — Tkinter comes bundled with Python.


🗂️ Project Structure

exam_app.py       # Main application file (all logic and UI in one file)
README.md         # Project documentation

🧱 Code Overview

Class Responsibility
Question Stores a single question's prompt, options, and correct answer
Exam Manages question flow, score tracking, and reset logic
ExamApp Builds and controls the Tkinter GUI

➕ Adding Your Own Questions

In exam_app.py, scroll to the question_list section at the bottom and add a new Question object:

Question(
    "Your question text here?",
    ["Option A", "Option B", "Option C", "Option D"],
    "Option A"   # This must exactly match one of the options above
)

⚠️ The answer string must exactly match one of the option strings, including capitalization.


👤 Author

Jay — Student Project
University of New Orleans

About

An interactive command-line quiz game built in Python. Tests your knowledge with multiple-choice questions, tracks your score, and displays results at the end.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages