Search Header Logo

Evaluation Python 2

Authored by Housem Boulmezaoud

Computers

12th Grade

Used 105+ times

Evaluation Python 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pour déclarer une variable α de type entier, on utiliser l'instruction

a == 4

a = 4

a = 4.0

a = '4'

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

L'instruction range(5) renvoie la liste

[0,1,2,3,4,5]

[0,1,2,3,4]

[1,2,3,4,5]

[1,2,3,4]

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

La suite d'instruction

mot = 'Baccalaureat'

for i in mot:

.....print(i)

Affiche une liste d'éléments de type int

Affiche une liste de mot

Affiche une liste de lettre

N'affiche rien

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Le mot réservé while, permet de définir

une variable

une boucle

un test

une fonction

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

La suite d'instruction:

n = 3

while n>4:

.....n = n +2

print(n)

affiche 0

ne affiche rien

affiche 3

affiche 5

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

n = -1

if n > 0:

.....print(False)

else:

.....print(True)

False

True

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cette suite d'instructions est elle correctement écrite:

n = 3

if n > 2:

print('oui')

else :

......print('non')

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

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?