Rocket League® - Masamune
Chronologie : Rocket League® - Masamune. Recherche parmi 300 000+ dissertationsPar Colin Leclerc • 23 Mars 2020 • Chronologie • 1 984 Mots (8 Pages) • 583 Vues
import random
print(" Taper la bonne réponse A,B,C ou D ( ne pas oublier les majuscules , c'est une série de 10 questions . Si vous répondez autre chose que A B C D le programme plantera il faudra le relancer . " )
Question = [["Quelle est la définition d'une information' ?","A :Élément de connaissance suceptible d'être représenté à l'aide de conventions pour être conservé","B :Élément de connaissance suceptible d'être représenté à l'aide de conventions pour être conservé et traité ou communiqué","C :Élément de connaissance que je ne peux représenter à l'aide de conventions","Élément de connaissance que je ne peux pas traiter ou communiquer ", "B :Élément de connaissance suceptible d'être représenté à l'aide de conventions pour être conservé et traité ou communiqué"],
#["Le MP3... ","A :Sert à coder des vidéos","B :Est un format musical compressé sans pertes","C :Est soumis à une licence","D :Est un format musical compressé avec pertes","D :Est un format musical compressé avec pertes"],
["Quelle invention, après la seconde guerre mondiale,a permis de réduire la taille des ordinateurs ?","A :Le transistor","B :La télévision","C :Le tube à vide","D :La bombe nucléaire","A :Le transistor"] ,
["Que signifie binaire ? ","A :Composé d'un élément","B :Composé de 3 éléments","C :Composé de 4 éléments","D :Composé de 2 éléments","D :Composé de 2 éléments"],
["Combien y a-t-il de bits dans un octet ?","A :32","B :16","C :8","D :4","C :8"],
["Selon l'algèbre de Boole, combien de valeurs peut prendre une donnée ?","A :4","B :3","C :2","D :1","C :2"],
["Quelles portes logiques sont câblées dans le circuit intégre suivant ? ","A :4 OU exclusif logique","B :4 NAND ","C :4 ET logique","D :2 ET logique ","C :4 ET logique"],
["Que signifie RVB pour une image BMP ?","A :C'est l'association responsable du format BMP","B :C'est le nom du hacker qui a inventé ce format d'image","C :Rouge Vert Bleu","D :Rouge Violet Bleu ","C :Rouge Vert Bleu"],
["Que donne le nombre hexadécimal 0x3F en base décimal ?","A :35","B :77","C :63"," ", "C :63"],
["Que donne le nombre décimal 36 en base hexadécimal ? ","A :0x54","B :0x24","C :0x44"," ","B :0x24"],
["Quelle est la proposition exacte ?","A :1 octet = 8 bytes = 8 bits","B :1 byte = 1 octet = 8 bits","C :1 bit = 1 byte = 8 octets"," ","B :1 byte = 1 octet = 8 bits"],
["Combien de valeurs peut-on coder avec un nombre binaire de 16 bits ?","A :256","B :1024","C :65536"," ","C :65536"],
["Combien de bits faut-il pour coder un nombre entier entre -100 et +100 ? ","A :7 bits minimum","B :16 bits minimum","C :8 bits minimum"," ","C :8 bits minimum"] ,
["En langage HTML, comment fait-on un passage à la ligne ? ","A :On appuie sur la touche : Entrée","B :On écrit :<back>","C :On écrit :<jump>","D : On écrit <br> ","D : On écrit <br> "],
["En HTML, la page commence par ...","A :Une balise de type body","B :Une balise de type doctype","C :Une balise de type h1","D :Une balise de type html ","B :Une balise de type doctype"],
["En HTML, il est possible de faire des questionnaires.","A :Vrai","B :Faux"," "," ","A :Vrai"],
["Que vaut la valeur finale de la variable b ?","A :9","B :12","C :8","D :10 ","C :8"],
["Que vaut la valeur finale de la variable b ?","A :2","B :4","C :6","D :8 ","B :4"],
["Que vaut la valeur finale de la variable b ?","A :3","B :5","C :6","D :10 ","B :5"],
["Que vaut la valeur finale de la variable b ?","A :0","B :1","C :2","D :3 ","C :2"]]
qtal = Question #On enleve des éléments de la liste pour ne pas répéter la question.
y=0
x = 0
while x < 9 :
for i in range(0,1):
lQst = random.choice(qtal) #On prend une question
qtal.remove(lQst) #Qu'on enleve de notre liste de questions
print(lQst[0]) #On l'affiche
print(lQst[1]) #Les 4 réponses
print(lQst[2])
print(lQst[3])
print(lQst[4])
lRep = ""
lRep != ["A","B","C","D","a","b","c","d","z","e","r","t","y","u","i","o","p","m","l","k","j","h","g","f","s","q","w","x","v","n","Z","E","R","T","Y","U","I","O","P","M","L","K","J","H","G","F","S","Q","W","X","V","N","?",".","/","§","%","¨","£","µ","<",">",",",";",":","!","ù","^","$","*","&","é","'","(","-","è","_","ç","à",")","=","+","1","2","3","4","5","6","7","8","9","²"]
...