Skip to content

munazzaghazali7-hash/Quiz-Game-With-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“ Java Quiz Game

A simple console-based quiz game built in Java. ๐Ÿš€ Test your knowledge with multiple-choice questions, get instant feedback, and track your score at the end!

โšก Features

๐Ÿ”„ Loops through a set of questions with multiple options

โœ… Checks userโ€™s answer and shows CORRECT or โŒ WRONG

โณ Adds a short delay between questions for a smooth experience

๐Ÿ† Displays your total score at the end

๐Ÿ’ป How to Run

Clone this repo

git clone https://github.com/your-username/java-quiz-game.git

Open it in IntelliJ / VS Code / any Java IDE.

Compile and run:

javac Main.java java Main

๐ŸŽฎ Sample Gameplay Q1. Which of the following is the correct way to print in Java? a) print("Hello World") b) System.out.println("Hello World"); c) echo("Hello World") d) Console.write("Hello World")

Enter your guess: 2


  CORRECT      

Your Score: 1/1

๐ŸŒŸ Future Ideas

Add a timer for each question โฑ๏ธ

Load questions from a file (like JSON/CSV) ๐Ÿ“‚

Keep track of high scores ๐Ÿ”ฅ

About

A simple console-based quiz game built in Java. ๐Ÿš€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages