Trong Python, sau khi thực hiện đoạn mã kết quả hiển thị sẽ là gì?
ds=[45, 0, 50, 7, 10]
ds.sort()
print(ds)
Kiểm tra cuối HK2-Khối 10-NH2023_2024
Quiz
•
Other
•
10th Grade
•
Easy
linh nguyen
Used 2+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong Python, sau khi thực hiện đoạn mã kết quả hiển thị sẽ là gì?
ds=[45, 0, 50, 7, 10]
ds.sort()
print(ds)
[0, 7, 10, 45, 50]
[50, 45, 10, 7, 0]
Báo lỗi
Tất cả sai
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong Python, sau khi thực hiện đoạn mã kết quả hiển thị sẽ là gì?
ds=[45, 0, 50, 7, 10]
a="hello"
ds.insert(0,a)
print(ds)
['hello', 45, 0, 50, 7, 10]
[45, 0, 50, 7, 10, 'hello']
[45, 'hello', 0, 50, 7, 10]
Báo lỗi
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong Python, sau khi thực hiện đoạn mã kết quả hiển thị sẽ là gì?
ds=[45, 0, 50, 7, 10]
ds.pop(3)
print(ds)
[45, 0, 50, 10]
[45, 0, 7, 10]
[45, 0, 50, 7, 10]
Báo lỗi
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong Python, sau khi thực hiện đoạn mã kết quả hiển thị sẽ là gì?
ds=[45, 0, 50, 7, 10]
ds.append(“hello”)
print(ds)
Báo lỗi
[45, 0, 50, 7, 10]
[45, 0, 50, 7, 10, “hello”]
[45, 0, 50, 7, “hello”]
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong Python, sau khi thực hiện đoạn mã kết quả hiển thị sẽ là gì?
ds=[45, 0, 50, 7, 10]
print(ds[0])
0
45
báo lỗi
10
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong Python, sau khi thực hiện đoạn mã kết quả hiển thị sẽ là gì?
ds=[i for i in range (10)]
print(ds)
báo lỗi
0 1 2 3 4 5 6 7 8 9
[0 1 2 3 4 5 6 7 8 9]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Trong Python, sau khi thực hiện đoạn mã kết quả hiển thị sẽ là gì?
a=”hello python”
b=”tin học”
print(a.replace(b,”python”))
hello python
hello tin học
python
tin học
42 questions
ngon
Quiz
•
10th Grade
37 questions
TIN 5 CĐ F
Quiz
•
5th Grade - University
37 questions
PAS Informatika Genap 2023
Quiz
•
10th Grade
37 questions
Đề Cương Cuối Học Kỳ I Môn Công Nghệ 9
Quiz
•
9th Grade - University
42 questions
Tin hk1
Quiz
•
10th Grade
40 questions
ĐỐ VUI ĐỂ HỌC KHỐI 12 (2022-2023)
Quiz
•
9th - 12th Grade
45 questions
GAME: RUNG CHUÔNG VÀNG LỚP 10D5
Quiz
•
10th Grade
45 questions
Tin10.BT list
Quiz
•
10th Grade
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
12 questions
Multiplying Fractions
Quiz
•
6th Grade
30 questions
Biology Regents Review #1
Quiz
•
9th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology
Quiz
•
9th - 12th Grade
20 questions
Investing
Quiz
•
9th - 12th Grade