Để khai báo một danh sách rỗng l ta dùng cú pháp sau:

Ôn tập tin học hk2

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Vinh Ngô
Used 2+ times
FREE Resource
80 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
l == []
l = 0
l = []
l = [0]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để khởi tạo danh sách l gồm các phần tử 1,2,3,4,5 ta dùng cú pháp
l = 1..5
l = "[1, 2, 3, 4, 5]"
l = [1..5]
l = [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
Để xóa tất cả các phần tử trong danh sách ta dùng hàm gì?
append
pop
clear
remove
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để lấy ra phần tử ở cuối danh sách l và đồng thời cũng xóa phần tử đó khỏi danh sách ta dùng lệnh:
l.pop()
pop(l)
l(pop)
pop l
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Với l là một danh sách thì câu lệnh nào sử dụng được?
[l] + 10
l + [10]
[l + 10]
l [+] 10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh [1, 2, 3] + [4, 5, 6] cho kết quả
[1, 2, 3, 4, 5, 6]
[[1, 2, 3], [4, 5, 6]]
[[1], [2], [3], [4], [5], [6]]
Cả ba phương án trên đều sai
Create a free account and access millions of resources
Similar Resources on Quizizz
82 questions
tin cuối kỳ 11

Quiz
•
11th Grade
80 questions
Ôn Tập KTCK2_Tin11_2024

Quiz
•
12th Grade
80 questions
80 câu TN Nghề Tin học vp

Quiz
•
11th Grade
79 questions
Tin hoc Ki I (B)

Quiz
•
10th Grade
83 questions
Ôn tập cuối K2 -Tin 11

Quiz
•
11th Grade
84 questions
Cau_hoi_On_tap_GK_Python

Quiz
•
10th Grade
77 questions
Tin học

Quiz
•
11th Grade
80 questions
Tin hk1 Lê Trần Minh Anh

Quiz
•
11th 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
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