Skip to content

Sathish292004/Quiz-Using-Java

Repository files navigation

🎯 Java Quiz Application

A simple, console-based Quiz Application developed using Java and Object-Oriented Programming (OOP) principles. The application allows users to answer multiple-choice questions, records their responses, and demonstrates core Java programming concepts.


✨ Features

  • πŸ“ Multiple-choice quiz questions
  • πŸ‘€ Accepts user input using Scanner
  • πŸ’Ύ Stores user answers
  • πŸ“‹ Displays user responses after quiz completion
  • 🧩 Modular class-based architecture
  • πŸ”„ Easy to add or modify questions
  • πŸ“š Demonstrates Object-Oriented Programming concepts

πŸ“‚ Project Structure

Quiz-Using-Java/
│── Main.java
│── Question.java
│── QuestionServices.java
└── README.md

πŸ“„ Main.java

  • Entry point of the application
  • Starts the quiz

πŸ“„ Question.java

Represents a quiz question containing:

  • Question ID
  • Question
  • Four Options
  • Correct Answer

πŸ“„ QuestionServices.java

Responsible for:

  • Initializing quiz questions
  • Displaying questions
  • Collecting user answers
  • Storing responses
  • Displaying submitted answers

πŸ›  Technologies Used

  • Java
  • Object-Oriented Programming (OOP)
  • VS Code
  • Git
  • GitHub

πŸš€ Getting Started

Clone the repository

git clone https://github.com/Sathish292004/Quiz-Using-Java.git

Navigate to the project

cd Quiz-Using-Java

Compile the project

javac *.java

Run the application

java Main

🧠 OOP Concepts Demonstrated

  • Classes & Objects
  • Constructors
  • Encapsulation
  • Arrays of Objects
  • Methods
  • User Input using Scanner
  • Modular Programming

πŸ“Έ Sample Workflow

Start Quiz
      β”‚
      β–Ό
Display Question
      β”‚
      β–Ό
User Selects Answer
      β”‚
      β–Ό
Store Response
      β”‚
      β–Ό
Next Question
      β”‚
      β–Ό
Display All Answers

πŸš€ Future Enhancements

  • βœ… Calculate final score
  • βœ… Display correct answers
  • βœ… Randomize question order
  • βœ… Timer for each question
  • βœ… Negative marking
  • βœ… Difficulty levels
  • βœ… Read questions from JSON, CSV, or Database
  • βœ… Save quiz history
  • βœ… Leaderboard
  • βœ… GUI using Java Swing or JavaFX

🀝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a new branch
  3. Commit your changes
  4. Open a Pull Request

πŸ“„ License

This project is open-source and available under the MIT License.


πŸ‘¨β€πŸ’» Author

Sathish Kumar B

⭐ If you found this project helpful, consider giving it a Star.

About

πŸ† A simple console-based Quiz Application built using Java and Object-Oriented Programming (OOP) concepts

Topics

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages