
Câu hỏi về danh sách trong Python
Authored by Khôi Minh
Other
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
46 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Để chuyển đổi một danh sách thành một chuỗi, cách nào là không thích hợp?
Sử dụng phương thức join()
Sử dụng vòng lặp for
Sử dụng hàm str()
Sử dụng hàm map() kết hợp với join()
2.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Cách nào sau đây có thể được sử dụng để sao chép sâu một danh sách trong Python?
Phép gán =
Phương thức copy()
Module copy với hàm deepcopy()
Sử dụng lát cắt [:]
3.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Cách nào sau đây không phải là cách xóa một phần tử khỏi danh sách?
Sử dụng hàm pop()
Sử dụng hàm remove()
Sử dụng toán tử del
Sử dụng hàm clear()
4.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Đoạn mã sau đây sẽ tạo ra kết quả gì? list_1 = [1, 2, 3]; list_2 = list_1; list_2.append(4); print(list_1)
[1, 2, 3]
[1, 2, 3, 4]
[4, 1, 2, 3]
Lỗi
5.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Hàm nào sau đây sẽ tạo ra một danh sách chứa các số từ 0 đến 9?
list(0, 10)
list(range(10))
[0:10]
range(0, 10)
6.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Hàm nào sau đây sẽ xóa tất cả các phần tử trong danh sách và trả về một danh sách rỗng?
delete()
remove()
clear()
empty()
7.
MULTIPLE CHOICE QUESTION
20 sec • 10 pts
Để đảo ngược thứ tự các phần tử trong danh sách, hàm nào sau đây được sử dụng?
reverse()
invert()
flip()
rearrange()
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
44 questions
tổng hợp kiến thức React
Quiz
•
University
41 questions
Corporate Law
Quiz
•
University
49 questions
PAT Chapter 2
Quiz
•
University
50 questions
excel akuntansi tomo
Quiz
•
10th Grade - University
45 questions
Christmas
Quiz
•
KG - University
50 questions
Ôn tập NQ 2024 - BPHD phần 1
Quiz
•
University
42 questions
Ulangan Harian Kelas XI
Quiz
•
University
46 questions
KTCT Nhóm 2
Quiz
•
University
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 Other
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
5 questions
Helping Build the Internet: Valerie Thomas | Great Minds
Interactive video
•
11th Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
19 questions
Review2-TEACHER
Quiz
•
University
15 questions
Pre2_STUDENT
Quiz
•
University
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University