Khai báo biến kiểu danh sách , cấu trúc câu lệnh nào sau đây là đúng?

mệt cá

Quiz
•
Computers
•
9th - 12th Grade
•
Easy
Đỗ Hiếu
Used 1+ times
FREE Resource
63 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
a) <tên list>=[<v1>,<v2>,…,<vn>]
a) <tên list>:=[<v1>,<v2>,…,<vn>]
a) <tên list>=[<v1>;<v2>;…;<vn>]
a) <tên list>:[<v1>,<v2>,…,<vn>]
2.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Lệnh nào sau đây dùng để xoá một phần tử trong danh sách
a) del <tên list>[<chỉ số>]
a) Del <tên list>[<chỉ số>]
a) del <tên list>
a) del. <tên list>[<chỉ số>]
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Cấu trúc câu lệnh nào sau đây đúng?
a) <tên list>.append(<giá trị>)
a) <tên list> append(<giá trị>)
a) <tên list>.append(<chỉ số>)
a) <tên list> append(<chỉ số>)
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Câu lệnh <tên list>.append(<giá trị>) sẽ thêm <giá trị> vào vị trí nào trong danh sách?
cuối
đầu
giữa
để đại
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Để khai báo danh sách A có các giá trị 2, 4, "3". Câu lệnh nào sau đây đúng
A. A=[2,4, "3"]
B. A=[2;4; "3"]
C. A:=[2,4, "3"]
D. A:[2,4, "3"]
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Cho danh sách
A= [ 2, 4, 6, True]
Câu lệnh nào sau đây thực hiện xoá giá trị 4 trong dánh sách A
a) del A[2]
a) del A[1]
a) Del A[1]
a) Del A[2]
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Hãy cho biết kết quả hiển thị trên màn hình khi thực hiện đoạn chương trình sau:
A=[1,2]
A.append(True)
print(A)
a) [1,2,True]
a) [1,2, "True"]
a) ["True",1,2]
a) [1, 2, true]
Create a free account and access millions of resources
Similar Resources on Quizizz
68 questions
Câu hỏi về Python

Quiz
•
10th Grade
60 questions
Tin nhé

Quiz
•
10th Grade
65 questions
Ôn tập khối 10

Quiz
•
12th Grade
68 questions
ôn giữa kì 2

Quiz
•
10th Grade
65 questions
Tin 11

Quiz
•
11th Grade
65 questions
ÔN TẬP GIỮA HỌC KÌ 2 LỚP 1024-25

Quiz
•
10th Grade
60 questions
ĐC ÔN THI GKI 24-25 KHỐI 11

Quiz
•
11th Grade
64 questions
Đề Cương Ôn Tập Giữa Kỳ 2

Quiz
•
10th Grade
Popular Resources on Quizizz
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
Discover more resources for Computers
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
37 questions
Camp Re-cap Week 1 (no regression)

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

Quiz
•
10th Grade