Để 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
Ôn Tập Giữa HKII Tin Học 10

Quiz
•
10th Grade
78 questions
Kiểm Tra Cuối Kỳ Môn Tin Học 10

Quiz
•
10th Grade
79 questions
Ôn tập cuối kì Tin 11 24-25

Quiz
•
11th Grade
76 questions
tin học tn

Quiz
•
10th Grade
80 questions
MICROSOFT EXCEL 2010

Quiz
•
11th Grade
78 questions
ÔN TẬP KIỂM TRA HỌC KỲ I - TIN HỌC 10

Quiz
•
10th Grade
81 questions
Đề Cương Ôn Tập Môn Tin Học 9_HKI_2024

Quiz
•
9th Grade
77 questions
TIN GKI

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 Computers
30 questions
Biology Regents Review #1

Quiz
•
9th Grade
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