
Kiến thức về List trong Python
Authored by Thoa Kim
Information Technology (IT)
11th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cấu trúc cơ bản của list trong Python là gì?
Cấu trúc cơ bản của list trong Python là sử dụng dấu ngoặc nhọn {} để chứa các phần tử.
Cấu trúc cơ bản của list trong Python là sử dụng dấu ngoặc vuông [] để chứa các phần tử, ví dụ: [1, 2, 3].
Cấu trúc cơ bản của list trong Python là sử dụng dấu hai chấm : để phân tách các phần tử.
Cấu trúc cơ bản của list trong Python là sử dụng dấu ngoặc đơn () để chứa các phần tử.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức nào được sử dụng để thêm một phần tử vào cuối list?
add()
push()
insert()
append()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách sử dụng slicing để lấy 3 phần tử đầu tiên của list là gì?
list_name[3]
list_name[:3]
list_name[0:3]
list_name(3)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để duyệt qua từng phần tử trong một list bằng vòng lặp for?
Duyệt qua list bằng cách sử dụng hàm map: map(my_function, my_list)
Sử dụng vòng lặp for: for item in my_list: # xử lý item
Sử dụng vòng lặp do-while: do { # xử lý item } while (item in my_list);
Sử dụng vòng lặp while: while item in my_list: # xử lý item
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Danh sách lồng nhau trong Python là gì và cho ví dụ?
[[10, 20], [30, 40, 50, 60]]
[1, 2, 3, 4, 5]
Ví dụ về danh sách lồng nhau: [[85, 90, 78], [88, 92, 95], [70, 75, 80]]
[[1, 2, 3], [4, 5, 6]]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức nào được sử dụng để xóa một phần tử tại vị trí cụ thể trong list?
Sử dụng 'clear()'
Sử dụng 'remove()'
Sử dụng 'del' hoặc 'pop()'.
Sử dụng 'insert()'
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách sử dụng slicing để lấy phần tử từ vị trí thứ 2 đến thứ 5 trong list là gì?
list[2:5]
list[3:5]
list[2:6]
list[1:4]
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Khám Phá Nghề Nghiệp Trong Tin Học
Quiz
•
8th Grade - University
15 questions
Bài 24
Quiz
•
10th Grade - University
10 questions
tiết 2-bài 16 tin 10
Quiz
•
11th Grade
10 questions
BÀI 18. THỰC HÀNH XÁC ĐỊNH CẤU TRÚC BẢNG VÀ CÁC TRƯỜNG KHÓA
Quiz
•
11th Grade
15 questions
Kiểm tra kiến thức về SQL
Quiz
•
11th Grade - University
10 questions
Network secutiry
Quiz
•
9th Grade - University
15 questions
Quiz Informatika Genap KLs 7
Quiz
•
7th Grade - University
14 questions
Data Structures Quiz
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
15 questions
ACT Reading Practice
Quiz
•
11th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade