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