Search Header Logo

Python-Partie4

Authored by PASCAL RICHY

Computers

1st Grade

Used 42+ times

Python-Partie4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lequel des mots-clés suivants est un espace réservé pour le corps d’une fonction ?

break

continue

body

pass

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Soit a = [1,2,3,4,5], lequel des énoncés suivants est correct ?

print(a[:100]) #Affiche [1,2,3,4,5]

print(a[:]) #Affiche [1,2,3,4]

print(a[0:]) #Affiche [2,3,4,5]

print(a[-1:]) #Affiche [1,2]

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Quelle sera la sortie du code suivant ?

def getLen():

d = {}

d["python"] = 22

d["java"] = 27

d["php"] = 53

d["c"] = 87

return len(d)


print(getLen())

3

8

5

4

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Qui a crée le langage python ?

Denis Ritchie

Guido Van Rossum

James Gosling

Tom Cruise

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

L’instruction « return » en python peut-elle renvoyer plusieurs valeurs ?

Oui

Non

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

À quoi sert le code ci dessous :

if __name__ == "__main__":

myFunction()

Créer un nouveau module

Exécuter le module python en tant que programme principal

Créer de nouveaux objets

Définit un générateur

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

En python, nous utilisons « try » et « catch » pour la gestion des exceptions ?

Oui

Non

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?