This is your capstone project! Pull together everything you've learned — variables, data types, loops, methods, and control flow — to build a fully interactive quiz game in C#.
YOUR TASK
Create a quiz game that:
Asks the player 3 questions one by one (hardcoded in your program)
Reads the player's answer using Console.ReadLine()
Checks each answer — tells the player Correct! or Wrong!
Tracks the score with a counter variable
At the end, prints their final score out of 3
Use a method for checking answers to keep your code clean.
Need a hint?
Structure to follow:
1. Start with int score = 0;
2. Write a helper method: static bool CheckAnswer(string input, string correct)
— compare lowercased strings with .ToLower().Trim()
3. For each question: Console.WriteLine("Question: ..."); string answer = Console.ReadLine();
if CheckAnswer(answer, "correct") → print Correct!, score++
else → print Wrong!
4. After all questions: Console.WriteLine($"Your score: {score}/3");
Example (inputs: paris, 8, blue):
Q1: What is the capital of France?
paris
Correct!
Q2: How many legs does a spider have?
8
Correct!
Q3: What colour is the sky?
blue
Correct!
Your score: 3/3
Code Editor
Ready
Output
Console
Console initialized...
Ready for Final Project: Quiz Game System
> Use "Check My Code" to test your quiz
> Once it passes, hit Complete Course!