Đâu là cách khai báo một danh sách đúng? (Có thể chọn nhiều đáp án)

Kiểm tra Danh sách, Xâu trong Python

Quiz
•
Computers
•
11th Grade
•
Medium
TaQuang Dat
Used 16+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
D = []
D = {"a", 4, 9}
D = [7, 6, 9, " "]
D = ['Hello', '3456']
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho danh sách: DS = [4, 8, 12, 5, 9, 3, -2, -7]
Sau khi thực hiện lệnh: print( DS[:3]) màn hình sẽ xuất hiện thông tin nào dưới đây?
5
3
[4, 8, 12, 5]
Báo lỗi
3.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Danh sách là một ___ các phần tử có thể có kiểu dữ liệu giống hoặc khác nhau:
4.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Chọn các xâu bạn cho là hợp lệ:
8534
("4 + 10")
'Forever'
"1,2,3,4"
Happy birthday
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho câu lệnh sau:
for x in "banana"
print(x)
Đâu tìm lỗi sai trong câu lệnh trên
print(x) sai cú pháp
dùng sai từ khóa in
lệnh print(x) không lùi dòng
thiếu dấu ":" sau "banana"
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho xâu H = "Never Give Up"
print(len(H))
Bạn hãy cho biết lệnh trên trả về kết quả nào dưới đây?
12
13
14
15
7.
FILL IN THE BLANK QUESTION
1 min • 1 pt
Cho danh sách fruits = ["apple", "bananas", "mangoes", "cherries"]
Đâu là phần còn thiếu của lệnh duyệt qua các phần tử trong một danh sách?
for x in ___:
print(x)
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Đề kiểm tra ve Xau khoi 10-2022-2023

Quiz
•
11th Grade
15 questions
Câu hỏi về lập trình Python

Quiz
•
10th Grade - University
21 questions
ÔN TẬP KIỂU XÂU

Quiz
•
1st - 12th Grade
20 questions
Tin 11 - Bài 4,5 - Câu hỏi trắc nghiệm

Quiz
•
11th Grade
21 questions
Ôn tập cuối kì Đông. Python

Quiz
•
10th Grade - University
15 questions
Bài 6 Câu lệnh rẽ nhánh

Quiz
•
10th Grade - University
20 questions
Kiểm tra kiến thức về xử lý danh sách trong Python

Quiz
•
11th Grade
15 questions
Ôn tập kỳ 2 tin 6

Quiz
•
1st - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
10 questions
Right Triangles: Pythagorean Theorem and Trig

Quiz
•
11th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade