0% found this document useful (0 votes)
155 views

Python Py

This document is a project report on a computer quiz created by two students, Satyam Prasad and Payal Sharma, under the guidance of their teacher Miss Diksha Giri. The report includes an introduction explaining what a computer quiz is, the aims of creating this quiz, sample source code and screenshots from the quiz, and requirements. It also includes certificates of completion, an acknowledgements section thanking those who helped with the project, and a bibliography.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
155 views

Python Py

This document is a project report on a computer quiz created by two students, Satyam Prasad and Payal Sharma, under the guidance of their teacher Miss Diksha Giri. The report includes an introduction explaining what a computer quiz is, the aims of creating this quiz, sample source code and screenshots from the quiz, and requirements. It also includes certificates of completion, an acknowledgements section thanking those who helped with the project, and a bibliography.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 19

PROJECT REPORT ON

(COMPUTER QUIZ)

Submitted by
Satyam Prasad & Payal
Sharma
XII(Sci)
Roll no(board)

Under the Guidance of


Miss Diksha Giri
PGT (Computer Science)

Department of Computer Science


Kendriya Vidyalaya, Sukna Darjeeling,
West Bengal

Computer Science
Session 2022-23
1|Page
KENDRIYA VIDYALAYA SUKNA

CERTIFICATE

This Certificate of Completion is awarded to Master / Miss


…………………………. for having successfully completed the
Lab Assignment on Python and SQL for the partial fulfillment
of Class XII Practical Examination 2022.

Miss Diksha Giri Mr. Md


PGT(Computer Science)
Mofizzudin
Principal

…………………………….
PGT(Computer Science)
External Examiner

2|Page
KENDRIYA VIDYALAYA SUKNA

CERTIFICATE

This Certificate of Completion is awarded to Master / Miss


…………………………... for having successfully completed
the Project work on Python and SQL topic ……………… for
the partial fulfillment of Class XII Practical Examination 2022.

Miss Diksha Giri Mr. Md


PGT(Computer Science)
Mofizzudin
Principal

…………………………….
PGT(Computer Science)
External Examiner

3|Page
ACKNOWLEDGEMENT

I would like to express my greatest appreciation to the all


individuals who have helped and supported me throughout the
project. I would like to express a deep sense of thanks and
gratitude to my project guide Miss Diksha Giri madam for
guiding me immensely through the course of the project for her
ongoing support during the project, from initial advice, and
encouragement, which led to the final report of this project. I
would also like to thank my teachers who was always there in
our computer lab for assistance.
My sincere thanks go to Mr. Md Mofizzudin, our principal sir,
for his co-ordination and support in extending every possible
support for the completion of this project.
.
Also, I would like to thank my family and friends for their
support. Without that support we couldn’t have succeeded in
completing this project.
At last but not in least, we would like to thank everyone who
helped and motivated us to work on this project.

SIGNATURE
Name of Student: Satayam Prasad &
Payal Sharma

KENDRIYA VIDYALAYA SUKNA


INDEX-PAGE

4|Page
CLASS XII

S. Sign
Contents Date
No.

1 Certificate

2 Acknowledgements

3 Declaration

4 Introduction

5 Aims

6 Coding and screenshots

7 Requirements

8 Bibliography

INTRODUCTION
A computer quiz is a form of game or mind sport in which players
attempt to answer questions correctly on one or several specific topics.
Quizzes can be used as a brief assessment in education and similar
fields to measure growth in knowledge, abilities, or skills. They can also
be televised for entertainment purposes, often in a game show format.
5|Page
The earliest known examples of the word date back to 1780; its
etymology is unknown, but it may have originated in student slang. It
initially meant an "odd, eccentric person" or a "joke, hoax". Later
(perhaps by association with words such as "inquisitive") it came to
mean "to observe, study intently", and thence (from about mid-19th
century) "test, exam."
There is a well-known myth about the word quiz that says that in 1791 a
Dublin theatre owner named Richard Daly made a bet that he could
introduce a word into the language within 24 hours. He then went out
and hired a group of street children to write the word "quiz", which was
a nonsense word, on walls around the city of Dublin. Within a day, the
word was common currency and had acquired a meaning (since no one
knew what it meant, everyone thought it was some sort of test) and Daly
had some extra cash in his pocket.[4] However, there is no evidence to
support the story, and the term was already in use before the alleged bet
in 1791. In an educational context, a quiz is usually a form of a student
assessment, but often has fewer questions of less difficulty and requires
less time for completion than a test. This use is typically found in the
United States, Canada, the Philippines, Dominican Republic and some
colleges in India. For instance, in a mathematics classroom, a quiz may
check comprehension of a type of mathematical exercise. Some
instructors schedule a daily or weekly quiz ranging from five to thirty
relatively easy questions for the purpose of having the students review
their previous lessons before attending the next class. A "pop quiz" is a
quiz that students are given no time to prepare for; they are simply
surprised with it in classAdditionally, a personality quiz may be a series
of multiple-choice questions about the respondent without right or wrong
answers. The responses to these questions are tallied according to a
key, and the result purports to reveal some quality of the respondent.
This kind of "quiz" was originally popularized by women's magazines
such as Cosmopolitan. They have since become common on
the Internet, where the result page typically includes code which can be
added to a blog entry to publicize the result. These postings are common
on many sites like LiveJournal.

AIM

The Objective behind to organize Quiz competition is to


