
Kiểm tra Danh sách, Xâu trong Python
Authored by TaQuang Dat
Computers
11th Grade
Used 16+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
Đâu là cách khai báo một danh sách đúng? (Có thể chọn nhiều đáp án)
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)
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
15 questions
Sinh hoạt lớp Tuần 7
Quiz
•
1st Grade - University
16 questions
Python Basics
Quiz
•
KG - University
15 questions
Python Basics
Quiz
•
KG - University
19 questions
SEMI - Unit 2
Quiz
•
9th - 12th Grade
18 questions
Quiz tổng hợp_Access
Quiz
•
10th Grade - University
15 questions
Grade 12-Python selection&iteration
Quiz
•
11th - 12th Grade
20 questions
Python Recap
Quiz
•
7th Grade - University
20 questions
Ôn tập học kỳ I
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
10 questions
Evaluating Piecewise Functions Practice
Quiz
•
11th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade