A simple console-based Quiz Application built using Java and Object-Oriented Programming (OOP) concepts.
- Multiple-choice quiz questions
- Stores user answers
- Displays all answers after quiz completion
- Uses arrays and classes
- Demonstrates OOP concepts such as:
- Encapsulation
- Constructors
- Objects
- Arrays of Objects
Main.java
Question.java
QuestionServices.java
Starts the quiz application.
Represents a quiz question with:
- Question ID
- Question Text
- Options
- Correct Answer
Handles:
- Question creation
- Displaying questions
- Taking user input
- Storing answers
- Java
- VS Code
- Git & GitHub
- Clone the repository
git clone https://github.com/Sathish292004/Quiz-Using-Java.git- Compile the files
javac *.java- Run the application
java MainThis project helped in understanding:
- Classes and Objects
- Constructors
- Getter and Setter Methods
- Arrays
- Enhanced For Loop
- User Input using Scanner
- Basic OOP Design
- Calculate and display score
- Show correct answers
- Randomize questions
- Add timer functionality
- Read questions from a file or database