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
45 questions
Ôn Tập Thi Cuối Học Kì 2 - Khối 9
Quiz
•
9th Grade - University
35 questions
Ôn Tập TIN HỌC 10
Quiz
•
10th Grade
37 questions
Đề Cương Cuối Học Kỳ I Môn Công Nghệ 9
Quiz
•
9th Grade - University
37 questions
Túi mù 2
Quiz
•
9th Grade - University
45 questions
TRUNG THU 2023
Quiz
•
9th - 12th Grade
43 questions
tin gk2
Quiz
•
9th - 12th Grade
40 questions
ĐỐ VUI ĐỂ HỌC KHỐI 12 (2022-2023)
Quiz
•
9th - 12th Grade
37 questions
tin hoc
Quiz
•
10th Grade
15 questions
Multiplication Facts
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
math review
Quiz
•
4th Grade
5 questions
capitalization in sentences
Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance
Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions
Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines
Quiz
•
Professional Development
12 questions
Dividing Fractions
Quiz
•
6th Grade
25 questions
Spanish preterite verbs (irregular/changed)
Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance
Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1
Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope
Quiz
•
10th Grade
20 questions
Figurative Language Review
Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes
Quiz
•
9th - 12th Grade