
Câu hỏi về danh sách trong Python
Quiz
•
History
•
10th Grade
•
Practice Problem
•
Hard
nu phanh
FREE Resource
Enhance your content in a minute
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
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for History
53 questions
US History Domain 1 Review CP 2025 (Tech Enhanced)
Quiz
•
9th - 12th Grade
56 questions
US History Domain 2 Review CP 2025 (Tech Enhanced)
Quiz
•
9th - 12th Grade
10 questions
Exploring the Renaissance: A 5-Minute Overview
Interactive video
•
6th - 10th Grade
5 questions
CE 7d Roles and Power of the State Executive Branch
Quiz
•
7th - 12th Grade
10 questions
Exploring the Geography of Ancient China
Interactive video
•
6th - 10th Grade
15 questions
Unit 3 Quizizz
Quiz
•
10th Grade
55 questions
Olympics
Quiz
•
6th - 12th Grade
15 questions
Thanksgiving
Quiz
•
10th - 12th Grade
