Python

Python

1st - 2nd Grade

12 Qs

quiz-placeholder

Similar activities

Đoán hình

Đoán hình

2nd Grade

11 Qs

Grade 3 IPO devices and Memory

Grade 3 IPO devices and Memory

2nd - 4th Grade

10 Qs

Pernyataan Function dan Procedure

Pernyataan Function dan Procedure

1st - 3rd Grade

10 Qs

Python_Basic

Python_Basic

1st Grade

10 Qs

Image File Formats

Image File Formats

KG - 9th Grade

10 Qs

COMPUTERS

COMPUTERS

2nd Grade

10 Qs

Six Pillars of Character

Six Pillars of Character

KG - University

7 Qs

Protection & Sécurité

Protection & Sécurité

2nd Grade

13 Qs

Python

Python

Assessment

Quiz

Computers

1st - 2nd Grade

Practice Problem

Medium

Created by

MOHAMED HANNAN

Used 72+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?