
python_datetype_methods(list)
Presentation
•
Information Technology (IT)
•
10th Grade
•
Practice Problem
•
Hard
Fayzullo Mamajonov
FREE Resource
18 Slides • 18 Questions
1
2
3
Multiple Choice
Python-da quyidagi ma'lumotlar tuzilmalaridan qaysi biri takrorlanmas elementlarni saqlash uchun ishlatiladi?
List
Dict
Set
Tuple
4
Multiple Choice
Pythonda ma`lumot to`plamlari to`g`ri berilgan qatorni tanlang.
List, Tuple,Set,Dict
List, Float, Bool, String
List, Set, Int, Float
Float, Tuple, Int,Float
5
6
7
Multiple Choice
Python dasturlash tilida list qanday ma'lumot to'plami hisoblanadi va uning asosiy xususiyatlari nimalardan iborat?
Indekslangan va o'zgaruvchan, har xil turdagi elementlarni saqlaydi
Faqat sonlarni saqlaydi, o'zgarmaydi
Matnli elementlarni saqlaydi, tartibsiz
Indekssiz, faqat bir turdagi elementlarni saqlaydi
8
9
Multiple Choice
List hosil qilishning qanday usullari mavjud?
list() funksiyasi yordamida, oddiy usulda, bo'sh list
Funktsiya yordamida, faqat matnli elementlar bilan
Faqat sonlar bilan, indekslashsiz
Faqat bo'sh list yaratish mumkin
10
11
Multiple Choice
Quyidagi listda
my_list = [1,2,3,"olma","mandarin",[0,1,2,3,4,5],1.2,2.555]
nechta turdagi elementlar mavjud?
4
3
2
1
12
13
Fill in the Blanks
my_num = [1,2,3,4,5,6,7,8,9,10] listda oxirgi elementga murojaat qilish uchun to'g'ri kodni to'ldiring: print(my_num[
14
Multiple Choice
List elementlariga indekslash orqali qanday murojaat qilish mumkin?
my_num[0], my_num[5], my_num[-1], my_num[-2]
my_num(0), my_num(5), my_num(-1), my_num(-2)
my_num{0}, my_num{5}, my_num{-1}, my_num{-2}
my_num.0, my_num.5, my_num.-1, my_num.-2
15
16
Multiple Choice
Listda indekslashni qator shaklida qo‘llash uchun sintaksis qanday yoziladi?
list[start:stop:step]
list(start, stop, step)
list{start:stop:step}
list.start:stop:step
17
18
Multiple Choice
Quyidagi kod natijasini toping:
fruits = ["apple", "banana", "cherry", "orange"]
print(fruits[1:3])
['banana', 'cherry']
['apple', 'banana']
['cherry', 'orange']
['apple', 'cherry']
19
20
Multiple Choice
List uzunligini aniqlash uchun qaysi funksiya ishlatiladi?
len()
count()
append()
insert()
21
22
Multiple Select
clear() va pop() metodlari orasidagi asosiy farq nimada?
clear() ro‘yxatni butunlay tozalaydi, pop() esa faqat bitta elementni o‘chiradi.
pop() ro‘yxatni butunlay tozalaydi, clear() esa faqat bitta elementni o‘chiradi.
Har ikkisi ro‘yxatni tozalaydi, faqat pop() natija qaytarmaydi.
clear() elementni indeks orqali o‘chiradi, pop() esa faqat satrlar bilan ishlaydi.
23
24
Fill in the Blanks
fruits = ['apple', 'banana', 'cherry']
fruits.clear()
print(fruits) natija:
25
26
Multiple Select
remove() metodi qanday ishlaydi va qaysi holatda xatolik beradi?
remove() metodi ro‘yxatdagi berilgan elementni birinchi uchragan joyidan o‘chiradi. Agar element mavjud bo‘lmasa, xatolik beradi.
remove() metodi elementni indeks raqami bo‘yicha o‘chiradi. Agar indeks noto‘g‘ri bo‘lsa, xatolik beradi.
remove() metodi ro‘yxatdagi so‘nggi elementni avtomatik o‘chiradi. Agar ro‘yxat bo‘sh bo‘lsa, xatolik beradi.
remove() metodi berilgan elementni o‘chiradi, lekin xatolik bermaydi, agar element mavjud bo‘lmasa ham.
27
28
Multiple Select
List ga yangi element qo‘shishning qaysi usullari mavjud? To‘g‘ri javoblarni tanlang.
append()
insert()
extend()
remove()
29
30
Multiple Select
Ro'yxatning copy() metodidan to`g`ri foydalanilgan qatorni toping.
print(fruits.copy())
print(copy(fruits))
print(fruits(copy))
print(fruits, copy())
31
Multiple Choice
Quyidagi kod natijasini toping:
fruits = ["apple", "banana", "cherry"] new_fruits = fruits.copy() print(new_fruits)
["apple", "banana", "cherry"]
["apple", "banana"]
["banana", "cherry"]
["apple", "cherry"]
32
33
Fill in the Blanks
numbers = [10, 20, 30, 20, 40] i = numbers.index(20, 2) print(i) # Natija:
Type answer...
34
35
36
Multiple Select
sort() va reverse() metodlari orasidagi farqlarni tanlang.
sort() yangi list qaytaradi, reverse() esa o'zgartiradi
sort() alfavit bo'yicha saralaydi, reverse() esa faqat teskari tartibda
sort() har xil turdagi elementlarda xato beradi, reverse() esa bermaydi
sort() natijasi None bo'ladi, reverse() natijasi yangi list bo'ladi
Show answer
Auto Play
Slide 1 / 36
SLIDE
Similar Resources on Wayground
32 questions
Introduction to Culinary Arts: Essential Knowledge for Food Serv
Presentation
•
10th Grade
32 questions
Climate
Presentation
•
10th Grade
26 questions
Mean, Median, Mode, & Range
Presentation
•
9th Grade
29 questions
Monday 4/29 Check In
Presentation
•
10th Grade
29 questions
03-AGRICULTURE IN SRI LANKA - VEGETABLES/FRU
Presentation
•
10th Grade
30 questions
Marketing (Product Life Cycle)
Presentation
•
9th - 10th Grade
28 questions
Data Science and Machine Learning
Presentation
•
10th Grade
27 questions
Viruses review
Presentation
•
9th Grade
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
26 questions
SLIME!!!!!
Quiz
•
KG - 12th Grade
20 questions
Cell organelles and functions
Quiz
•
10th Grade
10 questions
Exploring Chemical and Physical Changes
Interactive video
•
6th - 10th Grade
20 questions
Cell Transport
Quiz
•
9th - 12th Grade
10 questions
Exploring the Basics of Exponents
Interactive video
•
6th - 10th Grade
20 questions
Budgeting
Quiz
•
9th - 12th Grade
20 questions
Investing
Quiz
•
9th - 12th Grade
20 questions
Preterite vs. Imperfect
Quiz
•
10th Grade