0% found this document useful (0 votes)
45 views19 pages

Computer Project

The document is a final report on a project titled 'Quiz Game Using C' submitted by students of Khwopa Secondary School for their computer science degree. It details the development of a simple quiz game using C programming, focusing on functions, structures, and file handling. The report includes acknowledgments, objectives, methodology, and discussions on the project's implementation and outcomes.

Uploaded by

bhugol.gautam1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views19 pages

Computer Project

The document is a final report on a project titled 'Quiz Game Using C' submitted by students of Khwopa Secondary School for their computer science degree. It details the development of a simple quiz game using C programming, focusing on functions, structures, and file handling. The report includes acknowledgments, objectives, methodology, and discussions on the project's implementation and outcomes.

Uploaded by

bhugol.gautam1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

KHWOPA SECONDARY SCHOOL

DEPARTMENT OF COMPUTER SCIENCE

Dekocha-06, BHAKTAPUR

A FINAL REPORT

ON

“QUIZ GAME USING C”

A Report Submitted for the partial fulfilment of requirement for the degree of NEB

in computer science

Submitted by: Submitted To:

Samriddhi Prajapati (128) Department of Computer Science


Khwopa Secondary School
Nirjala Duwal (110)
Dekocha-06, Bhaktapur
Anuj Rana Magar (100)

Kritan Shyaula (105)

Sanik Karmacharya (130)

UNDER THE GUIDANCE OF


…………………...

1
DEPARTMENT OF COMPUTER SCIENCE

KHWOPA SECONDARY SCHOOL

DEKOCHA-06, BHAKTAPUR

CERITFICATE

This is to certify that the project entitled “Programming with C” submitted by Miss
Samriddhi Prajapati, Miss Nirjala Duwal, Mr Anuj Thapa Magar, Mr Kritan Shyaula & Mr
Sanik Karmacharya in apartial fulfillment of the requirements for the internal marks of
Computer science in NEB (Nepal Education Board) Class 12 (XII), is a bonafide work to the
best of my/our knowledge and may be placed before the examination board for their
considerarion.

.Panel of Examiners:

Name Signature Date

External Examiners

……………………

Project Supervisors

…………………….

2
ACKNOWLEDGEMENT

We are thankful to all those who have helped us directly or indirectly with this project.
Foremost, we would like to thank the Department of Computer Science of Khwopa
Secondary School for the giving an opportunity to carry out project entitled "Programming
with C". We would like to thank our computer teachers …………. for their guidance while
developing project and also for organizing the project schedules. Also we would like to
acknowledge their effort that encouraged us to take this challenging project. We would also
like to offer our gratitude towards some of our friends who helped throughout our project
development phase by providing several references regarding different links for code and
making project work.

3
ABSTRACT
This project is constructed by using C programming language. This a simple quiz game
which we have constructed using functions, structure, file handling etc. through the
theoretical knowledge of C programming and studying various keywords, functions of C
programming we have able to made this quiz game. This is a simple game where user need
to choose the correct option for scoring.

This project mainly focused on how we can implement the C programming in a realistic way
based on theoretical knowledge.

Taking the knowledge of syntax of structure, file handling, functions with its application
helps us to develop the overall project. We have learned how we can implement the C
programming in a realistic manner by typing and playing with the codes.

4
TABLE OF CONTENTS

Contents
ACKNOWLEDGEMENT…………………………………………………………………...................3

ABSTRACT……………………………………………………………………………………............4

INTRODUCTION…………………………………………………………………………………… 6

1.1. BACKGROUND ......................................................................................................................... 6

1.2. OBJECTIVES .............................................................................................................................. 6

1.3. APPLICATIONS ......................................................................................................................... 6

1.4. SCOPE AND LIMITATIONS ..................................................................................................... 7

[Link]………………………………………………………………………………… 8

I. BLOCK DIAGRAM........................................................................................................................ 9

TOOLS AND PLATFORM………………………………………………...…………………………10

3. DISCUSSION AND CONCLUSION……………………………………..……………………… 11

I. DISCUSSION ................................................................................................................................ 11

[Link] ............................................................................................................................. 11

4. APPENDIX……………………………………………………………………………………… ...12

I. APPENDIX -2 ............................................................................................................................... 14

II. APPENDIX- 3 .............................................................................................................................. 15

III. APPENDIX -4 ............................................................................................................................ 16

IV. APPENDIX-5 ............................................................................................................................. 17

V. APPENDIX-6............................................................................................................................... 18

5. REFERENCE………………………………………………………………….……………………19

