A simple console-based Quiz Application built in Java. It allows users to answer multiple-choice questions and shows the final score.
- Multiple-choice questions (MCQs)
- Instant feedback (Correct / Wrong)
- Final score display after all questions
- Easy to extend with more questions
- Java 17+ (works on Java 8 and above)
- Object-Oriented Programming (OOP)
QuizApp/
βββ QuizApp.java
βββ Question.java (inner class inside QuizApp.java)
-
Clone the repository:
git clone https://github.com/your-username/quiz-app.git cd quiz-app
-
Compile the Java file:
javac QuizApp/QuizApp.java
-
Run the program:
java QuizApp.QuizApp
What is the capital of India?
1. Mumbai
2. Delhi
3. Kolkata
4. Chennai
Enter your answer (1-4): 2
Correct!
Which language is used for Android development?
1. Java
2. Python
3. C#
4. Ruby
Enter your answer (1-4): 1
Correct!
What is 5 + 7?
1. 10
2. 11
3. 12
4. 13
Enter your answer (1-4): 3
Correct!
Quiz Over! Your Score: 3/3
Developed by Sudharsan S M