Listes en Python

Listes en Python

1st Grade

20 Qs

quiz-placeholder

Similar activities

 Compétition_Formakt_python_and_pygame (N1)

Compétition_Formakt_python_and_pygame (N1)

8th Grade

21 Qs

Manipuler des bases de données

Manipuler des bases de données

University

20 Qs

Ugrađene funkcije i metode - liste

Ugrađene funkcije i metode - liste

7th Grade

15 Qs

CTN-Windows

CTN-Windows

University

20 Qs

Strings, Lists & Tuples

Strings, Lists & Tuples

9th - 12th Grade

20 Qs

Competition_Formakt_Final

Competition_Formakt_Final

1st Grade

20 Qs

Python (1)

Python (1)

1st Grade

17 Qs

Quiz Word - Niveau intermédiaire

Quiz Word - Niveau intermédiaire

12th Grade

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?