
Kiến thức về List trong Python
Quiz
•
Information Technology (IT)
•
11th Grade
•
Practice Problem
•
Hard
Thoa Kim
FREE Resource
Enhance your content in a minute
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]
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
Vai trò của cơ quan và hệ cơ quan trong cơ thể người
Quiz
•
5th Grade - University
10 questions
Pemrograman Web dan Perangkat Bergerak
Quiz
•
11th Grade
10 questions
BÀI 20. THỰC HÀNH TẠO LẬP CÁC BẢNG CÓ KHÓA NGOÀI
Quiz
•
11th Grade
10 questions
Tin 7 Bài 8
Quiz
•
7th Grade - University
10 questions
Ôn tập HKI Công nghệ - Khối 4
Quiz
•
4th Grade - University
10 questions
Keamanan Berbagi File
Quiz
•
10th Grade - University
10 questions
Ôn HKII tin 4
Quiz
•
5th Grade - University
10 questions
Thiết bị vào - ra
Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
20 questions
Thanksgiving Trivia
Quiz
•
11th Grade
34 questions
Geometric Terms
Quiz
•
9th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
16 questions
Proportional Relationships And Constant Of Proportionality
Quiz
•
7th - 12th Grade
10 questions
DNA Replication Concepts and Mechanisms
Interactive video
•
7th - 12th Grade
10 questions
Unit 2: LS.Bio.1.5-LS.Bio.2.2 Power Vocab
Quiz
•
9th - 12th Grade
20 questions
Food Chains and Food Webs
Quiz
•
7th - 12th Grade
