Câu 1: Để xóa tất cả các phần tử trong danh sách ta dùng hàm gì?

B23.2-Tin10

Quiz
•
Instructional Technology
•
12th Grade
•
Hard
TRUC Ng
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
append()
pop()
clear()
remove()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 2: Giả sử A = [5, 6, 7, 8, 9, 10, 11, 12]. Biểu thức sau trả về giá trị đúng hay sai? (3 + 4 - 5 + 18 // 4) in A
True.
False.
Không xác định.
Câu lệnh bị lỗi.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 3: Muốn xóa một phần tử từ danh sách ta dùng lệnh gì?
remove()
insert()
append()
clear()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 4: Sau khi thực hiện các câu lệnh sau, mảng A như thế nào?
>>> A = [1, 2, 3, 4, 5]
>>> A. remove(2)
>>> print(A)
[1, 2, 3, 4].
[2, 3, 4, 5].
[1, 2, 4, 5].
[1, 3, 4, 5].
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5: 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, True.
False, False.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 6: Phần tử thứ bao nhiêu trong mảng A bị xoá?
>>> A = [10, 20, 3, 30, 20, 30, 20, 6, 3, 2, 8, 9]
>>> A. remove(3)
>>> print(A)
2.
3.
8.
4.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 7: Muốn xóa phần tử thứ 2 trong danh sách a ta dùng lệnh gì?
del(2).
del a(2).
del a.
remove(2).
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
Bài Quiz không có tiêu đề

Quiz
•
3rd Grade - University
10 questions
Bài tập 3-13

Quiz
•
12th Grade
10 questions
Bài 13: Thực hành định dạng văn bản

Quiz
•
5th Grade - University
5 questions
AI NHANH HƠN

Quiz
•
10th Grade - University
10 questions
B25.2-Tin10

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

Quiz
•
12th Grade
12 questions
Công nghệ 4.0 K7 tinkercad

Quiz
•
1st - 12th Grade
10 questions
B25.1-Tin10

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Instructional Technology
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

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

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

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

Quiz
•
KG - University