5
INTRODUCTION
1.1. BACKGROUND
Technology is rapidly increasing in today’s world. Internet is one of the rapidly increasing
technologies. The use and user are increasing day by day. Nowadays, people are using
internet for communication, collaboration, and many others things that done online. With the
development of internet, computer programming is also developed rapidly in the modern era.
Computer Programming is the fundamental skills for so many different applications, not just
software development or cutting-edge research into artificial intelligence. Through the help of
computer programming we can do research and development, government operations, web
development and designs, marketing and business operations, data science and artificial
intelligence, cyber security etc.

In the world of programming, we have visualize a small project based on c programming


code and we have designed a simple quiz game. Getting the theoretical knowledge from the
classroom, we designed a simple demonstration of the use of structure, functions, file
handling in the program.

1.2. OBJECTIVES
 To familiar with the use of c programming in realistic manner
 To learn how to use structure, pointer, file handling in the program
 To be able to design a simple application by use of c codes

1.3. APPLICATIONS
 To show how the code really works
 To provide general knowledge about c programming
 To demonstrate that how coding is important in modern era

6
1.4. SCOPE AND LIMITATIONS

The first and foremost things are our country is lacking on the development of internet and
skilled programmers. So the scope of our project is to make everyone an eligible programmer
and able to design software, applications in our own country.

The limitations are people don’t have computers in their home to practice programming and
familiarized with it.

7
[Link]
The quiz game is designed using functions, structure and file handling.

 On the basis of functions used in the program

I).We have use library functions like start(); , help(); ,high score(); etc. Like

The int start(); int help(); and int high score(); are the function prototype that gives
information about the type of the value returned, the name of the function and the number
and the type of arguments that must be supplied in function call.

II).Calling functions are start(); , help(); ,high score(); etc.

III).And the function definition which is followed by function body. It contains the value
returned by the function followed function name.

 On the basis of structure used in the program

We use structure to hold dissimilar data items as single units. A member of structure can be
accessed by using period (.) sign between structure variable and respective member. We use
the array of structure for holding collection of structure variable having same set of members.

 Based on the file handling used in the program

fopen():To create a new data file

fclose():To close data file

fprintf():To write formatted data to data file

fscanf():To read formatted data from data file

The modes used in the program are:

r :open an existing file for reading

w:open a new file for writing

Some control structure used in program is


1) Conditional statements like if statement , if else statement if else if statements
2) Switch statements
3) Looping(while loop)
4) assignment operator(=) and conditional operator(==,>,<)

8
I. BLOCK DIAGRAM

Main screen Press 1) to start the game, 2) to get help and


3)to quit the game

GAME WILL BE
QUIT

If you press 3
then If you press 1 then

 You will be ask your name to start then the


question is start to ask you

If you press 2 for help then


 You will have to choose the correct option for
the given question
 There will be three question and you have to
press 1,2,3 for the correct option
 Each question is of 5 marks

9
TOOLS AND PLATFORM
We have use Dev C++ for coding the overall game which is the most downloaded application
or platform for coding. The new version of dev C++ is highly sophisticated, compiling and
running is very fast and error is also shown with the reason in each line.

The overall project can be typing in Ms Word which is the most powerful text documenting
application.

10
3. DISCUSSION AND CONCLUSION
I. DISCUSSION
By doing the project of C programming, we are able to make a simple quiz game. In this
project we able to provide the information related on how we can handle various file
handling, structure in c program.

[Link]
In conclusion, the basic quiz game project in C provides a simple yet functional platform for
users to test their knowledge. With a minimalistic design, the game offers a straightforward
interface, smooth navigation, and immediate feedback on user responses. Despite its
simplicity, the project demonstrates key programming principles and serves as an accessible
introduction to C programming for quiz game development.

11
4. APPENDIX
 This is the main screen that appears at the first after compiling and runningthe
program.

 This is the next screen after we press 1 to start the game and you will be asked to enter your
name then the questions will appear as followed:

12
13
I. APPENDIX -2
o This is the next screen after completing all the questions and the total score,points, rated are
shown as follows:

o This is the screen when we press 2 from keyword that shows the help options about
the game and if we press 1 then the game will again continue.

14
II. APPENDIX- 3

 This is the program code to develop the quiz game .

15
III. APPENDIX -4
 This program is done in Dev C++ which is the popular platform for C programming.

16
IV. APPENDIX-5

17
V. APPENDIX-6

 This is the screen of file handling in which it is write and read in another file of the program
code through the use of fp=fopen(“[Link]”,”w”).

18
5. REFERENCE
1) [Link]

2) Buddha publication computer book class 12

3) [Link]

19

You might also like