Danh sách A trước và sau lệnh insert() là [1, 3, 5, 0] và [1, 3, 4, 5, 0]. Lệnh đã dùng là lệnh gì?
TIN 10 KNTT ÔN TẬP BÀI 21 - 25
Quiz
•
Computers
•
10th Grade
•
Medium
AB C
Used 10+ times
FREE Resource
32 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Danh sách A trước và sau lệnh insert() là [1, 3, 5, 0] và [1, 3, 4, 5, 0]. Lệnh đã dùng là lệnh gì?
insert(3, 4).
insert(4, 2).
insert(4, 3).
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 3: Chương trình trên giải quyết bài toán gì?
>>> s = ""
>>>for i in range(10):
s = s + str(i)
>>>print(s)
In một chuỗi kí tự từ 0 tới 10.
In một chuỗi kí tự từ 1 tới 10.
In một chuỗi kí tự từ 1 tới 9.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho s = “123456abcdefg”, s1 = “124”, s2 = “235”, s3 = “ab”, s4 = “56” + s3
Có bao nhiêu biểu thức lôgic sau đúng?
s1 in s.
s2 in s.
s3 in s.
s4 in s.
1
2
3
4
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho xâu s = "1, 2, 3, 4, 5". Muốn xoá bỏ kí tự "," và thay thế bằng dấu " " ta sử dụng lần lượt những câu lệnh nào?
remove() và join().
del() và replace().
split() và replace().
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là bao nhiêu?
>>> s = “abcdefg”
>>> print(s[2])
'c'.
'b'.
'a'.
'd'.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Muốn xóa một phần tử từ danh sách ta dùng lệnh gì?
remove().
insert().
append().
clear().
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để xóa tất cả các phần tử trong danh sách ta dùng hàm gì?
append().
pop().
clear().
remove().
30 questions
Tin 10_ ôn tập giữa kì 2
Quiz
•
10th Grade
30 questions
HOCKY1_11
Quiz
•
1st - 12th Grade
34 questions
Ôn tập HK II_Tin 10
Quiz
•
10th Grade
32 questions
ÔN TẬP KT CUỐI KỲ 1 TIN 9
Quiz
•
9th - 12th Grade
30 questions
G10 - Ôn tập cuối kì mùa Xuân
Quiz
•
10th Grade
31 questions
Map 1
Quiz
•
6th Grade - University
30 questions
Tin học 5
Quiz
•
5th Grade - University
28 questions
1. ÔN TẬP THI CUỐI HỌC KỲ 2 KHỐI 11
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