Search Header Logo

Python

Authored by MOHAMED HANNAN

Computers

1st - 2nd Grade

Used 72+ times

Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

pour creer la class stagiaire on ecrit

class Stagiaire:

class Stagiaire():

class stagiaire:

def Stagiaire:

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

pour créer le constructeur on écrit

def init(self, nom, prenom, age, moyenne):

def __init__(self, nom, prenom, age, moyenne):

def __init__(self):

def __init__(self, nom, prenom, age, moyenne): self.nom = nom self.prenom = prenom self.age = age self.moyenne = moyenne

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

la methode qui affiche les infos d'un stagiaire est :

print(f"Nom :", self.nom) print(f"Prénom :", self.prenom)

def __init__(self): print(f"Nom :", self.nom) print(f"Prénom :", self.prenom) print(f"Age :", self.age) print(f"Moyenne :", self.moyenne)

def afficher(self): print(f"Nom :", self.nom) print(f"Prénom :", self.prenom) print(f"Age :", self.age) print(f"Moyenne :", self.moyenne)

print(f"Nom :", self.nom) print(f"Prénom :", self.prenom) print(f"Age :", self.age) print(f"Moyenne :", self.moyenne)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

pour afficher la methode qui affiche les admis

print("liste des admis")

if self.moyenne > 10: self.afficher()

print("admis")

def method(self): if self.moyenne > 10: self.afficher()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

pour comparer si deux variables a et b sont égaux

if a==b:

if a=b:

if a > b:

if a < b:

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

for i in range(2,10):

cette boucle se répète ?

10 fois

8 fois

6 fois

4 fois

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

a = 5

b = 7

s = a*b

la valeur de s est:

7

35

12

2

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?