Quiz Management Sysytem: A Mini Project
Quiz Management Sysytem: A Mini Project
A MINI PROJECT
REPORT
submitted by
-------------- --------------
INTERNAL EXAMINER EXTERNAL EXAMINER
TABLE Of CONTENTS
CHAPTER CONTENT PAGE NO.
1 Abstract 4
2 Introduction 5
3 Program code 6
4 Result & Discussions 17
5 Acknowledgement 18
6 Conclusion 19
7 References 20
ABSTRACT
The QUIZ MANAGEMENT SYSTEM is a for to take quiz in an efficient manner
and no time wasting for checking the paper. The main objective of QUIZ
MANAGEMENT SYSTEM is to efficiently evaluate thoroughly through a fully
automated system that not only saves lot of time but also gives fast results.
It give papers for students according to their convenience and time and there
is no need of using extra thing. This can be also used in educational institutions
to conduct exam. No restriction that examiner has to be present when the
candidate takes the test. It saves time as it allows number of students to give
the exam at a time and displays the results as the test gets over, so no need
to wait for the result. It is automatically generated by the server.
Administrator has a privilege to create, modify and delete account for
teachers. Anyone can register, login and give the test with his specific id, and
can see the results as well. Teachers can also evaluate different contexts.
Anyone can also see who is currently online and also the highest scores. It
provides a competitive platform, where a anyone not only judges their
knowledge but also they can improve their knowledge at the same time .
INTRODUCTION
It is divided into many functions, and listed below are some of those which may
help to 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, one 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.
The game ends when the user’s cash prize. 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.
PROGRAM CODE
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
#include<stdlib.h>
#include<string.h>
void show_record();
void reset_score();
void help();
int main()
int countr,r,r1,count,i,n;
float score;
char choice;
char playername[20];
mainhome:
system("cls");
printf("\n\t\t________________________________________");
printf("\n\t\t\t to ");
printf("\n\t\t________________________________________");
printf("\n\t\t________________________________________");
printf("\n\t\t________________________________________");
printf("\n\t\t________________________________________");
printf("\n\t\t________________________________________\n\n");
choice=toupper(getch());
if (choice=='V')
show_record();
goto mainhome;
else if (choice=='H')
help();getch();
goto mainhome;
else if (choice=='R')
{reset_score();
getch();
goto mainhome;}
else if (choice=='Q')
exit(1);
else if(choice=='S')
system("cls");
gets(playername);
system("cls");
printf("\n\n Here are some tips you might wanna know before playing:");
printf("\n -------------------------------------------------------------------------");
printf("\n >> There are 2 rounds in this Quiz Game,WARMUP ROUND & CHALLANGE ROUND");
printf("\n >> In warmup round you will be asked a total of 3 questions to test your");
printf("\n general knowledge. You are eligible to play the game if you give atleast 2");
printf("\n right answers, otherwise you can't proceed further to the Challenge Round.");
printf("\n >> Your game starts with CHALLANGE ROUND. In this round you will be asked a");
printf("\n By this way you can win upto ONE MILLION cash prize!!!!!..........");
printf("\n >> You will be given 4 options and you have to press A, B ,C or D for the");
printf("\n >> You will be asked questions continuously, till right answers are given");
if (toupper(getch())=='Y')
goto home;
else
goto mainhome;
system("cls");
home:
system("cls");
count=0;
for(i=1;i<=3;i++)
system("cls");
r1=i;
switch(r1)
case 1:
printf("\n\nA.42042\t\tB.101010\n\nC.23232\t\tD.01234");
if (toupper(getch())=='C')
printf("\n\nCorrect!!!");count++;
getch();
break;
else
getch();
break;
case 2:
printf("\n\nA.France\t\tB.Denmark\n\nC.Switzerland\t\tD.Finland");
if (toupper(getch())=='C')
{printf("\n\nCorrect!!!");count++;
getch();
break;}
else
getch();
break;}
case 3:
printf("\n\nA.Polar Bear\t\tB.Hyena\n\nC.Donkey\t\tD.Chimpanzee");
if (toupper(getch())=='B')
{printf("\n\nCorrect!!!");count++;
getch();
break;}
else
getch();
break;}
case 4:
printf("\n\n\nWho was awarded the youngest player award in Fifa World Cup 2006?");
if (toupper(getch())=='B')
{printf("\n\nCorrect!!!");count++;
getch();
break;}
else
getch();
break;}
case 5:
if (toupper(getch())=='B')
{printf("\n\nCorrect!!!");count++;
getch();
break;}
else
getch();
break;}
case 6:
if (toupper(getch())=='D' )
{printf("\n\nCorrect!!!");count++;
getch();
break;}
else
break;}}
if(count>=2)
{goto test;}
else
system("cls");
printf("\n\nSORRY YOU ARE NOT ELIGIBLE TO PLAY THIS GAME, BETTER LUCK NEXT TIME");
getch();
goto mainhome;
test:
system("cls");
if(toupper(getch())=='p')
{goto game;}
game:
countr=0;
for(i=1;i<=10;i++)
{system("cls");
r=i;
switch(r)
case 1:
printf("\n\nA.Football\t\tB.Basketball\n\nC.Cricket\t\tD.Baseball");
if (toupper(getch())=='C')
{printf("\n\nCorrect!!!");countr++;getch();
break;getch();}
else
break;}
case 2:
printf("\n\nA.Seismology\t\tB.Cosmology\n\nC.Orology\t\tD.Etimology");
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++;getch();
break;}
else
goto score;
break;
case 3:
printf("\n\n\nAmong the top 10 highest peaks in the world, how many lie in Nepal? ");
printf("\n\nA.6\t\tB.7\n\nC.8\t\tD.9");
if (toupper(getch())=='C')
{printf("\n\nCorrect!!!");countr++;getch();
break;}
else
goto score;
break;}
case 4:
printf("\n\nA.Faraday\t\tB.Tesla\n\nC.Maxwell\t\tD.Coulomb");
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++;getch();
break;}
else
break;
case 5:
printf("\n\nA.Coulomb\t\tB.Watt\n\nC.Power\t\tD.Units");
if (toupper(getch())=='B')
{printf("\n\nCorrect!!!");countr++;getch(); break;}
else
getch();
goto score;
break;
case 6:
printf("\n\nA.Zinc\t\tB.Cobalt\n\nC.Calcium\t\tD.Iron");
if (toupper(getch())=='B' )
{printf("\n\nCorrect!!!");countr++;getch();
break;}
else
getch();
break;}
case 7:
printf("\n\nA.Polska\t\tB.Hellas\n\nC.Drukyul\t\tD.Nippon");
if (toupper(getch())=='D')
{printf("\n\nCorrect!!!");countr++;getch();
break;}
else
{printf("\n\nWrong!!! The correct answer is D.Nippon");getch();
goto score;
break;}
case 8:
if (toupper(getch())=='B')
{printf("\n\nCorrect!!!");countr++;getch(); break;}
else
goto score;
break;}
case 9:
printf("\n\nA.Copenhagen\t\tB.Helsinki\n\nC.Ajax\t\tD.Galatasaray");
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++; getch();
break;}
else
goto score;
break;}
case 10:
printf("\n\nA.Nile\t\tB.Koshi\n\nC.Ganga\t\tD.Amazon");
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++;getch(); break;}
else
case 11:
if (toupper(getch())=='C')
{printf("\n\nCorrect!!!");countr++;getch();
break;}
else
break;goto score;}
case 12:
printf("\n\nA.Rome\t\tB.Vactican City\n\nC.Madrid\t\tD.Berlin");
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++;getch();
break;}
else
break;goto score;}
case 13:
printf("\n\nA.Japan\t\tB.Italy\n\nC.Argentina\t\tD.France");
if (toupper(getch())=='D')
{printf("\n\nCorrect!!!");countr++;getch();
break;}
else
break;goto score;}
case 14:
if (toupper(getch())=='A')
{printf("\n\nCorrect!!!");countr++;getch();
break;}
else
getch();
break;goto score;
case 15:
printf("\n\nA.A\t\tB.AB\n\nC.B\t\tD.O");
if (toupper(getch())=='B')
printf("\n\nCorrect!!!");countr++;
getch();
break;}
else
getch();
goto score;
break;
return 0;
}
RESULT & DISCUSSIONS
CONCLUSION
knowledge but also they can improve their knowledge at the same time .
REfERENCE
1. https://www.slideshare.net/SARASWATENDRASINGH/online-
examination-system-project-report
2. https://www.codewithc.com/quiz-game-mini-project-in-c/
3. http://www.quiz-creator.com/quiz-management-system.html
4.