
CỦNG CỐ BÀI 22: KIỂU DỮ LIỆU DANH SÁCH

Quiz
•
Other
•
10th Grade
•
Hard
Thanh Đào
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, danh sách (list) được khai báo bằng ký hiệu nào?
{}
[]
()
<>
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức nào sau đây dùng để thêm phần tử vào list trong python?
append()
abs()
link()
del()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh xoá một phần tử của một danh sách A có chỉ số i là:
list.del(i)
A.del(i)
A.del[i]
del A[i]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho danh sách: fruits = ["apple", "banana", "cherry"]. Lệnh nào sau đây in ra “banana”?
print(fruits[2])
print(fruits[-3])
print(fruits[1])
print(fruits[3])
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dùng lệnh nào để có thể duyệt lần lượt các phần tử của danh sách?
Dùng lệnh for.
Lệnh append()
Lệnh for kết hợp với vùng giá trị của lệnh range().
Lệnh len()
6.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Điền vào chỗ trống để hoàn thành đoạn chương trình sau:
fruits = ["apple", "banana", "cherry"]
fruits.__________("orange")
print(fruits)
(Điền phương thức thích hợp để thêm orange vào danh sách)
7.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Điền vào chỗ trống để hoàn thành đoạn chương trình sau:
animals = ["cat", "dog", "rabbit"]
__________ animals(1)
print(animals)
(Điền phương thức thích hợp để xóa phần tử có chỉ số 1)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Making Pasta

Quiz
•
1st - 12th Grade
10 questions
Bài tập củng cố

Quiz
•
10th Grade
6 questions
hoạt động luyện tập

Quiz
•
10th Grade
8 questions
Aliments et boissons

Quiz
•
6th - 12th Grade
14 questions
Food Groups and Nutrition

Quiz
•
KG - 12th Grade
11 questions
Kiểm Tra Kiến Thức Python

Quiz
•
10th Grade
10 questions
Evaluasi Mata Pelajaran Informatika

Quiz
•
10th Grade
10 questions
Tu Bishvat

Quiz
•
8th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University