Cho biết kết quả của đoạn chương trình dưới đây:
>>>for i in range(1,6):
>>> print(i,end=" ")
On tap TN GK2_Tin 1-
Quiz
•
Other
•
10th Grade
•
Medium
Kim Tăng
Used 4+ times
FREE Resource
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho biết kết quả của đoạn chương trình dưới đây:
>>>for i in range(1,6):
>>> print(i,end=" ")
12345
123456
1 2 3 4 5
1 2 3 4 5 6
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Toán tử nào dùng để kiểm tra một giá trị có nằm trong danh sách không?
in
int
range
append
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử A = [‘a’, ‘b’, ‘c’, ‘d’, 2, 3, 4]. Các biểu thức sau trả về giá trị đúng hay sai?
6 in A
‘a’ in A
True, False.
True, False.
False, False
False, True
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây xoá toàn bộ danh sách?
exit()
clear()
remove()
del()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, câu lệnh nào dùng để tính độ dài của xâu s?
len(s).
length(s).
s.len().
s.length().
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Có bao nhiêu xâu kí tự nào hợp lệ?
1) “123_@##” 2) “hoa hau”
3) “346h7g84jd” 4) python
5) “01028475” 6) 123456
5
4
6
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chuỗi sau được in ra mấy lần?
s = "abcdefghi"
for i in range (10):
if i % 4 == 0:
print(s)
0
1
2
3
25 questions
GDCD 10 BÀI 10 + 11
Quiz
•
10th Grade
34 questions
tin gk2
Quiz
•
10th Grade
26 questions
ÔN TẬP GIỮA KỲ 2 _TIN 6
Quiz
•
1st - 12th Grade
28 questions
Ai là triệu phú
Quiz
•
KG - Professional Dev...
35 questions
Chúa Giêsu Giáng Sinh
Quiz
•
6th Grade - University
26 questions
ÔN TẬP KTGK1 -TIN7
Quiz
•
9th - 12th Grade
25 questions
kt 15P K11 L2
Quiz
•
9th - 12th Grade
25 questions
Bài tập TNKQ số 3
Quiz
•
9th - 12th Grade
25 questions
Equations of Circles
Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)
Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System
Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice
Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers
Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons
Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)
Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review
Quiz
•
10th Grade