LPO Ella FITZGERALD VIENNE- ST ROMAIN EN GAL 04/04/2020 09:47 - Page 1
Évaluation SNT Python 1
Question 1 /1
Comment se traduit l'algorithme
en Python
joueur==3
joueur=3
Question 2 /1
Comment se traduit l'algorithme
Si a=7 alors augmenter a de 1
en Python
if a==7 :
a+1
if a=7 :
a+1
if a=7 :
a=a+1
if a==7 :
a=a+1
Question 3 /1
Dans le script Python suivant :
a=5
b='6.4'
La variable a est de type booléen | chaîne de caractère | flottant | entier .
La variable b est de type booléen | chaîne de caractère | flottant | entier .
Question 4 /1
Une photo de mon téléphone a une taille moyenne de 6 Mo. Je souhaite sauvegarder mes 1200 photos sur un cloud.
Quelle capacité me conseillez-vous de choisir sachant que je ne sauvegarderai rien d'autre à l'avenir.
50 Go
5 Go
2 Go
15 Go
Question 5 /1
Dans le script Python suivant :
a=input("Saisir votre réponse")
b=int(input("Saisir votre réponse"))
La variable a est de type booléen | chaîne de caractère | flottant | entier .
La variable b est de type booléen | chaîne de caractère | flottant | entier .
© Index Education 2020
LPO Ella FITZGERALD VIENNE- ST ROMAIN EN GAL 04/04/2020 09:47 - Page 2
Évaluation SNT Python 1
Question 6 /1
Quel est le résultat du script Python suivant :
a=3
b=7
if a>=b:
print("Gagné")
else:
print("Perdu")
Il affiche parfois Perdu parfois Gagné | toujours Gagné | toujours Perdu .
Question 7 /1
Quel est le résultat du script Python suivant :
b='3'
a=int(input("Devine le nombre que j'ai choisi !")
if a==b:
print("Gagné")
else:
print("Perdu")
Il affiche parfois Perdu parfois Gagné | toujours Gagné | toujours Perdu .
Question 8 /1
Dans le script Python suivant, quelles lignes produiront une erreur ?
1. a=input("Quel est ton prénom ?")
2. b=int(input("Quel âge as-tu ?"))
3. if b>=18
4. print("Bonjour", a," tu es majeur.")
5. else:
6. print("Bonjour", a, "tu es mineur.")
4
6
1
2
3
5
Question 9 /1
Dans le script Python suivant :
a=input("Saisir votre réponse")
b=int(input("Saisir votre réponse"))
c=float(input("Saisir votre réponse"))
d=str(b)
La variable c est de type booléen | chaîne de caractère | flottant | entier .
La variable d est de type booléen | chaîne de caractère | flottant | entier .
Question 10 /1
Combien de photos de 300 Ko peut-on stocker sur un cloud proposant une capacité de 15 Go ?
© Index Education 2020
LPO Ella FITZGERALD VIENNE- ST ROMAIN EN GAL 04/04/2020 09:47 - Page 3
Évaluation SNT Python 1
Question 11 /1
On considère le programme Python suivant.
a=9
b=a+1
a=a-4
b=a*b
print(b)
Quelle valeur va s'afficher à l'écran ?
Question 12 /1
Dans le script Python suivant :
a=5
b='6.4'
c=1.0
d=True
La variable c est de type booléen | chaîne de caractère | flottant | entier .
La variable d est de type booléen | chaîne de caractère | flottant | entier .
Question 13 /1
Parmi tous les noms proposés ci-dessous, lesquels ne peuvent pas être utilisés pour nommer une variable ?
joueur 3
joueur1
a
dgetk
2emejoueur
Question 14 /1
Qu'affichera le script suivant si on répond "une chaise" à la première question et "135" à la deuxième ?
a=input("Qu'as-tu acheté hier ?")
b=int(input("Combien as-tu dépensé ?"))
print("Tu as acheté ",b,a, " !!!")
Tu as acheté une chaise 135€ !!!
Tu as acheté 135€ une chaise !!!
Tu as acheté 135 une chaise !!!
Tu as acheté une chaise 135 !!!
Question 15 /1
En Python, pour afficher le contenu de la variable Bonjour à l'écran il faut saisir le code :
input("Bonjour")
print"Bonjour"
print(Bonjour)
print("Bonjour")
input(Bonjour)
input"Bonjour"
© Index Education 2020
LPO Ella FITZGERALD VIENNE- ST ROMAIN EN GAL 04/04/2020 09:47 - Page 4
Évaluation SNT Python 1
Question 16 /1
En Python, pour afficher le mot Bonjour à l'écran il faut saisir le code :
print"Bonjour"
input(Bonjour)
print(Bonjour)
input"Bonjour"
print("Bonjour")
input("Bonjour")
Question 17 /1
En Python, pour affecter un contenu de type string à la variable Bonjour il faut saisir le code :
Bonjour=input("Saisir un texte")
Bonjour=float(input("Saisir un texte"))
Bonjour=print("Saisir un texte")
Bonjour=int(input("Saisir un texte"))
Question 18 /2
L'entrée au musée coûte 15 euros pour les adultes et 5 euros pour les enfants.
Compléter le programme suivant afin qu'il demande votre age et affiche le prix à payer.
prix | age = int(input("Quel est votre age : "))
if prix | age >= 15 | 5 | 18 :
age | prix = 18 | 5 | 15
else :
age | prix = 18 | 15 | 5
print("le prix à payer est :", age | prix )
Question 19 /1
Voici un script de sécurité écrit en Python :
a=input("Saisir votre nom.")
b=int(input("Saisir votre code secret.")
if a=="Gert" or b==3785:
print("Déverouillé")
else:
print("Erreur")
Suivant les réponses proposée, choisissez ce qu'affichera le script :
Gert 3785 le script affichera Erreur | Déverouillé .
Gret 4785 le script affichera Erreur | Déverouillé .
Gret 3785 le script affichera Erreur | Déverouillé .
Gert 4785 le script affichera Erreur | Déverouillé .
© Index Education 2020