This document summarizes a computer science project completed by Ashwin Francis in 2014-2015 for their CBSE board. It includes sections on certificates, declarations, acknowledgements, introductions to C++ and the project, source code, outputs, and bibliography. The project involved creating a quiz game programmed in C++. It asks players 5 multiple choice questions, providing the option for a 50-50 lifeline on each. Correct answers earn points, and an incorrect final answer ends the game. The document explains the features and workings of the quiz game program.
2. 1. Certificate
2. Declaration
3. Acknowledgement
4. Introduction to c++
5. Introduction to Project
6. Codings
7. Outputs
8. Bibliography
3. This is to certify that the project entitled “QUIZ
GAME” is a record of bonafide work carried out by
“Ashwin Francis 12th
A”.In partial fulfilment of the
requirements in COMPUTER SCIENCE prescribed by
CBSE for CBSE BOARD 2014-2015 in the school
Kendriya Vidyalaya Gole Market,New Delhi 110001.
DATE PRINCIPAL
INTERNAL EXTERNAL
EXAMINER EXAMINER
4. We hereby declare that the project work entitled
“QUIZ GAME“. Submitted to KENDRIYA VIDYALAYA
GOLE MARKET, NEW DELHI for theSubject of
“COMPUTER SCIENCE“. Under the guidance of
Mrs.Neera Singhal, PGT(COMP Sc.), Is a record of
original work done by us.We further Declare that this
project record or any part of this has not been
Submitted elsewhere for any other class.
DATE MEMBERS
PLACE
5. We wish to express our sincere thanks to Mr.
DHIR SINGH Principal,Kendriya Vidyalaya Gole
Market, New Delhi for guiding us to cause the
successful outcome of this project work.
We wish to express our deep & profound sense of
gratitude to our guide/teacher Mrs.Neera Singhal,
PGT(COMP Sc.), For her expert help &valuable
guidance, comments and suggestions.
We also place on record, our sincere Gratitude to
one and all who ,Directly or Indirectly ,Have Lent
their helping hand in this venture.
6. C++ is a programming Language Developed by Bjarne Stroustrup. It was
originally named as C with classes, was renamed as C++ in 1983.It is regarded
as an intermediate-level language, as it comprises both high-level and low-level
language features. Its application domains include systems software,
application software, device drivers, embedded software, highperformance
server and client applications, and entertainment software such as video
games. C++ continues to be used and is one of the preferred programming
languages to develop professional applications
The Features of C++ as a Language
Now that all the necessary theory has been covered, now it is possible to
explain what C++ has to offer as a programming language. C++....
• ...is an open source ISO-standardized language.
For a time, C++ had no official standard and was maintained by a defacto
standard, however since 1998, C++ is standardized by a committee of
the ISO.
• ...is a compiled language.
C++ compiles directly to a machine's native code, allowing it to be one
of the fastest languages in the world, if optimized.
• ...supports both static and dynamic type checking.
C++ allows type conversions to be checked either at compile-time or
at run-time, again offering another degree of flexibility. Most C++ type
checking is, however, static.
• ...is portable.
7. As one of the most frequently used languages in the world and as an open
language, C++ has a wide range of compilers that run on many different
platforms that support it.Code that exclusively uses C++'s standard library will
run on many platforms with few to no changes.
8. Quiz game is a very popular General Knowledge Game. The quiz game
increases the IQ knowledgeof the player. Itis used to check the knowledge
within us.
The provided sourcecode is the simple Quiz game programmed implementing
C language. In this program severalquestion are provided to the player. The
players are provided with 4 options in it. Player is all need to choice the
suitable option from the 4 option available in the screen. The player needs to
type either A, B, C, or D according to the suitable answer provided in it.
The player will scorethe points with each correctanswer provided.
12. getch();
}
}
//*************** END OF MAIN **********************
//******** SET 1
voidquiz::set1()
{
clrscr();
cout<<"n Thisisyour eligibilityquestion";
cout<<"nnnnIncomputer,whatis1gigabyte?";
cout<<"n(a)1024*2 bytes"<<"t(b)1024*1024*1024 bytes";
cout<<"n(c)1024*3 bytes"<<"t(d)NONEOFTHESE";
char rs[]="b";
cout<<"nEnteryouranswer:- ";
cin>>ans;
t=strcmp(ans,rs);
if(t==0)
{
clrscr();
cout<<"nYouhave qualified";
cout<<"n***********************************";
cout<<"n**WELCOME TO THIS GRAND QUIZ SHOW**";
cout<<"n***********************************";
cout<<"nnnnHEREYOU WILL BE ASKEDA QUESTION & FOUR OPTIONS";
cout<<"nWILL BE THERE, IN WHICH THREE ARE WRONG ANDONLY ONE";
cout<<"nISCORRECT.YOU HAVE TO GIVE THE CORRECT ANSWER";
cout<<"nYOU HAVEA 50 - 50 HELP LINE IN WHICH THERE WILL BE ";
13. cout<<"nONLYTWO OPTIONSOFWHICH ONLY ONEIS CORRECT. YOU";
cout<<"nHAVETO GIVE THE CORRECT ANSWER.ANYWRONGANSWERMEANSYOU ";
cout<<"nFINISHTHE GAME THERE ONLY. "; cout<<"n******** YOU CAN TAKEONLY THREE HELP
LINES *********";
cout<<"nnnnnPRESSENTERTOSTART THE GAME ";
getch();
s1.ques1();
}
else
{
cout<<"aWRONG ANSWER!!!!a";
cout<<"nnttBETTER LUCK NEXT TIME ";
getch();
}
}
//************** QUESTION 1
voidquiz::ques1()
{
clrscr();
cout<<"nWhatdo you meanbyHexadecimal incomputer?";
cout<<"n(a)Withabase of 16"<<"t(b)Witha base of 6";
cout<<"n(c)Withabase of 8"<<"t(d)NONEOFTHESE";
char rs[]="a";
cout<<"nDO YOU WANT 50/50 LIFELINE (Y/N) ";
cin>>w;
if(w=='Y'||w=='y')
{
flag++;
14. s1.fifty1();
}
cout<<"n Please give youranswer:- ";
cin>>ans;
t=strcmp(ans,rs);
if(t==0)
{
pts=1000;
cout<<" YOUR SCORE IS:- "<<pts;
f1<<"n"<<pts;
f1.close();
cout<<"nPRESSANYKEY FORTHE NEXT QUESTION ";
getch();
s1.ques2();
}
else
{
cout<<"aWRONG ANSWER!!!!a";
getch();
}
}
voidquiz::fifty1()
{
clrscr();
cout<<"nWhatdo you meanbyHexadecimal incomputer?";
cout<<"n(a)Withabase of 16"<<"t(b)Witha base of 6";
}