Skip to content

wanesaf/Qcm-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qcm-py

MCQ app using python.

Features

  • Allows users to answer MCQs.
  • Evaluates their answers and displays a score.
  • Provides a user-friendly console interface.
  • Manages user data, tracking their history of MCQs and previous scores.

How to use

  • You must have python installed
  • Clone the repo using
    https://github.com/wanesaf/Qcm-py.git
  • run the main.py using
    python main.py
    

Example 1

1

  • If the user exists in the json file , we display " Utilisateur existe déjà! "
  • We ask to choose between history and a new MCQ , in the example we choose "Historique"
  • We display the results of the previous MCQs and we include the date , the score and the category ( from the json file )
  • After that , we ask the user for a new MCQ ; in the example we choose 'n' to quit .

Example 2

2

  • In this example , the id doesnt exist in the json file so the user is added automatically .
  • if we choose history , we display " L'utilisateur avec ID 3 n'a pas encore fait de QCM! "

2

3

  • In this case we choose a new MCQ , the questions and categories are also stored in the json file.
  • The user selects a category , in the example we choose "Devloppement Web" .
  • Now the user answers the questions by typing the letter , if the response isnt correct we display the correct answer
  • When the user completes , We display the score and the time .
  • The score and the date and the category will be stored in the user json file to use them after if we wants to display his history .

About

Une petite application de qcm en python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages