Chọn đáp án đúng. Cho A = [1, 2, 3, 4, 5].Để xoá tất cả các phần tử trong A, ta dùng lệnh?

ÔN TẬP GIỮA HK2 TIN 10

Quiz
•
Computers
•
10th Grade
•
Medium
Dũng Quốc Trần
Used 81+ times
FREE Resource
53 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A) del A
B) A.del
C) A.clear()
D) A.remove()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Tạo list bằng lệnh gán với các phần tử trong cặp dấu ngoặc nào?
< >
( )
[ ]
{ }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Chọn đáp án đúng.
Cho A = [2, 3, 1, 5, 8, 10]
Để xoá giá trị 1 trong danh sách ta viết lệnh?
A.clear(1)
A.del(1)
A.remove(1)
del A[1]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kiểu dữ liệu danh sách trong Python được khởi tạo theo cú pháp:
<tên list> = [<v1>;<v2>]
<tên list> = [<v1> . . <v2>]
<tên list> = [<v1>, <v2>, . . . , <vn>]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho danh sách A = [3, 2, 1, 5, 6, 10, 7, 12, 18].
Nếu muốn in ra màn hình các giá trị 2, 1, 5, 6, ta dùng:
for i in range(1,5): print(A[i], end = " ")
for i in range(2,5): print(A[i], end =" ")
for i in range(2,6): print(A[i], end = " ")
for i in range(1,6): print(A[i], end = " ")
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Điều kiện trong câu lệnh while là biểu thức dạng dữ liệu gì?
bool.
str.
float.
int.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho dãy A = [1, 6, 4, 2, 7].
Để thay đổi dãy A thành [1, 6, 4, 5, 2, 7], ta viết lệnh?
A.insert(3, 5)
A.append(5, 3)
A.append(3, 5)
A.insert(5, 3)
Create a free account and access millions of resources
Similar Resources on Quizizz
53 questions
TÔI YÊU TIN

Quiz
•
10th Grade
56 questions
Ôn tập kiểm tra giữa học kỳ 2

Quiz
•
9th - 12th Grade
56 questions
Đề Cương Cuối Kỳ II - Tin Học 10

Quiz
•
10th Grade
49 questions
ÔN TẬP CHỦ ĐỀ F TIN 10

Quiz
•
9th - 12th Grade
53 questions
Ôn Tập Lập Trình Căn Bản

Quiz
•
10th Grade
53 questions
Tin 10 kt cuối kì 2

Quiz
•
10th Grade
50 questions
Tin 10_Kiểu Dữ Liệu Danh Sách trong Python

Quiz
•
10th Grade
50 questions
Ôn tập CK 2

Quiz
•
10th Grade - University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade