Skip to content

Sathish292004/Quiz-Using-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Java Quiz Application

A simple console-based Quiz Application built using Java and Object-Oriented Programming (OOP) concepts.

Features

  • 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

Project Structure

Main.java
Question.java
QuestionServices.java

Main.java

Starts the quiz application.

Question.java

Represents a quiz question with:

  • Question ID
  • Question Text
  • Options
  • Correct Answer

QuestionServices.java

Handles:

  • Question creation
  • Displaying questions
  • Taking user input
  • Storing answers

Technologies Used

  • Java
  • VS Code
  • Git & GitHub

How to Run

  1. Clone the repository
git clone https://github.com/Sathish292004/Quiz-Using-Java.git
  1. Compile the files
javac *.java
  1. Run the application
java Main

Learning Concepts

This project helped in understanding:

  • Classes and Objects
  • Constructors
  • Getter and Setter Methods
  • Arrays
  • Enhanced For Loop
  • User Input using Scanner
  • Basic OOP Design

Future Improvements

  • Calculate and display score
  • Show correct answers
  • Randomize questions
  • Add timer functionality
  • Read questions from a file or database

About

๐Ÿ† A simple console-based Quiz Application built using Java and Object-Oriented Programming (OOP) concepts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages