Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Student Online Quiz & Examination Simulator

A simple command-line quiz/exam simulator written in Python that runs an online examination, marks answers automatically, and shows the final result with a grade and percentage.

Features

  • 10 MCQs on Python basics (collections, operators, strings, loops)
  • Automatic scoring and percentage calculation
  • Grade based on percentage (A+ to F)
  • Performance message based on score
  • Input validation — accepts only A, B, C or D
  • Shows list of topics covered in the exam

Requirements

  • Python 3.6 or later

No third-party libraries are needed.

How to Run

python quiz.py

How to Play

  1. Run the program.
  2. Enter your name when prompted.
  3. Answer each of the 10 questions by typing A, B, C or D.
  4. After the last question, the exam result (score, percentage, grade and performance) is shown.

Output Example

==============================================
              EXAM RESULT
==============================================
Student Name      : Imtty
Total Questions   : 10
Questions Attempted: 10
Correct Answers   : 7
Wrong Answers     : 3
Percentage        : 70.0 %
Grade             : B
==============================================
Performance       : Good!

Topics Covered in Exam:
{'Loops', 'Tuples', 'Dictionary', 'Input and Print', 'Strings', 'Operators', 'Lists', 'Sets'}

Concepts Covered

The project demonstrates the use of:

  • Dictionary — stores the questions and their answer keys
  • Tuple — holds each question's options and correct answer
  • List — stores the student's answers
  • Set — tracks attempted questions and unique topics
  • Loops — runs through all questions and validates input
  • Operators — arithmetic, comparison and membership operators
  • Strings & Input — input(), .upper(), print()

Project Structure

simple-online-quiz-using-python/
└── quiz.py        # main program

License

This project is for educational purposes.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages