0% found this document useful (0 votes)
9 views11 pages

Python Quiz Project

The document outlines a Python quiz program created by Rehaan Jonwal as part of a school project, demonstrating basic programming concepts such as lists, loops, and user input. It includes a certificate of completion, acknowledgments, objectives, and a detailed explanation of the program's features and limitations. The project aims to enhance programming skills and logical thinking through an interactive quiz format.

Uploaded by

Hemlata Jonwal
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)
9 views11 pages

Python Quiz Project

The document outlines a Python quiz program created by Rehaan Jonwal as part of a school project, demonstrating basic programming concepts such as lists, loops, and user input. It includes a certificate of completion, acknowledgments, objectives, and a detailed explanation of the program's features and limitations. The project aims to enhance programming skills and logical thinking through an interactive quiz format.

Uploaded by

Hemlata Jonwal
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

PYTHON QUIZ PROGRAM WITH FOUR

OPTIONS EACH
Rehaan Jonwal
Name: ______________________________
Class: XI
Subject: Computer Science
pm shri kv bhavnagar
School: ____________________________
15 feb 2026
Date: ______________________________

This project demonstrates a simple quiz program created using Python.


It shows how questions can be asked with four options and how scores
are calculated.
The project is written in simple language and follows Class 11
concepts.
It is designed as a console program for learning basic programming
logic.
The program uses lists, loops, conditions, and random selection.
It helps understand user input and output clearly.
Prepared as part of school internal assessment work.
CERTIFICATE
Rehaan Jonwal
This is to certify that __________________ has successfully
completed
the Computer Science project titled 'Python Quiz Program with Four
Options Each'.
This project is submitted in partial fulfillment of the Class XI curriculum.
The work has been carried out during the academic session.
It reflects the student’s understanding of Python basics and logic
building.
The project demonstrates sincere effort and learning.
Teacher’s Signature: __________________
Examiner’s Signature: ________________
Date: ________________________________
ACKNOWLEDGEMENT
I would like to express my sincere gratitude to my Computer Science
teacher
Santosh Deval Sir for his guidance and support throughout this project.
His explanations helped me understand Python concepts clearly.
I am thankful for the encouragement and valuable suggestions
provided.
I also thank my school for giving me the opportunity to work on this
project.
My classmates and friends supported me during the learning process.
This project helped me improve my programming skills and confidence.
I am grateful to everyone who contributed directly or indirectly.
Completing this work has been a great learning experience.
INTRODUCTION
Python is a simple and powerful programming language.
It is widely used for learning programming basics.
A quiz program is a common beginner project.
It helps practice conditions, loops, and user input.
In this project, a quiz asks multiple choice questions.
Each question has four options.
The program checks answers and calculates score.
Questions are selected randomly to make the quiz interesting.
This project shows how programming can be interactive.
It builds logical thinking and problem solving skills.
OBJECTIVE / AIM
• To create a simple quiz program using Python.
• To understand lists and dictionaries.
• To practice conditional statements.
• To learn how to take user input.
• To calculate score automatically.
• To display results clearly.
• To use random selection of questions.
• To develop programming confidence.
• To apply classroom concepts practically.
EXPLANATION OF THE QUIZ PROGRAM
The program stores questions in a list.
Each question contains four options and a correct answer.
Random module is used to shuffle questions.
The user selects an option for each question.
The program compares the answer with the correct one.
Score increases for correct answers.
At the end, total score is displayed.
Comments are added to explain each part of code.
The program runs in the console and is easy to understand.
It demonstrates basic Python logic clearly.
FEATURES
• Random question selection.
• Four options for each question.
• Simple user interface in console.
• Score tracking.
• Easy to modify questions.
• Beginner friendly code.
• Uses basic Python concepts.
• Clear output messages.
• Suitable for learning practice.
PYTHON CODE

# Python Quiz Program


import random

# List of questions with options and answers


questions = [
("Capital of India?", ["A Delhi","B Mumbai","C Kolkata","D Chennai"],
"A"),
("2+2=?", ["A 3","B 4","C 5","D 6"], "B"),
("Python is?", ["A Snake","B Language","C Game","D OS"], "B"),
("Sun rises in?", ["A West","B North","C East","D South"], "C"),
("5*5=?", ["A 10","B 15","C 20","D 25"], "D"),
("Largest ocean?", ["A Atlantic","B Pacific","C Indian","D Arctic"], "B"),
("H2O is?", ["A Salt","B Water","C Gas","D Metal"], "B"),
("Planet known as Red?", ["A Earth","B Mars","C Venus","D Jupiter"],
"B"),
("Square root of 9?", ["A 1","B 2","C 3","D 4"], "C"),
("Keyboard is?", ["A Input","B Output","C Storage","D None"], "A"),
("CPU stands for?", ["A Central","B Control","C Processing","D Unit"],
"A"),
("HTML is?", ["A Language","B Hardware","C Game","D Virus"], "A"),
("10/2=?", ["A 2","B 3","C 4","D 5"], "D"),
("Earth is?", ["A Star","B Planet","C Galaxy","D Moon"], "B"),
("Water freezes at?", ["A 0","B 10","C 50","D 100"], "A"),
("RAM is?", ["A Memory","B Disk","C Cable","D Chip"], "A"),
("Light speed is?", ["A Fast","B Slow","C Medium","D None"], "A"),
("Mouse is?", ["A Input","B Output","C Both","D None"], "A"),
("Python created by?", ["A Guido","B Elon","C Bill","D Mark"], "A"),
("Binary uses?", ["A 0,1","B 1,2","C 2,3","D 3,4"], "A")
]

[Link](questions)
score = 0

for q, opts, ans in questions:


print(q)
for o in opts:
print(o)
user = input("Answer: ").upper()
if user == ans:
score += 1

print("Score:", score)
LIMITATIONS
• Console only interface.
• No graphics.
• User must type correctly.
• Limited number of questions.
• No timer feature.
• No database storage.
• Basic scoring only.
• Not suitable for large scale testing.
• Can be improved with GUI.
CONCLUSION + BIBLIOGRAPHY
This project helped me understand Python programming better.
I learned how to create interactive programs.
The quiz program shows practical use of logic.
It strengthened my problem solving skills.
Future improvements can include graphics and more features.

Bibliography:
• NCERT Computer Science Book
• Class Notes
• Python Documentation
• Teacher Guidance

You might also like