evaluate the knowledge of the participants within academics
as well as beyond academics and to make them familiar with
the prospects of quizzes and the objectivity of the questions.
6|Page
With practicing quizzes, students can do critical thinking, and
get into a habit of innovative learning. These quizzes integrate
the game mechanics into the learning process, they help
students understand the weaker areas. Quizzes help students
identify what they know and what they don't know. The
students then have a better idea of how well they are grasping
the material, hopefully motivating them to study more and
helping them allocate their study time effectively by focusing
on the information that still needs more practice. A
questioning teacher creates incentives for students to learn
more. Teacher sets up effective and definite goals for
learning; giving oral or written examination is a good
incentive for the students to study harder or to do better work.

7|Page
SOURCE CODE
print('''**Welcome to my computer quiz:**
-----POINTS TO NOTE-----\n
1.There are total 20 questions\n
2.you have to type the full answer\n
3.All the answers should be in fully small letters\n
4.In case of option base question, you have to type your
answer, instead of typing (a),(b),(d) or (d)\n''')

playing= input('Do you want to play? (yes/no)\n:')

if playing !='yes':
quit()

print('okay! lets play! :\n')


score = 0

answer = input('1.What does CPU stands for?\n: ')


if answer == 'central processing unit':
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The Correct Answer is:
central processing unit\n ')

answer = input('2. Who developed Python


Programming Language?\n: ')

8|Page
if answer == 'guido van rossum':
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is:
guido van rossum\n ')

answer = input('3.Is Python case sensitive when dealing


with identifiers(yes/no)?\n: ')
if answer == 'yes':
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is yes\n
')

answer = input('4.what is the extension for python file\


n: ')
if answer == ('.py'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is: .py\n
')

answer = input('5.What will be the value of the


following Python expression? 4 + 3 % 5\n: ' )
if answer == ('7'):
print('Correct Answer\n ')
9|Page
score += 1
else:
print('Incorrect Answer\n The correct answer is: 7\n ')

answer = input('6.Which of the following character is


used to give single-line comments in Python?\n: ')
if answer == ('#'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is: #\n ')

answer = input('''7.What will be the output of the


following Python code?

i=1
while True:
if i%3 == 0:
break
print(i)
i + = 1\n: ''')
if answer == ('error'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is:
error\n ')

10 | P a g e
answer = input('''8.Which of the following functions is a
built-in function in python?
a) factorial()
b) print()
c) seed()
d) sqrt()
\n: ''')
if answer == ('print'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is:
print\n ')

answer = input('''9.Which of the following is not a core


data type in Python programming?
a) Tuples
b) Lists
c) Class
d) Dictionary\n: ''')
if answer == ('class'):
print('Correct Answer\n')
score += 1
else:
print('Incorrect Ansewer\n The correct answer is:
class\n ')

answer = input('''10. What will be the output of the


following Python function?
11 | P a g e
len(["hello",2, 4, 6])\n: ''')
if answer == ('4'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is: 4\n ')

answer = input('''11. What arithmetic operators cannot


be used with strings in Python?
a) *
b) –
c) +
d) All of the mentioned\n: ''')
if answer == ('-'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is: -\n ')

answer = input('''12.What is the maximum possible


length of an identifier in Python?
a) 79 characters
b) 31 characters
c) 63 characters
d) none\n: ''')
if answer == ('none'):
print('Correct Answer\n ')
score += 1
12 | P a g e
else:
print('Incorrect Answer\n The correct answer is:
none\n ')

answer = input('''13.What will be the output of the


following Python expression?

round(4.576)\n: ''')
if answer == ('5'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is: 5\n ')

answer = input('14.What is output of print(math.pow(3,


2))?\n: ')
if answer == ('9'):
print('Correct Answer\n ')
score +=1
else:
print('Incorrect Answer\n The correct answer is: 9\n ')

answer = input('''15.What will be the output of the


following Python code?

def foo():
try:
return 1

13 | P a g e
finally:
return 2
k = foo()
print(k)\n: ''')
if answer == ('3'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is: 3\n ')

answer = input('16.What does SQL stand for?\n: ')


if answer == ('structured query language'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is:
structured query language\n ')

answer = input('17.What does DML stand for?\n: ')


if answer == ('data manipulation language'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is: data
manipulation language\n ')

14 | P a g e
answer = input('''18. Which of the following can add a
row to a table?

Add

Insert

Update

Alter\n: ''')
if answer == ('insert'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is:
insert\n ')

answer = input('''19.The primary key is selected from


the:
composite keys.
determinants
foreign keys
candidate keys\n: ''')
if answer == ('candidate keys'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is:
candidate keys\n ')

15 | P a g e
answer = input('20.Which MySQL statement is used to
delete data from a database?\n: ')
if answer == ('delete'):
print('Correct Answer\n ')
score += 1
else:
print('Incorrect Answer\n The correct answer is:
delete\n ')

print('-----RESULT-----')
print('')
print('')
print('YOU HAVE ' + str(score) + ' QUESTION
CORRECT')
print('')
print('YOU GOT ' + str(score/20*100) + ' %.')
print('')
print('**THANK YOU FOR PLAYING THIS
QUIZ**')
print('')
print('')
print('##### CODED BY SATYAM PRASAD #####')

16 | P a g e
SCREEN SHOT

17 | P a g e
Requirements
HARDWARE AND SOFTWARE REQUIREMENTS

I.OPERATING SYSTEM : WINDOWS 7 AND ABOVE

II. PROCESSOR : PENTIUM(ANY) OR AMD

ATHALON(3800+-

4200+ . DUAL CORE)

IV. RAM : 512MB+

V. Hard disk : SATA 40 GB OR ABOVE

SOFTWARE REQUIREMENTS:

I. Windows OS
II. Python
III. MySql

18 | P a g e
BIBLOGRAPHY

19 | P a g e

You might also like