Lệnh nào để xóa toàn bộ dữ liệu của danh sách A
Kiểm tra thường xuyên bài 23

Quiz
•
Science
•
9th - 12th Grade
•
Hard

Hương Bùi Thị Thanh
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A.append(x)
A.insert(k,x)
A.clear()
A.remove(x)
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho đoạn chương trình:
A=[8,7,4,11,35]
for k in A:
print(k, end=' ')
Khi thực hiện đoạn chương trình trên biến k sẽ lần lượt nhận các giá trị nào từ dãy A.
0,1,2,3,4
8,7,4,11,35
1,2,3,4,5
35,11,4,7,8
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Muốn thêm phần tử 10 vào cuối danh sách B ta dùng lệnh nào sau đây?
B.append(10)
B.clear(10)
B.remove(10)
B.insert(1,10)
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho các lệnh:
A=[7,1,2,4,8]
A.insert(3,6)
Sau khi thực hiện dãy lệnh trên ta nhận được kết quả nào sau đây?
[7,1,2,6,4,8]
[7,1,6,2,4,8]
[7,6,1,2,4,8]
[7,1,2,4,6,8]
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho đoạn chương trình sau:
A=[1, 15, -9, 20, -99,100,120,7,10]
B=[]
For i in A:
If i>1 and i<15:
B.append(i)
Print(B)
Sau khi thực hiện đoạn chương trình trên, dãy B có bao nhiêu phần tử?
1
2
5
9
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh nào sau đây dùng để in ra n dấu * viết liền nhau
Ví dụ: Nhập 3 thì in ra ******
n=int(input());
print(n*"*")
n=input()
print(n*"*")
n=int(input())
print(n**)
n=input()
print(n***)
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Cho danh sách A=[4,7,8,6,7]. Kết quả sau khi gọi lệnh A.remove(8) là?
.[4,7,8,7]
[]
[7,8,6,7
[4,7,6,7]
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
ALKANE

Quiz
•
11th Grade
10 questions
THỰC HÀNH SỐ 1

Quiz
•
12th Grade
10 questions
KIỂM TRA B15-THỰC HÀNH KIỂU DSACH

Quiz
•
10th Grade
15 questions
HOA 9 - HOA HUU CO 1

Quiz
•
9th Grade
12 questions
Ôn tập Khối 11

Quiz
•
10th Grade
15 questions
KIỂM TRA 15 LẦN 1 HK2

Quiz
•
10th Grade
12 questions
Bài 3, 4: Giới thiệu...và Bài toán và thuật toán

Quiz
•
10th Grade
11 questions
TÌM HIỂU KHOA HỌC TỰ NHIÊN 6

Quiz
•
1st - 12th Grade
Popular Resources on Quizizz
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
Discover more resources for Science
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

Quiz
•
8th - 9th 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
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade