Tin 10_CĐ5_Bài 23. Một số lệnh làm việc với dữ liệu danh sách

Quiz
•
Computers
•
10th Grade
•
Hard
Võ Thị Thúy Đồng Võ
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử A = [‘a’, ‘b’, ‘c’, ‘d’, 2, 3, 4]. Các biểu thức sau trả về giá trị đúng hay sai?
>>> 6 in A >>> ‘a’ in A
True, False.
True, False.
False, True.
False, False.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết kết quả khi thực hiện chương trình sau?
1, 2, 3, 4.
1, 2, 4, 3, 5.
1, 2, 3, 4, 5.
1, 2, 4, 5.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để xóa 2 phần tử ở vị trí 1 và 2 trong danh sách a hiện tại ta dùng lệnh nào?
del a[1:2]
del a[0:2]
del a[0:3]
del a[1:3]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho danh sách A = [5, 2, 7, 4, 3, 9]. Hãy cho biết kết quả của danh sách A sau khi thực hiện lệnh A.remove(A[3])?
A = [5, 2, 7, 4, 9]
A = [5, 2, 7, 3, 9]
A = [5, 2, 4, 3, 9]
Không có đáp án đúng.
5.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Cho danh sách D = [3, 6, 9, 12, 15]. Em hãy xác định các phát biểu nào là đúng?
Lệnh D.clear() sẽ xóa toàn bộ danh sách và khi kiểm tra lại, D sẽ là [].
Sau khi thực hiện D.remove(9), danh sách sẽ trở thành [3, 6, 12, 15].
Lệnh D.remove(20) sẽ xóa phần tử có giá trị 20 và danh sách trở thành [3, 6, 9, 12, 15].
Lệnh D.append(18) sẽ thêm giá trị 18 vào đầu danh sách.
Similar Resources on Wayground
10 questions
LUYỆN TẬP - TIN 10 - BÀI 17

Quiz
•
10th Grade
10 questions
MOS PPT 2019 COMMENT

Quiz
•
9th - 12th Grade
9 questions
Củng cố

Quiz
•
10th Grade
10 questions
G10.W20 - Review biến, lệnh gán, lệnh print

Quiz
•
10th Grade
10 questions
bài 14 lớp 10

Quiz
•
10th Grade
10 questions
CHƯƠNG TRÌNH CON BT1

Quiz
•
10th - 12th Grade
9 questions
TIN 10_KTTX LẦN 3_15/4/2023

Quiz
•
10th Grade
6 questions
Bài 13. Luyện tập

Quiz
•
4th Grade - University
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 Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade