
Câu hỏi về danh sách trong Python
Quiz
•
History
•
10th Grade
•
Practice Problem
•
Hard
nu phanh
Used 1+ times
FREE Resource
Enhance your content in a minute
110 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, loại dữ liệu nào được sử dụng để lưu trữ một danh sách các phần tử?
int
list
tuple
dict
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để khai báo một danh sách rỗng trong Python, cú pháp nào được sử dụng?
list = {}
list = []
list = ()
list = ''
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Danh sách trong Python có đặc điểm gì?
Không thể thay đổi giá trị sau khi khai báo
Có thể chứa các phần tử của các kiểu dữ liệu khác nhau
Không thể chứa các phần tử trùng lặp
Chỉ chứa các số nguyên
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho danh sách: numbers = [2, 4, 6, 8] in ra numbers[1] Kết quả của đoạn mã trên là gì?
2
4
6
8
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho danh sách: fruits = ["apple", "banana", "cherry"] fruits.append("orange") print(fruits) Sau khi chạy chương trình, danh sách fruits trông như thế nào?
["apple", "banana", "cherry"]
["apple", "banana", "cherry", "orange"]
["apple", "banana"]
["orange", "apple", "banana", "cherry"]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào bạn có thể truy cập hoặc thay đổi giá trị của từng phần tử trong một danh sách?
vị trí
danh sách
chỉ số
độ dài
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào được sử dụng để lặp qua tất cả các phần tử của một danh sách bằng cách sử dụng độ dài (len)?
for i in range(len(list))
for i in range(len(list))
for i in len((list) - 1)
for i in len(list)
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
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 History
16 questions
Students of Civics Unit 2: The Constitution
Quiz
•
7th - 11th Grade
15 questions
Western River Valley Civilizations
Quiz
•
7th - 10th Grade
10 questions
Exploring the 7 Principles of the Constitution
Interactive video
•
6th - 10th Grade
20 questions
Students of Civics Unit 6: The Legislative Branch
Quiz
•
7th - 11th Grade
26 questions
AP World Unit 3 Land Based Empires
Quiz
•
9th - 12th Grade
10 questions
Exploring the Geography of Ancient Egypt
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Legacy of Ancient Egypt
Interactive video
•
6th - 10th Grade
15 questions
Ancient Greece
Quiz
•
7th - 10th Grade
