Phương thức nào dùng để thêm phần tử vào cuối danh sách trong Python?

VÒNG 1. KIỂU DANH SÁCH

Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
Trương Minh Hậu undefined
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
len()
pop()
append()
add()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đối với kiểu dữ liệu danh sách, hàm len trong Python có chức năng gì?
Số lượng phần tử trong danh sách.
Xóa phần tử khỏi danh sách.
Chỉ ra kiểu dữ liệu của danh sách.
Đưa ra giá trị lớn nhất chứa trong danh sách.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để tham chiếu đến phần tử đầu tiên trong danh sách A ta dùng lệnh:
A[1]
A[0]
A[]
A[-1]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây xoá toàn bộ danh sách?
pop()
remove()
del()
clear()
5.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Sau khi thực hiện đoạn chương trình sau thì danh sách a có các phần tử:
a=[1,2,3]
a.insert(0,2)
print(a)
[0,1,2,3]
[2,3]
[2,1,2,3]
[1,2,3,2]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho danh sách a = [1, 2, 3, 4, 5]. Lệnh nào dưới đây sẽ trả về giá trị nhỏ nhất trong danh sách?
min(a)
a.min()
max(a)
a.max()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để sắp xếp danh sách a theo thứ tự không giảm, phương án nào sau đây đúng?
sort(a)
a.sort()
sum(a)
a.clear()
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
TEST 2 MWORD2016

Quiz
•
10th Grade
10 questions
PHIẾU HỌC TẬP SỐ 2 - BÀI 10 - TIN HỌC 10

Quiz
•
10th Grade
10 questions
TH10 CĐ5-BH23 Tiết 1

Quiz
•
10th Grade
10 questions
10A3_TX1_HK2

Quiz
•
10th Grade
10 questions
Kiểu dữ liệu danh sách trong Python

Quiz
•
10th Grade
9 questions
Kiến thức về hàm print() trong Python

Quiz
•
2nd Grade - University
15 questions
Bài 30

Quiz
•
10th Grade - University
15 questions
Bài 24

Quiz
•
10th Grade - University
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 Information Technology (IT)
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th 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
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade