
Câu hỏi về danh sách trong Python
Authored by nu phanh
History
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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)
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
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 History
10 questions
The Impact of The Great Migration on the Harlem Renaissance
Interactive video
•
6th - 10th Grade
16 questions
Unit 07 EOU Re-Teach: Ideas Change the World
Quiz
•
10th Grade
10 questions
Exploring the Geography of Ancient Egypt
Interactive video
•
6th - 10th Grade
15 questions
The Age of Exploration
Quiz
•
7th - 10th Grade
7 questions
History of Maya Angelou for Kids | Bedtime History
Interactive video
•
1st - 12th Grade
10 questions
Bessie Coleman for Kids | Bedtime History
Interactive video
•
1st - 12th Grade
25 questions
The Early Republic
Quiz
•
7th - 11th Grade
10 questions
Exploring Ancient China's Dynasties and Innovations
Interactive video
•
6th - 10th Grade