Test d'échantillon PCAP

Test d'échantillon PCAP

University

6 Qs

quiz-placeholder

Similar activities

Digital Media Literacy: Week 2

Digital Media Literacy: Week 2

University

11 Qs

Text Features: This or That?

Text Features: This or That?

KG - University

9 Qs

Real-Life Algebra: Write Expressions & Solve Equations

Real-Life Algebra: Write Expressions & Solve Equations

6th Grade - University

10 Qs

Real-Life Inequalities: Graphing and Interpretation Quiz

Real-Life Inequalities: Graphing and Interpretation Quiz

7th Grade - University

10 Qs

Setting Up Equations to Solve for Unknowns in Math

Setting Up Equations to Solve for Unknowns in Math

4th Grade - University

10 Qs

Real-Life Equations: Solving for Unknowns in Context

Real-Life Equations: Solving for Unknowns in Context

6th Grade - University

10 Qs

Real-Life Problems: One-Step Equations and Solutions

Real-Life Problems: One-Step Equations and Solutions

6th Grade - University

10 Qs

Test d'échantillon PCAP

Test d'échantillon PCAP

Assessment

Quiz

English

University

Hard

Created by

Narjes KHALIFA

Used 4+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

L'expression suivante 2 ** 3 ** 2 ** 1 est égale :

64

16.0

invalide

512

16

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Quel est le résultat attendu du code suivant ? i = 250 while len(str(i)) > 72: i *= 2 else: i //= 2 print(i)

125

250

72

500

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Quel code inséreriez-vous à la ligne indiquée ci-dessous :

n = 0

while n < 4:

n += 1

# insérez votre code ici

pour imprimer la chaîne suivante sur le moniteur après l'exécution de la boucle : 1 2 3 4

print(n)

print(n, sep=" ")

print(n, end=" ")

print(n, " ")

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Quel est le type de valeur retourné après l'exécution du code suivant ?

x = 0

y = 2

z = len("Python")

x = y > z

print(x)

int

float

str

bool

NoneType

5.

MULTIPLE SELECT QUESTION

5 mins • 1 pt

Quelle ligne peut être utilisée à la place du commentaire pour faire en sorte que le snippet produise la sortie attendue suivante ? (Sélectionnez tout ce qui s'applique) Code : z, y, x = 2, 1, 0 x, z = z, y y = y - z # mettez la ligne ici print(x, y, z) Sortie attendue : 0, 1, 2

x, y, z = y, z, x

z, y, x = x, z, y

y, z, x = x, y, z

Le code est erroné

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Quel est le résultat attendu du snippet suivant ? a = 0 b = a ** 0 if b < a + 1: c = 1 elif b == 1: c = 2 else: c = 3 print(a + b + c)

1

2

3

Le code est erroné