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

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
20 questions
Arrays in Java
Quiz
•
9th - 12th Grade
15 questions
Ôn tập kỳ 2 tin 6
Quiz
•
1st - 12th Grade
20 questions
JAVA FUNDAMENTALS
Quiz
•
9th - 12th Grade
15 questions
Bài 1: CSDL
Quiz
•
11th Grade
15 questions
User Interface Aplikasi
Quiz
•
11th - 12th Grade
15 questions
Quiz No. 1 on Open Source Software
Quiz
•
11th - 12th Grade
21 questions
Kiến thức về Internet và Website
Quiz
•
7th Grade - University
15 questions
Arduino practice 2
Quiz
•
9th - 11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University