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