Skip to content

Siddhantkr19/Task-8-Mini-Project-Online-Quiz-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

🎯 Online Quiz App (Java)

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.


🚀 Features

  • 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)

🛠️ Technologies Used

  • Java (Core concepts)
  • Scanner class for user input
  • OOP principles (class, objects, encapsulation, methods)
  • Exception handling for safe input

▶️ How to Run

  1. Clone the repository:
    git clone https://github.com/your-username/online-quiz-app.git

  1. Navigate to the project folder:
      cd online-quiz-app

  1. cd online-quiz-app:
     javac Online_Quiz_App.java

  1. Run the program:
       java Online_Quiz_App  

📖 Example Output

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

🎓 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

About

Online Quiz App (Java) A simple console‑based quiz application built in Java for students to practice Object‑Oriented Programming (OOP) concepts. This project demonstrates: - Class and Object usage (Question class) - Encapsulation (private fields with getters) - Conditional logic (checking correct answers) - Exception handling (validating user inpu

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages