Uy » Python » Python dasturlash tili TEST-3 Python Python dasturlash tili TEST-3 InfoMaster Mart 22, 2021 446 Ko'rishlar 1 izoh SaqlashSaqlanganOlib tashlandi 5 4 12345678910111213141516171819202122232425 Tomonidan yaratilgan InfoMaster Python dasturlash tili №-3 1 / 25 Python dasturlash tilida print() operatorining end=’\n’ argumenti nima maqsadda ishlatiladi? A) Natijni bitta keying satrdan chiqaradi B) Natijani o’rtadan chiqaradi C) Natijni bitta olding satrdan chiqaradi D) Natijada xatolik chiqaradi 2 / 25 Pythonda dastur natijasini toping. a = 'Good morning!' b = 'Welcome.' c=a * b print(c) A) Good morning! Welcome B) Welcome. Good morning! C) Good Welcome. morning! D) morning! Good Welcome 3 / 25 input() operatorining qanday usuli mavjud? A) end usuli B) sep usuli C) to’g’ri javob yo’q D) split() usuli 4 / 25 Pythonda dastur natijasini toping. a = "O'ZBEKISTON" a[6:] A) ZBEKI B) KISTON C) ISTON D) O'ZBEKISTO 5 / 25 Pythonda “ \’ ” maxsus belgisini vazifasini toping. A) tabulyatsiya belgisi B) ikkitalik qo‘shtirnoq belgisi C) yangi satrga o’tish belgisi D) bittalik qo’shtirnoq belgisi 6 / 25 input() operatori qanday vazifa bajaradi? A) kritish va chiqarishni B) bunday operator mavjud emas C) chiqarishni D) kritishni 7 / 25 Python dasturlash tilida “ \t ” maxsus belgisini vazifasini toping. A) bittalik qo‘shtirnoq belgisi B) ikkitalik qo‘shtirnoq belgisi C) tabulyatsiya belgisi D) yangi satrga o‘tish belgisi 8 / 25 Pythonda quydagi dastur natijasini toping. a=input().split(';') print(a) 5;8;7;1;2 A) ['5', '8', '7', '1', '2'] B) [5, 8, 7, 1, 2] C) ['5' '8' '7' '1 '2'] D) ['5', '8', '7', '1', '3'] 9 / 25 Pythonda “ \’’ ”maxsus belgisini vazifasini toping. A) ikkitalik qo‘shtirnoq belgisi B) yangi satrga o’tish belgisi C) bittalik qo‘shtirnoq belgisi D) tabulyatsiya belgisi 10 / 25 Pythonda quydagi dastur natijasini toping. a=input().split() print(a) book pen pencil notebook A) ['book', 'penn', 'pencil', 'notebook'] B) ['book', 'pen', 'pencl', 'notebook'] C) ['book', 'pen', 'pencil', 'notebook'] D) ['book', 'pen', 'pencll', 'notebook'] 11 / 25 Pythonda dastur natijasini toping. a = "O'ZBEKISTON" a[3:10:3] A) O'ZBEKISTO B) ZBEKI C) BIO D) KISTON 12 / 25 Python dasturlash tilida x=7 y=8 x=*y print(x) dastur natijasini aniqlang. A) 7 B) 1 C) 15 D) 16 13 / 25 print() operatorining sep argumenti nima maqsadda ishlatiladi? A) ma’lumotlarni qo’shish uchun ishlatiladi B) natija ma’lumotlarini ajratish uchun ishlatiladi C) ma’lumotlarni nusxalash uchun ishlatiladi D) ma’lumotlarini tahrillash uchun ishlatiladi 14 / 25 Pythonda “ \n ” maxsus belgisini vazifasini toping. A) ikkitalik qo‘shtirnoq belgisi B) yangi satrga o’tish belgisi C) bittalik qo‘shtirnoq belgisi D) tabulyatsiya belgisi 15 / 25 Pythonda ‘split()’ operatorni vazifasini toping. A) satrni ajratish uchun belgilar bilan ajratish uchun B) belgilar kiritish uchun C) pythonda bunday operator yuq D) son kiritish va chiqarish uchun 16 / 25 Python dasturida len() funksiyasining vazifasi quyidagi qaysi javobda to'g'ri ko'rsatilgan? A) satrdan son qidiradi B) satr uzunligini C) sonni qo’shadi D) satrni qidiradi 17 / 25 Dastur natijasini aniqlang. x=1234 a= x// 1000 b= x % 10 c= a * b print(c) A) 3 B) 4 C) 12 D) 8 18 / 25 input() operatorining split() usuli nima maqsadda ishlatiladi? A) satrli ma’lumotlarni ajratuvchi belgi yordamida qismlarga ajratadi B) satrdagi barcha ma’lumotlarni oladi va notanish belgilarni oladi C) satrli ma’lumotlarni qo’shadi belgilarni ajratadi D) to’g’ri javob yo’q 19 / 25 Pythonda dastur natijasini toping. a = "O'ZBEKISTON" a[4] A) I B) E C) B D) K 20 / 25 Satrlar bu………? A) qo‘shtirnoq ichiga olingan ketma-ketligi B) unicode kodidagi belgilar ketmaketligi C) qo‘shtirnoq ichiga olingan Unicode kodidagi belgilar ketma-ketligi D) belgilar ketmaketligi 21 / 25 Pythonda dastur natijasini toping. a='Bahor!' len(a) A) 5 B) 7 C) 1 D) 6 22 / 25 Python dasturlash tilida b=2154 a=b%100 print(a) Dastur natijasini aniqlang. A) 54 B) 21 C) 15 D) 4 23 / 25 print() operatori qanday vazifa bajaradi? A) bunday operator mavjud emas B) kritishni C) kritish va chiqarishni D) chiqarishni 24 / 25 Pythonda dastur natijasini toping. a = "O'ZBEKISTON" a[3:6] A) BE B) STON C) TON D) BEK 25 / 25 Pythonda dastur natijasini toping. a = "O'ZBEKISTON" a[:6] A) ZBEKI B) O'ZBEK C) O'ZBEKISTO D) KISTON 0% Testni qayta ishga tushiring Baholash mezoni 86%-100% 5 baho 71%-85% 4 baho 56%-70% 3 baho 55% va kamiga 2 baho Fikr-mulohaza yuboring Author: InfoMaster Foydali bo'lsa mamnunmiz