A simple console-based quiz application written in Java.
This project is designed for students who want to practice Java basics and OOP concepts in a fun and interactive way.
- Multiple-choice questions with options
- Input validation (prevents invalid answers)
- Score calculation and percentage display
- Feedback messages (Correct / Wrong)
- Final result evaluation (Excellent, Good Job, Needs Improvement)
- Java (Core concepts)
- Scanner class for user input
- OOP principles (class, objects, encapsulation, methods)
- Exception handling for safe input
- Clone the repository:
git clone https://github.com/your-username/online-quiz-app.git
- Navigate to the project folder:
cd online-quiz-app
- cd online-quiz-app:
javac Online_Quiz_App.java
- Run the program:
java Online_Quiz_App
Welcome to the Java Quiz! Let's see your potential. Are you Ready?
Question 1: Which data type is used to create a variable that should store text?
- Options 1: String
- Options 2: Txt
- Options 3: string
- Options 4: Char Enter your option number: 1 Correct!
Your Score: 3 / 4
Percentage: 75%
Result: Good Job! Keep practicing. 👍
🎓 Learning Outcomes By working with this project, students will:
- Understand how to design and use classes in Java
- Apply OOP concepts like encapsulation and methods
- Learn how to handle user input safely
- Practice loops, arrays, and conditional statements
- Build confidence in writing small Java applications