Câu hỏi về danh sách trong Python
Quiz
•
Other
•
University
•
Hard
Khôi Minh
FREE Resource
Enhance your content in a minute
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()
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
45 questions
QLNNNGD01
Quiz
•
University
50 questions
Bộ câu hỏi HC_TC số 2
Quiz
•
University
48 questions
Digital Marketing Assessment
Quiz
•
University
50 questions
Revision on Research Methodology
Quiz
•
University
44 questions
Final Test OBM101
Quiz
•
7th Grade - University
42 questions
LearnTube Data Structure and Algorithm Quiz 11/2/23
Quiz
•
University
50 questions
RUNG CHUÔNG VÀNG 24-25
Quiz
•
12th Grade - University
44 questions
HP2 2-2
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Other
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
12 questions
Halloween
Quiz
•
3rd Grade - University
5 questions
Using Context Clues
Interactive video
•
4th Grade - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
14 questions
Eat Healthy,Be Healty
Quiz
•
4th Grade - University
7 questions
History of Halloween: Pagan or Christian?
Interactive video
•
11th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
