Qo‘qon davlat pedagogika instituti Sirtqi (maxsus sirtqi) bo‘limi Matematika-informatika ta’limi yo‘nalishi 3-kurs talabalari uchun Tanlov fan(Python dasturlash tili) fanidan oraliq nazorat test savollari


Download 90.25 Kb.
bet2/2
Sana20.06.2023
Hajmi90.25 Kb.
#1627280
1   2
Bog'liq
Var1(Oraliq 6 sem)

for i in x:
print(i.upper())
A) ABCD B) abcd C) a BCD D) xato
23.Qanday usul bilan klassdan yangi obyekt yaratish mumkin?
A) start() B) create() C) init() D) new()
24.Qanday faylda Django proyekti uchun middleware lar joylashadi?
A) models.py B) urls.py C) views.py D) settings.py
25.Quyidagilardan qaysi biri Python dasturlashda asosiy ma’lumotlar turiga kirmaydi?
A) Lists B) Class C) Dictionary D) Tuples
26 Quyidagi Python kodining natijasi qanday bo'ladi?
1. class tester:
2. def __init__(self, id):
3. self.id = str(id)
4. id="224"
5.
6. >>>temp = tester(12)
7. >>>print(temp.id)
A) Yo‘q
B) 12
C) 224
D) Xato
27 Qanday kodlash orqali faylni ochish mumkin?
A) file = read ("filename.txt")
B) file = close ("filename.txt")
C) file = open ("filename.txt")
D) file = write ("filename.txt")
28 Qanday faylda Django proyektida migrations joylashadi?
A) urls.py B) migrations.py C) models.py D) views.py
29 Qanday usul bilan, fayllarni ko'chirish mumkin?
A) move() B) copy() C) paste() D) rename()
30 Inheritance nima?
A) Klass yaratish usuli
B) Bitta klass ichidagi boshqa klass
C) Klassni ichidan o'chirish usuli
D) Bitta klassdan boshqa klass




Talabaning F.I.Sh.:

Guruhi:



Test javoblari:

































Fan o‘qituvchisi: Sh.Sh. Axmadaliyev
M.M.Botirov
I.Maxkamov

Informatika kafedrasi mudiri: I.M.Rasulov




Вариант: №1.
Ответы:



#1

A

#2

A

#3

C

#4

A

#5

B

#6

A

#7

D

#8

A

#9

A

#10

A

#11

A

#12

B

#13

D

#14

C

#15

A

#16

C

#17

C

#18

C

#19

B

#20

A

#21

C

#22

A

#23

C

#24

D

#25

B

#26

B

#27

C

#28

B

#29

A

#30

B

Download 90.25 Kb.

Do'stlaringiz bilan baham:
1   2




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling