
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]
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
ICT BEL 4
Quiz
•
4th Grade - University
11 questions
Python (basics)
Quiz
•
1st Grade - University
13 questions
mạng xã hội với chúng ta
Quiz
•
11th Grade
10 questions
Materi Berpikir Komputasional
Quiz
•
9th Grade - University
10 questions
Kuis tentang Python
Quiz
•
11th Grade
10 questions
BÀI 7: CÁC LOẠI KIẾN TRÚC CỦA HỆ CSDL
Quiz
•
11th Grade
15 questions
Fundamentos de Bases de Datos
Quiz
•
10th Grade - University
15 questions
Quiz Array Kelas XI
Quiz
•
11th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
15 questions
Atomic Habits: Career Habits
Lesson
•
9th - 12th Grade
16 questions
ACT English - Grammar Practice #2
Quiz
•
11th Grade
20 questions
Banking
Quiz
•
9th - 12th Grade
