Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

niveau2.3

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

bch n5th des donnees mn ligneEdit chnoua n3ml

a)

m=win.lineEdit.text()

b)

m=win.lineEdit.txt()

c)

m=win.lineEdit.setText()

d)

win.lineEdit.text()

2.

chnya bibliotheque li n5dm biha bch nsn3 application bl qt

a)

pyqt5

b)

qtpy5

c)

qtdesigner

3.

chnya bibliotheque li njjm nsn3 biha entier aleatoire

a)

alea

b)

randint

c)

random

4.

pour generer un entier aleatoire de 3 chiffres on utilise

a)

random.randint(1,1000)

b)

random.randint(0,1000)

c)

random.randint(100,999)

d)

randint.random(100,999)

5.

pour afficher un texte dans un lineEdit on utilise:

a)

win.setText

b)

win.lineEdit.setText("waa")

c)

win.setText.lineEdit("waa")

d)

win.lineEdit.setText()

6.

dans un course si le 3ieme dépasse le 2ieme il sera

a)

le 1er

b)

2ieme

c)

3ieme

7.

for i in range(5):

print(j)

a)

erreur

b)

0 1 2 3 4

c)

1 2 3 4 5

8.

une fichier .json est une fichier :

a)

code python

b)

code c++

c)

des donnees

d)

est une fichier text

9.

chnoua numro Fabinho

a)

3

b)

7

c)

2

d)

30

10.

quelle le role de loadUi

a)

importation du design

b)

presentation du design

c)

fermeture du design

11.

quelle bibliotheque je l'utilise pour obtenir le temps et la date

a)

QDateTime

b)

qDateTime

c)

Qdatetime

d)

DateTime

12.

quelle fonction j'utilise pour obtenir la date et le temps

a)

currentDateTime()

b)

current()

c)

DateTime()

13.

pour connecter une botton a une fonction on utilise:

a)

window.affiche.connect.clicked(afficher)

b)

window.affiche.clicked.connect(afficher)

c)

window.clicked.connect(afficher)

d)

window.affiche.connect.clicked()

14.

quelle le nom du button dans cette cas:

window.hahaha.connect.clicked(afficher)

a)

affiche

b)

hahaha

c)

hahahahaha

d)

afficher

15.

m=" "

print(f"ahla b yasine{m}w{m}taha")

a)

ahla b yasine{m}w{m}taha

b)

ahla b yasine w taha

c)

ahla b yasinewtaha

d)

ahla b yasinew taha