
Câu hỏi về danh sách trong Python
Quiz
•
History
•
10th Grade
•
Hard
nu phanh
FREE Resource
Enhance your content
110 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, kiểu dữ liệu nào được sử dụng để lưu trữ 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]
print(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
Có thể truy cập hoặc thay đổi giá trị của từng phần tử trong danh sách thông qua đâu?
vị trí
danh sách
chỉ số
độ dài
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào dùng để duyệt hết các phần tử của danh sách thông qua độ 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
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for History
16 questions
Government Unit 2
Quiz
•
7th - 11th Grade
10 questions
Exploring WW1 Through Oversimplified Perspectives
Interactive video
•
6th - 10th Grade
10 questions
Exploring Mendeleev's Periodic Table Innovations
Interactive video
•
6th - 10th Grade
10 questions
Exploring the Causes of the American Revolution
Interactive video
•
6th - 10th Grade
10 questions
Early River Valley Civilizations
Quiz
•
6th - 12th Grade
12 questions
CE 2b Early Documents Review
Quiz
•
7th Grade - University
20 questions
Unit 6 FA: Scientific Rev, Enlightenment, and Absolutism
Quiz
•
10th - 12th Grade
12 questions
World Civ Unit 2 Vocab
Quiz
•
9th - 12th Grade