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