pour creer la class stagiaire on ecrit
Python

Quiz
•
Computers
•
1st - 2nd Grade
•
Medium

MOHAMED HANNAN
Used 72+ times
FREE Resource
12 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
Kotlin

Quiz
•
1st - 12th Grade
10 questions
Python

Quiz
•
1st - 10th Grade
10 questions
Python Math

Quiz
•
1st - 12th Grade
13 questions
TP1_Angular

Quiz
•
2nd - 3rd Grade
10 questions
9-сынып. Python массив.

Quiz
•
1st - 9th Grade
16 questions
Python

Quiz
•
1st Grade
14 questions
Python Functions and Flowcharts

Quiz
•
1st - 3rd Grade
10 questions
Python

Quiz
•
1st - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
American Flag

Quiz
•
1st - 2nd Grade
10 questions
Identifying equations

Quiz
•
KG - University
10 questions
2nd Grade math review

Quiz
•
2nd Grade
26 questions
Place Value Review

Quiz
•
2nd Grade
25 questions
2.4A Add Subtract within 20 quickly: set 3

Quiz
•
1st - 3rd Grade
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
15 questions
Music 2016

Quiz
•
KG - 12th Grade
44 questions
logos

Quiz
•
KG - University