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