Sei sulla pagina 1di 13

Projects

C/C++ Projects

C Projects

C Mini Projects

C++ Projects

C++ Mini Projects

ASP.NET Projects

Java Projects

PHP Projects

VB.NET Projects

App Projects

Android Projects

Python Projects

Tutorials

C Tutorial

C++ Tutorial

Java Tutorials

Numerical Methods

Numerical Methods & C/C++

Numerical Methods & MATLAB

Algorithms & Flowcharts

Books

How To ?

Top of Form

Search
Bottom of Form

Monday, March 19, 2018

About Us

C Tutorials

Java Tutorials

WordPress

Forums

Code with C

Projects

C/C++ Projects

C Projects

C Mini Projects

C++ Projects

C++ Mini Projects

ASP.NET Projects
Java Projects

PHP Projects

VB.NET Projects

App Projects

Android Projects

Python Projects

Tutorials

C Tutorial

C++ Tutorial

Java Tutorials

Numerical Methods

Numerical Methods & C/C++

Numerical Methods & MATLAB

Algorithms & Flowcharts

Books

How To ?

Top of Form

Search

Bottom of Form

Home Projects C Projects Quiz Game Mini Project in C

Projects

C Projects

Quiz Game Mini Project in C

March 31, 2014

12
10175

Share on Facebook

Tweet on Twitter

This is a complete and error-free Quiz Game Mini Project in C designed as a simple console application.
In this project, a number of questions are asked, and the user is awarded cash prize for each correct
answer given. (Other similar mini game projects are: snake game, hangman game, pacman game.)

In quiz game, questions are chosen in such a a way that they cover all fields of a typical quiz contest. The
user’s general knowledge is tested with quiz questions regarding science, technology, movies, sports,
general health, geography and many more.

The source code is to be compiled in Code::Blocks with gcc compiler. This quiz game in C is not designed
to run on the Turbo C versions. The source code for this mini project is around 1000 lines, so I didn’t
want to display it here. You can directly download the source code and application file from the link
below.

Downloads Quiz Game Mini Project in C with Source Code

Quiz Game in C – Project Introduction:

I have divided this mini project into many functions, and listed below are some of those which may help
you understand the project better.

edit_score() – adds the current cash prize won to the previous one upon giving the right answer to a
question

help() – help menu with game summary and rules

reset_score() – to reset the highest score/cash prize to default

show_record() – shows the highest cash prize won by a particular user

show_score() – to view the highest score

In this quiz game mini project, you can store the user name, view the highest score secured by a user,
and even reset the score. Additionally, to make the game look a little more interesting, it is divided into
two rounds; user must pass the first round to reach the second one.
Of the 2 rounds I mentioned above, the first is called the Warm-up Round; the second is the Challenge
round. In the warm-up round, the user is asked a total of three simple questions and they must be able
to answer at least two of them correctly to enter the next round. If the user is not capable of doing that,
he is not permitted to proceed further.

In the second and more interesting round of this quiz game in C, the user will be asked questions
continuously, and for each right answer given, they will earn $100,000!

The game ends when the user’s cash prize piles up to $1 million. For each question asked, there are 4
options, namely A, B, C and D. There are no negative markings, so the user’s accumulated cash money
won’t be deducted for wrong answers to the questions.

Output Screenshots:

Welcome Screen
Correct Answer

Highest Score

Also see,
Pacman Game in C
Hangman Game in C
More Projects in C

In this quiz game mini project in C, I haven’t used file handling for reading and storing the Quiz questions
asked during the game. I have used file only for recording the score secured or the amount of cash prize
won by players.
Not using file handling in C for reading and storing questions may seem a bad idea, but this mini project
can definitely guide you to create similar Quiz games by using file handling for aforementioned
operations.

TAGS

C Mini Projects

Mini Game Projects

Quiz Game

SHARE

Facebook

Twitter

Previous articleC Program for LU Factorization

Next articleMini Project in C Bank Management System

CodeWithC

RELATED ARTICLESMORE FROM AUTHOR

C Program: Stack Operations Project


C Program: Kaun Banega Crorepati (KBC) Game (Who Will Become a Millionaire) – 2017

C Program: Infix Expression to a Postfix Conversion

12 COMMENTS

abcd January 31, 2017 at 11:58 am

void show_record()
{clrscr();
char name[20];
float scr;
FILE *f;
f=fopen(“score.txt”,”r”);
fscanf(f,”%s%f”,&name,&scr);
printf(“\n\n\t\t*************************************************************”);
printf(“\n\n\t\t %s has secured the Highest Score %0.2f”,name,scr);
printf(“\n\n\t\t*************************************************************”);
fclose(f);
getch();}

