Python dasturlash tili №-5 Aprel 9, 2021Aprel 9, 2021 da chop etilgan InfoMaster tomonidan Python dasturlash tili №-5 ga 1 fikr bildirilgan 6 12345678910111213141516171819202122232425 Tomonidan yaratilgan InfoMaster Python dasturlash tili №-5 Testni Salomov Sardor tayyorladi. 1 / 25 a = 66 b = 22 c = 7 not((a > b) or (b < c)) quydagi dastur natijasini toping. A) not B) True C) or D) False 2 / 25 buyruqlar_bloki if operatoridan keyingi satrda xat boshidan nechta probel qoldirib, keyin yoziladi. A) 7 B) 5 C) 6 D) 4 3 / 25 Python dasturlash tilida “ if ” operatori bu……………? A) faqat berilgan shart rost bo‘lgandagina muayyan buyruqlar to‘plamini bajaradi B) buyruqlar alohida qatorda yoki bitta qatorda to‘plamini bajaradi C) to’g’ri javob yo’q D) buyruqlar to‘plamini bajaradigan shartli operator 4 / 25 a=12 b=2 if a>b: c=a^b elif b>a: c=b*a else: c=12 print(c) quyidagi dastur natijasini toping A) 12 B) 14 C) 24 D) 144 5 / 25 Masalada faqatgina bitta shart tekshirilsa, qaysi operatordan foydalaniladi? A) while B) elif C) else D) if 6 / 25 a = 20 c = False not a > 17 or not c quydagi dastur natijasini toping. A) 20 B) True C) False D) not 7 / 25 a=10 b=a*4 a*3>=b–5 quydagi dastur natijasini toping. A) True B) False C) 14 D) 10 8 / 25 x = 5 if x > 6: y = x-3 else: y=x print(y) quydagi dastur natijasini toping. A) 4 B) 7 C) 6 D) 5 9 / 25 Shartni tekshirish uchun qaysi operatordan foydalaniladi? A) wile operatordan B) else operatordan C) elif operatordan D) if operatordan 10 / 25 Tarmoqlanuvchi algoritm deb nimaga aytiladi? A) buyruqlarni ketmaketligi bajariladi B) shartga ko‘ra buyruqlar ketmaketligining bajarilmasligini belgilovchi algoritm C) buyruqlar ketmaketligining bajarilmasligini algoritm D) shartga ko‘ra buyruqlar ketmaketligining bajarilishi yoki bajarilmasligini belgilovchi algoritm 11 / 25 x = 15 if x > 6: y = x-3 else: y=x print(y) quydagi dastur natijasini toping. A) 12 B) 4 C) 5 D) 6 12 / 25 a=12 b=2 if a>b: c=a\b elif b>a: c=ba else: c=1 print(c) quyidagi dastur natijasini toping A) 6 B) 24 C) 10 D) 5 13 / 25 a=4 b=4 if a>b: c=a^b elif b>a: c=b\a else: c=b^3 print(c) quyidagi dastur natijasini toping A) 8 B) 64 C) 12 D) 9 14 / 25 a=2 b=13 if a>b: c=a*b elif b>a: c=b^2 else: c=4 print(c) quyidagi dastur natijasini toping A) 169 B) 16 C) 2 D) 4 15 / 25 a=6 b=6,5 if a>b: c=a\b elif b>a: c=b*a else: c=200 print(c) quyidagi dastur natijasini toping A) 39 B) 12 C) 120 D) 200 16 / 25 x = 11111111 if x > 6: y = x-3 else: y=x print(y) quydagi dastur natijasini toping. A) 11111108 B) 4 C) 11111111 D) 11111114 17 / 25 Python dasturlash tilida x = 10 if x > 6: y = x-3 else: y=x print(y) quydagi dastur natijasini toping. A) 6 B) 4 C) 5 D) 7 18 / 25 CASE operatori bu…………? A) else operatorining takomillashgan ko‘rinishi B) bunday operator mavjud emas C) elif operatorining takomillashgan ko‘rinishi D) if operatorining takomillashgan ko‘rinishi 19 / 25 a=3 b=15 if a>b: c=a elif b>a: c=b*a else: c=0 print(c) quyidagi dastur natijasini toping A) 4 B) 18 C) 12 D) 45 20 / 25 Ko‘p shartli masalalarni yechish uchun qaysi operatoridan foydalaniladi. A) while B) if C) else D) elif 21 / 25 from math import * a=144 b=12 if a>b: c=sqrt(a) elif b>a: c=b else: c=a print(c) quyidagi dastur natijasini toping A) 12 B) 4 C) 16 D) 144 22 / 25 a=12 b=12 if a>b: c=ab elif b>a: c=b*a else: c=20 print(c) quyidagi dastur natijasini toping A) 10 B) 20 C) 0 D) 24 23 / 25 Python dasturlash tilida a = True b = True c = False not(a and c) and (a or b) or c dastur natijasini toping. A) not B) and C) False D) True 24 / 25 a = 20 c = False a > 17 or c quydagi dastur natijasini toping. A) False B) or C) True D) 20 25 / 25 a=45 b=15 if a>b: c=a\b elif b>a: c=b^a else: c=b*2 print(c) quyidagi dastur natijasini toping A) 15 B) 45 C) 3575 D) 3 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