đ PROJET 03
Quiz Python
Bases de la prog
10 questions sur les fondamentaux de Python.
Chaque réponse est expliquée en détail.
Nombre de questions
đ Algorithme Ă implĂ©menter
ALGORITHME Quiz
VAR questions, choisies, score, index
DEBUT
choisies â MELANGER_ET_CHOISIR(questions, n)
score â 0 ; index â 0
TANT QUE index < TAILLE(choisies) FAIRE
q â choisies[index]
Afficher q.question + MELANGER(q.choix)
Lire reponse_utilisateur
SI reponse_utilisateur = q.reponse ALORS
score â score + 1
Afficher "â
Correct !"
SINON
Afficher "â Faux â bonne rĂ©ponse : " + q.reponse
FIN SI
Afficher q.explication
index â index + 1
FIN TANT QUE
Afficher "Score : " + score + " / " + TAILLE(choisies)
FIN
Question 1 / 7
â
0
â 0
Quelle est la bonne réponse ?
đ