
Python
Quiz by Hassen
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
- Q1
What is the correct syntax to output "Hello World" in Python?
echo "Hello World"
p("Hello World")
echo("Hello World'");
print("Hello World")
30s - Q2
Que fait le code suivant ?
il affiche 12 fois IoT and Data Science Club.
il affiche 11 fois IoT and Data Science Club.
il affiche 13 fois IoT and Data Science Club.
il affiche 14 fois IoT and Data Science Club.
30s - Q3
Quelle est la série de nombre affichée par ce programme ?
0, 1, 2, 3, 4 et 5
0, 1, 2 et 3
0, 1, 2, 3 et 4
1, 2, 3 et 4
30s - Q4
Résultat ?
4
5.25
5.2
5
30s - Q5
Résultat
13
19
25
7
30s - Q6
Pour convertir une variable en nombre à virgule, on utilise la commande:
float(var)
int(var)
entier(var)
str(var)
30s - Q7
Résultat ?
["print","int","else","return","break"]
['print']
["print","int","else","return","break","float"]
['int', 'else', 'return', 'break']
30s - Q8
Que produit le code suivant ?
first
second
first second
Erreur
firstsecond
30s - Q9
Que fait la ligne de code suivante ?
first, second
firstsecond
Une erreur, car la fonction print n'accepte qu'un unique message à afficher.
first second
30s - Q10
ch9awlik fil quiz
heyil
5ayib
30s