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.
- 📝 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
Quiz-Using-Java/
│── Main.java
│── Question.java
│── QuestionServices.java
└── README.md
- Entry point of the application
- Starts the quiz
Represents a quiz question containing:
- Question ID
- Question
- Four Options
- Correct Answer
Responsible for:
- Initializing quiz questions
- Displaying questions
- Collecting user answers
- Storing responses
- Displaying submitted answers
- Java
- Object-Oriented Programming (OOP)
- VS Code
- Git
- GitHub
git clone https://github.com/Sathish292004/Quiz-Using-Java.gitcd Quiz-Using-Javajavac *.javajava Main- Classes & Objects
- Constructors
- Encapsulation
- Arrays of Objects
- Methods
- User Input using Scanner
- Modular Programming
Start Quiz
│
▼
Display Question
│
▼
User Selects Answer
│
▼
Store Response
│
▼
Next Question
│
▼
Display All Answers
- ✅ 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
Contributions are welcome!
- Fork the repository
- Create a new branch
- Commit your changes
- Open a Pull Request
This project is open-source and available under the MIT License.
Sathish Kumar B
- GitHub: https://github.com/Sathish292004
- LinkedIn: https://linkedin.com/in/sathish292004
⭐ If you found this project helpful, consider giving it a Star.