void reset_score()
{system(“cls”);
float sc;
char nm[20];
FILE *f;
f=fopen(“score.txt”,”r+”);
fscanf(f,”%s%f”,&nm,&sc);
sc=0;
fprintf(f,”%s,%.2f”,nm,sc);
fclose(f);}
can you explain it or simplify it for turbo c7.

Reply

Noman May 13, 2015 at 7:33 pm

Nice working probably the best site for c developers

Reply

Pramesh Pudasaini May 13, 2015 at 8:11 pm

Thanks Noman

Reply

Khatt Jah February 5, 2015 at 11:08 pm

Thank you so much for sharing your work. It’s really a great help! Our project for the Finals somewhat
like yours. We just have to use all of this —> Function, Array, Pointers and Switch Case, which I believe is
applicable on this game, right? Or is there another game/system where I can use all four? Your response
will be highly appreciated.
Thank you once again and have a great day!

– Khatt Jah –

Reply

Pramesh Pudasaini February 5, 2015 at 11:59 pm

Hey, good to know you liked this project. And yes, this Quiz Game uses just simple features such as
functions and arrays; there’s no use of file handling. You can modify this project as you wish. Good luck!
Reply

Muhammadh April 29, 2015 at 9:08 pm

Sir

When i click the download menu for the quiz. It appears as the account has been disabled. Can you
please get me copy of that quiz game code

Reply

Pramesh Pudasaini April 29, 2015 at 9:52 pm

I posted this project about a year ago, so I actually can’t relate to your problem. In fact, such problem
shouldn’t have arise, and I don’t think there’s any account disabling feature in this project.

Further, there’s no separate copy of the source code; the one in the download link is the original copy.

Reply

Amit January 27, 2015 at 5:02 pm

Hello, lots of thanks for the project.

Reply

shome kim October 18, 2014 at 9:54 pm

I am new to programming and i am working hard to find a ground so that i can enjoy it too like others. I
just came across this game and i think its a nice one. i will follow it slowly to see if soon i can also
develop something others can enjoy. Any guidance given is much welcome sir.

Reply

Pramesh Pudasaini October 19, 2014 at 7:51 am

If you’re new to programming, C is probably the best language to start with. Understanding C should
take you less than a month, and you found the simplest project to start learning C. Quiz Game and
Phonebook are the simplest projects we have to help beginners understand how to develop mini
projects. Also, you can read some good books on C programming.

Recommended book:- C Programming: A Modern Approach

Reply

chaitanya krishna October 6, 2014 at 3:18 pm

sir i want a program on cultural and technical program management of a college/university


plz send if u have

Reply

Pramesh Pudasaini October 6, 2014 at 3:42 pm

I don’t have this project at the moment. If I get this project, I’ll publish it and let you know.

Reply

LEAVE A REPLY Cancel reply

Top of Form

Please enter your comment!

Please enter your name here

You have entered an incorrect email address!

Please enter your email address here


Post Comment 389 0

a7b4a44265

1521464477000

Bottom of Form

Recent Posts

Pharmacy Management System in C++ with MySQL January 3, 2018

C program: Addition of two values December 18, 2017

Airlines Reservation System in C++ with MySQL September 21, 2017

Recent Topics

JAVA – Need help with validation in constructor

Is it still worth picking up Java in 2017-2018?

What is the use of Callout function in SharePoint

HTML responsive web design help please

PHP Function for update or insert data from one to another mysqli table

Discussion Forums

ASP.NET

C and C++

C# Programming

HTML/CSS

JAVA Programming

Javascript/AngularJS

MATLAB

Miscellaneous
Mobile Development

PHP

Visual Basic Classic

Recent Topics

JAVA – Need help with validation in constructor

Is it still worth picking up Java in 2017-2018?

What is the use of Callout function in SharePoint

HTML responsive web design help please

PHP Function for update or insert data from one to another mysqli table

Code with C | Programming: Projects & Source Codes

Code with C is a comprehensive compilation of Free projects, source codes, books, and tutorials in Java,
PHP,.NET,, Python, C++, C, and more. Our main mission is to help out programmers and coders, students
and learners in general, with relevant resources and materials in the field of computer programming.

Home

About Us

Contact Us

Terms of Use

Privacy Policy

© CodeWithC.com

Potrebbero piacerti anche