Câu 1. Lệnh nào để xóa toàn bộ dữ liệu của danh sách A

B23.1-Tin10

Quiz
•
Instructional Technology
•
12th Grade
•
Hard
TRUC Ng
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
30 sec • 1 pt
Câu 2. 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
Câu 3. 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
30 sec • 1 pt
Câu 4. 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
30 sec • 1 pt
Câu 5. 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
30 sec • 1 pt
Câu 6. Câu lệnh nào sau đây dùng để in ra n dấu * viết liền nhau
n=int(input());
print(n*"*")
n=int(input()) print(n*"*")
n=input() print(n*"*")
n=int(input()) print(n**) n=input() print(n***)
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 7. 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
10 questions
Câu hỏi về Lập trình Scratch

Quiz
•
4th Grade - University
10 questions
B26.2-Tin10

Quiz
•
12th Grade
10 questions
CÂU LỆNH FOR - DO

Quiz
•
12th Grade
10 questions
B18.2-Tin10

Quiz
•
12th Grade
10 questions
27.3-Tin10

Quiz
•
12th Grade
10 questions
B24.2-Tin10

Quiz
•
12th Grade
10 questions
B26.1-Tin10

Quiz
•
12th Grade
10 questions
B17.1-Tin10

Quiz
•
12th Grade
Popular Resources on Quizizz
10 questions
Chains by Laurie Halse Anderson Chapters 1-3 Quiz

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
15 questions
Character Analysis

Quiz
•
4th Grade
12 questions
Multiplying Fractions

Quiz
•
6th Grade
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
Discover more resources for Instructional Technology
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
50 questions
Biology Regents Review: Structure & Function

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
14 questions
Attributes of Linear Functions

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University
50 questions
Biology Regents Review 2: Ecology

Quiz
•
9th - 12th Grade
20 questions
Investing

Quiz
•
9th - 12th Grade