Python au lycée (1) : Les variables
Entraînement
Vrai/Faux : Opérateurs numériques Python (niveau 2)
5 minutes
Votre progression
Créez un compte gratuit pour suivre votre avancement et reprendre où vous avez laissé.
Créer un compteObjectif travaillé
Pour chaque affirmation suivante sur les opérateurs numériques en Python, indiquez si elle est Vraie ou Fausse.
Déroulement pas à pas (Correction et Indices)
Question 1 : Affirmation : L'expression 8 // 5 vaut $1$.
- (Correct) Vrai
- (Incorrect) Faux
Question 2 : Affirmation : L'expression 8 / 5 vaut $1$.
- (Incorrect) Vrai
- (Correct) Faux
Question 3 : Affirmation : L'expression 2 ** 10 vaut $1024$.
- (Correct) Vrai
- (Incorrect) Faux
Question 4 : Affirmation : L'expression 17 % 5 vaut $3$.
- (Incorrect) Vrai
- (Correct) Faux
Question 5 : Affirmation : L'expression 3 + 2 * 4 vaut $20$.
- (Incorrect) Vrai
- (Correct) Faux
Question 6 : On exécute le programme Python ci-dessous :
x = 6 / 2
print(type(x))
Affirmation : Ce programme affiche class 'float'.
x = 6 / 2
print(type(x))- (Correct) Vrai
- (Incorrect) Faux