Skip to content

A command prompt based Quiz program. Users are able to answer multiple choice questions and see feedback on their answers.

Notifications You must be signed in to change notification settings

ndigitals04/Quiz-Program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧠 Quiz Program

Quiz Program

A simple terminal-based Python quiz application that tests your knowledge on Naruto with multiple choice questions.


📋 Features

  • Multiple-choice quiz with 4 options per question.
  • Tracks score and number of correct answers.
  • Displays Time left.
  • Automatically closes and submits once time is over
  • User can skip questions using skip command.
  • Clean and readable CLI interface.

🚀 How to Set Up

  1. Clone the Repository
git clone https://github.com/ndigitals04/Quiz-Program.git
cd Quiz-Program
  1. Run the Quiz

Make sure you have Python 3 installed.

python quiz.py

🧩 How It Works

  • The quiz questions are stored in a dictionary called base_questions where: Each key is a question (string).

  • Each value is a list of 4 options (the correct answer is always the first item).

  • The program presents questions randomly and shuffles the options before displaying them.

  • User selects an answer by typing 'a', 'b', 'c', or 'd'.

  • All responses are stored and analyzed at the end to calculate the user's score.

  • After completing the quiz, the user is shown their total score and the program ends.

▶️ Watch Live Demonstration here👇

Watch Demo

📞 Contact

Have suggestions or want to connect?

📱 Reach out to me on X

About

A command prompt based Quiz program. Users are able to answer multiple choice questions and see feedback on their answers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages