Skip to content

lakshay47-lab/quiz_game-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

🧠 C++ Quiz Game

A simple and interactive quiz game written in C++


How It Works

  • The game asks the user multiple-choice questions (MCQs)
  • Each correct answer gives the user points
  • At the end, the total score is displayed

💡 Features

  • Console-based quiz experience
  • Multiple-choice format
  • Easy to expand with more questions
  • Tracks score and shows results
  • Clear instructions and user-friendly prompts

Concepts Used

  • if-else and switch statements
  • Arrays / structures (if used)
  • Loops and functions
  • Input/output (cin, cout)
  • Scoring logic and conditions

🖥️ How to Run

▶ On Replit:

  1. Click the Run button
  2. Answer the questions by typing appropriate option
  3. See your score at the end!

💻 Locally:

  1. Make sure you have a C++ compiler installed (e.g., g++)
  2. Compile the code: g++ quiz_game.cpp -o quiz

3.Run the code ./quiz

Screenshot quiz

Releases

No releases published

Packages

No packages published

Languages