Skip to content

Latest commit

 

History

History
162 lines (118 loc) · 2.66 KB

File metadata and controls

162 lines (118 loc) · 2.66 KB

🎯 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.