Skip to content

harshshrivastava2005/Quiz-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Quiz-App

A simple console-based Java quiz application using basic control flow and user input handling.

๐ŸŽฎ Mini Quiz App (Java Console Application)

This is a simple console-based quiz application built using Java. It presents the user with multiple-choice questions, takes input from the user, evaluates answers, and shows the final score at the end.


Features

  • โœ… Multiple-choice questions
  • โœ… User input via console (Scanner)
  • โœ… Score calculation
  • โœ… Clean, beginner-friendly Java code
  • โœ… Easy to modify or expand with more questions

Technologies Used

  • Java (Core)
  • Console I/O (Scanner Class)
  • Arrays / Loops / Conditionals

๐Ÿš€ How to Run

  1. Clone the repository: git clone https://github.com/harshshrivastava2005/Quiz-App.git

  2. Navigate to the folder: cd Quiz-App

  3. Compile the Java file: javac Quiz-App.java

  4. Run the app:

  5. java Quiz-App

    1. What is the full form of JVM? A. Java Very Machine B. Java Virtual Machine C. Just Virtual Machine D. Java Variable Mode Your answer (A/B/C/D): B ? Correct!
  6. What is the index of the last element in an array of size n? A. n B. n-1 C. n+1 D. n/2 Your answer (A/B/C/D): B ? Correct!

  7. Which of the following is the correct way to declare an array in Java? A. int arr[] = new int(5); B. int arr[] = int[5]; C. int arr[] = new int[5]; D. int arr() = new int[5]; Your answer (A/B/C/D): C ? Correct!

  8. Which loop is guaranteed to run at least once? A. for B. while C. do-while D. foreach Your answer (A/B/C/D): C ? Correct!

  9. What does OOP stand for? A. Object Oriented Program B. Object Oriented Programming C. Operational Oriented Programming D. Ordinary Object Programming Your answer (A/B/C/D): B ? Correct!

Quiz Finished! Your total score is : 5/5

Learning Goals

  • Improve understanding of Java fundamentals
  • Practice arrays, conditionals, loops, and user input
  • Build small Java projects for portfolio

Author

Harsh Shrivastava
๐Ÿ“ง [harshshrivastava2005@gmail.com]
LinkedIn | GitHub

Don't forget to star(โญ) the repo if you found it helpful!

Releases

No releases published

Packages

No packages published

Languages