Để biết kích thước của danh sách ta dùng hàm:

Câu hỏi trắc nghiệm bài 16, 18 khối 10

Quiz
•
Computers
•
10th Grade
•
Medium
Nguyen Cuc
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
type()
len()
sort()
pop()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để khởi tạo danh sách b có 5 phần tử 1, 2, 3, 4, 5 ta dùng viết:
b = [1, 2, 3, 4, 5]
b = [1..5]
b = (1, 2, 3, 4, 5)
b = 1, 2, 3, 4, 5
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để thêm phần tử vào cuối danh sách ta dùng hàm:
append()
pop()
clear()
remove()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để gọi đến phần tử đầu tiên trong danh sách a ta dùng lệnh:
a[1]
a[0]
a0
a[]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình:
a=[1,2,3]
a.append(4)
print(a)
Sau khi thực hiện đoạn chương trình trên thì danh sách a có các phần tử:
a=[4,1,2,3]
a=[1,2,3]
a=[1,2,3,4]
a=[1,4,2,3]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình:
a=[1,2,3]
a.pop(2)
print(a)
Sau khi thực hiện đoạn chương trình trên thì danh sách a có các phần tử:
a=[1,2]
a=[2,3]
a=[1,3]
a=[2]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn chương trình:
a=[1,2,3]
a.insert(0,2)
print(a)
Sau khi thực hiện đoạn chương trình trên thì danh sách a có các phần tử:
a=[0,1,2,3]
a=[2,3]
a=[2,1,2,3]
a=[1,2,3,2]
Create a free account and access millions of resources
Similar Resources on Quizizz
15 questions
LỚP 10 _ BÀI 1 _ CHỦ ĐỀ F

Quiz
•
10th Grade
20 questions
Tin 10 CKII tt

Quiz
•
10th Grade
10 questions
CÂU LỆNH RẼ NHÁNH IF

Quiz
•
9th - 12th Grade
15 questions
tinGk

Quiz
•
10th Grade
13 questions
phần mềm logo Lớp 5

Quiz
•
1st Grade - Professio...
10 questions
Cấu trúc lặp

Quiz
•
10th Grade
10 questions
Tin 10 chủ đề F. Bài 18

Quiz
•
9th - 12th Grade
10 questions
Bài 8 - Câu lệnh lặp For - Cánh diều Python

Quiz
•
10th 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 Computers
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