Search Header Logo

Python-Partie5

Authored by PASCAL RICHY

Computers

1st Grade

Used 16+ times

Python-Partie5
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quel opérateur est surchargé par la fonction or() ?

//

/

||

|

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pour définir un bloc de code en Python, on utilise ?

Accolades

Indentation

Parenthèse

Double quote

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Quel est le résultat du programme suivant :

i = 0

while i < 3:

print i

i++

print i+1

0 2 1 3 2 4

1 0 2 4 3 5

0 1 2 3 4 5

Erreur

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lequel des énoncés suivants est correct ?

Le nom de variable peut commencer par un trait de soulignement « _ ».

Le nom de variable peut commencer par un chiffre.

Les mots-clés ne peuvent pas être utilisés comme nom de variable.

Le nom de variable peut avoir des symboles tels que: @, #, $ etc.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Quel est le résultat du programme suivant:

print "Welcome to WayToLearnX"[::-1]

XnraeLoTyaW ot emocleW

Welcome to WayToLearn

X

Erreur

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dans le code suivant n = '2' , n est un ?

char

integer

string

tuple

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Étant donné une fonction qui ne renvoie aucune valeur, quelle valeur est affichée lorsqu’elle est exécutée sur le shell ?

bool

int

void

none

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

Already have an account?