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
62 questions
ôn tập giữa kì 2

Quiz
•
9th - 12th Grade
58 questions
tin gk2

Quiz
•
10th Grade
62 questions
Kiểu Dữ Liệu Danh Sách

Quiz
•
10th Grade
65 questions
tin học cuối kì 2 lớp 12

Quiz
•
12th Grade
60 questions
Minh Huỳnh - Thầy Hưng - Điểm 10 ICT

Quiz
•
11th Grade
60 questions
Ôn tập Tin học lớp 3 HK 2

Quiz
•
3rd Grade - University
65 questions
Ôn tập KTCK2 Tin 10

Quiz
•
10th Grade - University
60 questions
Câu đúng sai Tin 12 2425

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