Python dasturlash tili №-6 Aprel 12, 2021Aprel 13, 2021 da chop etilgan InfoMaster tomonidan Python dasturlash tili №-6 ga 1 fikr bildirilgan 0 12345678910111213141516171819202122232425 Tomonidan yaratilgan InfoMaster Python dasturlash tili №-6 Testni Salomov Sardor tayyorladi. 1 / 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 D) 0;1;2;3;4;6;7;8;9 2 / 25 Python dasturlash tilida continue operatori bu ………………..? A) pythonda bunday operator mavjud emas B) sikl ishini to‘xtatuvchi operator C) joriy siklni o‘tkazib yuborib, keyingisiga o‘tuvchi operator D) murojaat etilganidan keyin bekor qilinadi operator 3 / 25 Dasturning mana shu amallar majmuini o‘z ichiga olgan qismi nima deb ataladi. A) ajratilgan dastur B) dastur yig’indisi C) qo’shilgan dastur D) qism dastur 4 / 25 Qaysi operator Python dasturlash tilida hisoblagich ko‘rinishida ishlaydi? A) for B) while C) range D) in 5 / 25 Takrorlanuvchi algoritmlar bu…………………….? A) biror buyruqlar guruhining ma’lum marta takroran bajarilishi B) biror buyruqni qaytarib taqqoslash C) barcha buyruqlarni yig’ish va ko’paytirib yozish D) buruqlarni uz navbati va uz guruhi bo’yicha taqqoslash 6 / 25 Python dasturlash tilida break operatori bu ………………..? A) joriy siklni o‘tkazib yuborib, keyingisiga o‘tuvchi operator B) sikl ishini to‘xtatuvchi operator C) murojaat etilganidan keyin bekor qilinadi operator D) pythonda bunday operator mavjud emas 7 / 25 for sikli bu……………? A) hisoblagichli (countcontrol) B) hisoblagich C) hisoblagichli (countcontrolled) sikl D) countcontrolled sikl 8 / 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;0 C) 10;9;8;7;6;5;4;3;2;1;1 D) 10;9;8;7;6;5;4;3;2;1 9 / 25 Qaysi operator Python dasturlash tilida shartli sikl ko‘rinishida ishlaydi? A) range B) for C) in D) while 10 / 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) 24 B) 26 C) 28 D) 32 11 / 25 while sikli bu……………………? A) shart yolg’on bo’lgan holda sikl tanasi bajariladigan sikl turi B) berilgan shart rost bo‘lgan holda sikl tanasi bajariladigan sikl turi C) shart bo’lgan holda sikl tanasi bajariladigan sikl turi D) berilgan shart yolg’on yoki bo’lmagan holda sikl tanasi bajaradigan sikl turi 12 / 25 Python dasturlash tilida funksiya bu………? A) to’g’ri javob yo’q B) ma’lum bir vazifani bajaruvchi, qandaydir nomga ega, bir yoki bir necha qiymatni qabul qiluvchi qism dastur C) bir yoki bir necha qiymatni qabul javobni boshdagi qiymat bilan sollishtiradi D) qiymatin chiqarib uni ajratuvchi qisim dastur 13 / 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;2;4;6;8;10 D) 0;11;2 14 / 25 Python dasturlash tilida while sikl operatori qanday vazifani bajaradi? A) Kodni muayyan marta takrorlaydi B) Asosiy shart bajarilganda kodni takrorlaydi C) takrorlanish operatori D) Kodni takrorlamaydi 15 / 25 Buyruqlarning ketma-ketligiga nima deyiladi? A) siklning tanasi B) siklning takrorlanishi C) siklning ijrochisi D) siklning boshi 16 / 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) 9 B) 7 C) 8 D) 6 17 / 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) 120 B) 65 C) 90 D) 346 18 / 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) 2 B) 144 C) 24 D) 12 19 / 25 Har bir takrorlanish esa nima deb ataladi. A) while B) else C) iteratsiya D) for 20 / 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) 54 C) 576 D) 7 21 / 25 Pythonda def funksiyasini vazifasi nima? A) funksiya ajratadi B) funksiyani e’lon qiluvchi kalit so‘z C) funksiya nomi D) to’g’ri javob yo’q 22 / 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) 1 B) 3 C) 0 D) 2 23 / 25 for sikl operatori bu………………..? A) takrorlanish operatori B) Asosiy shart bajarilganda kodni takrorlaydi C) Kodni takrorlamaydi D) Kodni muayyan marta takrorlaydi 24 / 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) 720 B) 490 C) 460 D) 200 25 / 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 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