Python dasturlash tili №-6 Aprel 12, 2021Aprel 13, 2021 da chop etilgan InfoMaster tomonidan Python dasturlash tili №-6 ga 1 fikr bildirilgan 2 12345678910111213141516171819202122232425 Tomonidan yaratilgan InfoMaster Python dasturlash tili №-6 Testni Salomov Sardor tayyorladi. 1 / 25 for sikli bu……………? A) hisoblagichli (countcontrol) B) hisoblagich C) countcontrolled sikl D) hisoblagichli (countcontrolled) sikl 2 / 25 Buyruqlarning ketma-ketligiga nima deyiladi? A) siklning ijrochisi B) siklning boshi C) siklning takrorlanishi D) siklning tanasi 3 / 25 from math import * a=12 b=2 if a>b: c=pow(a,b) elif b>a: c=b else: c=a print(c) quyidagi dastur natijasini toping A) 12 B) 2 C) 24 D) 144 4 / 25 Qaysi operator Python dasturlash tilida hisoblagich ko‘rinishida ishlaydi? A) in B) for C) range D) while 5 / 25 Python dasturlash tilida while sikl operatori qanday vazifani bajaradi? A) Asosiy shart bajarilganda kodni takrorlaydi B) Kodni takrorlamaydi C) Kodni muayyan marta takrorlaydi D) takrorlanish operatori 6 / 25 for sikl operatori bu………………..? A) takrorlanish operatori B) Asosiy shart bajarilganda kodni takrorlaydi C) Kodni muayyan marta takrorlaydi D) Kodni takrorlamaydi 7 / 25 from math import * a=24 b=25 if a>b: c=pow(a,1) elif b>a: c=sqrt(b,2) else: c=25 print(c) quyidagi dastur natijasini toping A) 625 B) 7 C) 576 D) 54 8 / 25 Har bir takrorlanish esa nima deb ataladi. A) iteratsiya B) else C) while D) for 9 / 25 Python dasturlash tilida funksiya bu………? A) to’g’ri javob yo’q B) qiymatin chiqarib uni ajratuvchi qisim dastur C) ma’lum bir vazifani bajaruvchi, qandaydir nomga ega, bir yoki bir necha qiymatni qabul qiluvchi qism dastur D) bir yoki bir necha qiymatni qabul javobni boshdagi qiymat bilan sollishtiradi 10 / 25 Python dasturlash tilida sikllar nima? A) Sikl operatorlari kodning buyruqlari uchun xizmat qiladi B) Sikl operatorlaring takrorlanadigan buyruqlari uchun xizmat qiladi C) Sikl operatorlari kodning takrorlanadigan buyruqlari uchun xizmat qiladi D) operatorlari kodning buyruqlari 11 / 25 def factor(n): res=1 for i in range(2,n*1): res*=i return res n=int(input('n sonini kiriting:')) print(factor(n)) n= 6 bo’lganda dsatur natijasini toping. A) 200 B) 490 C) 720 D) 460 12 / 25 Qaysi operator Python dasturlash tilida shartli sikl ko‘rinishida ishlaydi? A) range B) for C) in D) while 13 / 25 for i in range(10,0,1): print(i, end=';') quyidagi dastur natijasini toping A) 10;9;8;7;6;5;4;3;2 B) 10;9;8;7;6;5;4;3;2;1;1 C) 10;9;8;7;6;5;4;3;2;1;0 D) 10;9;8;7;6;5;4;3;2;1 14 / 25 for i in range(0,11,2): print(i, end=';') quyidagi dastur natijasini toping A) 2;4;6;8;10 B) 1;3;5;7;9;11 C) 0;11;2 D) 0;2;4;6;8;10 15 / 25 Python dasturlash tilida def factor(n): res=1 for i in range(2,n*1): res*=i return res n=int(input('n sonini kiriting:')) print(factor(n)) n=5 bo’lganda dastur natijasini toping. A) 346 B) 120 C) 90 D) 65 16 / 25 for i in range(10): print(i, end=';') Python dasturida quyidagi dastur natijasini toping. A) 0;1;2;3;4;5;6;7;8;10 B) 0;1;2;3;4;5;6;7;8;9 C) 0;1;2;3;4;6;7;8;9 D) 0 17 / 25 while sikli bu……………………? A) shart bo’lgan holda sikl tanasi bajariladigan sikl turi B) berilgan shart rost bo‘lgan holda sikl tanasi bajariladigan sikl turi C) shart yolg’on bo’lgan holda sikl tanasi bajariladigan sikl turi D) berilgan shart yolg’on yoki bo’lmagan holda sikl tanasi bajaradigan sikl turi 18 / 25 Python dasturlash tilida continue operatori bu ………………..? A) sikl ishini to‘xtatuvchi operator B) murojaat etilganidan keyin bekor qilinadi operator C) joriy siklni o‘tkazib yuborib, keyingisiga o‘tuvchi operator D) pythonda bunday operator mavjud emas 19 / 25 Dasturning mana shu amallar majmuini o‘z ichiga olgan qismi nima deb ataladi. A) qism dastur B) qo’shilgan dastur C) ajratilgan dastur D) dastur yig’indisi 20 / 25 def factor(n): res=1 f or i in range(2,n*1): res*=i return res n=int(input('n sonini kiriting:')) print(factor(n)) n= 4 bo’lganda dsatur natijasini toping. A) 26 B) 24 C) 28 D) 32 21 / 25 Python dasturlash tilida break operatori bu ………………..? A) murojaat etilganidan keyin bekor qilinadi operator B) joriy siklni o‘tkazib yuborib, keyingisiga o‘tuvchi operator C) pythonda bunday operator mavjud emas D) sikl ishini to‘xtatuvchi operator 22 / 25 Takrorlanuvchi algoritmlar bu…………………….? A) buruqlarni uz navbati va uz guruhi bo’yicha taqqoslash B) barcha buyruqlarni yig’ish va ko’paytirib yozish C) biror buyruqlar guruhining ma’lum marta takroran bajarilishi D) biror buyruqni qaytarib taqqoslash 23 / 25 def factor(n): res=1 for i in range(2,n*1): res*=i return res n=int(input('n sonini kiriting:')) print(factor(n)) n=3 bo’lganda dsatur natijasini toping. A) 8 B) 9 C) 6 D) 7 24 / 25 Pythonda def funksiyasini vazifasi nima? A) funksiya ajratadi B) to’g’ri javob yo’q C) funksiya nomi D) funksiyani e’lon qiluvchi kalit so‘z 25 / 25 def factor(n): res=1 for i in range(2,n*1): res*=i return res n=int(input('n sonini kiriting:')) print(factor(n)) n=0 bo’lganda dsatur natijasini toping. A) 2 B) 1 C) 3 D) 0 0% Baholash mezoni 86%-100% 5 baho 71%-85% 4 baho 56%-70% 3 baho 55% va kamiga 2 baho Fikr-mulohaza yuboring tomonidan Wordpress Quiz plugin Python Teglar:Python