Listes en Python

Listes en Python

1st Grade

20 Qs

quiz-placeholder

Similar activities

Questionnaire OSOS

Questionnaire OSOS

University

24 Qs

l'informatique au domicile

l'informatique au domicile

9th Grade

15 Qs

Word - Traitement de texte 1

Word - Traitement de texte 1

5th Grade

20 Qs

QCM Excel & VBA

QCM Excel & VBA

University

20 Qs

tableur libre office calc

tableur libre office calc

2nd - 3rd Grade

22 Qs

Bureautique ECM

Bureautique ECM

1st Grade

21 Qs

1SIO_Donnée_Perso&Principe_Sécurité

1SIO_Donnée_Perso&Principe_Sécurité

University

18 Qs

Quiz sur le SEO

Quiz sur le SEO

University

20 Qs

Listes en Python

Listes en Python

Assessment

Quiz

Computers

1st Grade

Medium

Created by

Michel D

Used 2+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle instruction permet de créer une liste vide ?

L=[ ]

L=""

L={ }

L=0

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pour afficher successivement toutes les valeurs d'une liste L ...

for e in range(L):

print(L[e])

for e in L :

print(e)

for e in range(L):

print(e)

for i in L[ ]:

print(i)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Si L=[5,16,17,8,3]

print(L[3]) affiche ...

8

17

16

L[3]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Si L=[5,16,17,8,3]

print(L[-2]) affiche ...

8

17

-8

L[-2]

une erreur

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Si L=[5,16,17,8,3]

print(L[1:4]) affiche ...

[16,17,8]

[16,17,8,3]

[5,16,17,8]

5,16,17,8

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Si L=[5,16,17,8,3]

print(L[-3:]) affiche ...

[17,8,3]

[16,17,8,3]

[3,8,17]

une erreur

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pour tester si 10 appartient à une liste L, quel est le bon test ?

if 10 in L:

if not 10 in L:

for i in range(10):

if L[i]==10:

for e in L:

if L[e]==10:

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?