Skip to content

Sudharsansm/QuizApp-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Quiz Application (Java Console)

A simple console-based Quiz Application built in Java. It allows users to answer multiple-choice questions and shows the final score.


πŸš€ Features

  • Multiple-choice questions (MCQs)
  • Instant feedback (Correct / Wrong)
  • Final score display after all questions
  • Easy to extend with more questions

πŸ› οΈ Technologies Used

  • Java 17+ (works on Java 8 and above)
  • Object-Oriented Programming (OOP)

πŸ“‚ Project Structure

QuizApp/
 β”œβ”€β”€ QuizApp.java
 β”œβ”€β”€ Question.java  (inner class inside QuizApp.java)

▢️ How to Run

  1. Clone the repository:

    git clone https://github.com/your-username/quiz-app.git
    cd quiz-app
  2. Compile the Java file:

    javac QuizApp/QuizApp.java
  3. Run the program:

    java QuizApp.QuizApp

πŸ“– Example Usage

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

πŸ‘¨β€πŸ’» Author

Developed by Sudharsan S M

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages