Search Header Logo

Python Quiz 2

Authored by AI Deveops

Information Technology (IT)

University

Used 1+ times

Python Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comment créer une liste vide en Python ?

liste = []

liste = list()

Les deux réponses A et B sont correctes

liste = new List()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle méthode utilise-t-on pour ajouter un élément à la fin d'une liste ?

list.add()

list.push()

list.append()

list.insert()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comment accède-t-on au premier élément d'une liste ?

liste(0)

liste[1]

liste[0]

liste.first()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quelle est la bonne syntaxe pour une boucle FOR basique en Python ?

for (i=0; i<10; i++)

for i in range(10):

for i to 10:

for (i in 10):

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Comment définit-on une fonction en Python ?

function maFonction():

def maFonction():

void maFonction():

func maFonction():

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?