Skip to content

sanskriti-2007/Quiz-Master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Quiz Master

Description

Quiz Master is a Python command-line quiz application that presents users with multiple-choice questions in a randomized order. The program evaluates user responses, provides immediate feedback, and displays the final score at the end of the quiz.

This project was built to practice Python fundamentals, including modules, lists, dictionaries, loops, conditionals, user input handling, and the random library.


Features

  • Randomized question order
  • Multiple-choice questions
  • Instant feedback after each answer
  • Score tracking
  • Modular code structure
  • Easy to expand with additional questions

Project Structure

Quiz/
│
├── main.py
├── questions.py
└── README.md

main.py

Contains the main quiz logic:

  • Displays questions
  • Accepts user input
  • Checks answers
  • Tracks score
  • Displays the final result

questions.py

Stores quiz questions, options, and correct answers in a structured format.


Technologies Used

  • Python 3
  • Random Library

Concepts Practiced

  • Variables and Data Types
  • Lists
  • Dictionaries
  • Loops
  • Conditional Statements
  • Functions
  • Modules
  • User Input Handling
  • Randomization
  • Problem Solving

Skills Used

  • Python
  • Modules
  • Lists
  • Dictionaries
  • Random Library
  • Input Validation
  • Problem Solving

How to Run

  1. Clone the repository:
git clone <repository-url>
  1. Navigate to the project directory:
cd Quiz
  1. Run the program:
python main.py

Example

Welcome to the Quiz! Let's get started.

Question: What is the capital of France?

A. Paris
B. Rome
C. Berlin
D. Madrid

Your answer (A/B/C/D): A

Correct! Well done.

Question: How many continents are there?

A. 5
B. 6
C. 7
D. 8

Your answer (A/B/C/D): C

Correct! Well done.

Your score is: 2/2

Future Improvements

  • Difficulty levels
  • Multiple categories
  • Timer-based questions
  • High-score tracking
  • Question loading from external files
  • Graphical User Interface (GUI)

Author

Developed as a Python learning project to practice programming fundamentals and build problem-solving skills.

About

A Python command-line quiz game featuring randomized multiple-choice questions, score tracking, and modular code organization.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages