Câu 1. Cho danh sách L=[2,4,7,'bài tập',5.7]. Độ dài của danh sách L bằng

Bài tập củng cố - Danh sách 1

Quiz
•
Mathematics
•
Professional Development
•
Hard
Hoàng Lê
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
5
4
7
2
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 2. Để khởi tạo danh sách L có 4 phần tử lần lượt là: 6, 8, "Ban mai xanh", 4.5 ta dùng cú pháp
L = 6, 8, "Ban mai xanh", 4.5
L = (6, 8, "Ban mai xanh", 4.5)
L = [6, 8, "Ban mai xanh", 4.5]
L = {6, 8, "Ban mai xanh", 4.5}
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 3. Để xóa một phần tử khỏi danh sách thì sử dụng lệnh nào sau đây?
del
sum()
if()
len()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 4. Cho danh sách A gồm các phần tử: 4, "Pizza", 8.5, 10. Kết quả trả về của lệnh A[1]=5 là
[5, "Pizza", 8.5, 10]
[4, 5, 8.5, 10]
[4, "Pizza", 5, 10]
[4, "Pizza", 8.5, 5]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu 5. Cho danh sách: L= [3,'mai','đào','phở','piano',9]. Kết quả của lệnh del L[4]?
'phở','piano',9,3,'mai','đào'
'mai','đào','phở'
[3,'mai','đào','phở',9]
9,3,'mai','đào'
Similar Resources on Wayground
9 questions
Toán lớp 1 học kỳ 1 và 2

Quiz
•
Professional Development
10 questions
Operaciones con Decimales 02

Quiz
•
Professional Development
8 questions
Rounding & Conversions Quiz

Quiz
•
Professional Development
10 questions
стереометрия

Quiz
•
KG - Professional Dev...
10 questions
Números Complejos I

Quiz
•
7th Grade - Professio...
10 questions
M5X Module 29-Cylinders

Quiz
•
Professional Development
5 questions
Đố vui Mầm non Mai Dịch

Quiz
•
Professional Development
10 questions
Penalaran Induktif

Quiz
•
Professional Development
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade