Để khởi tạo một danh sách ta thực hiện theo cú pháp như thế nào?

Tin 10. Bài 22. Dữ liệu kiểu danh sách

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Thùy Dương
Used 8+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
<Tên list>=(v1,v2,…,vn)
B. <Tên list>=[v1,v2,…,vn]
<Tên list>==[v1,v2,…,vn]
<Tên list>=(v[1],v[2],…,v[n])
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho khai báo mảng sau:
A = list(“3456789”)
Để in giá trị phần tử thứ 2 của mảng một chiều A ra màn hình ta viết:
print(A[2])
print(A[3])
print(A[1])
print(A[0])
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để tính độ dài của danh sách A ta thực hiện như thế nào?
len(A)
len[A]
len<A>
len.A
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây để tạo danh sách rỗng?
<tên list>.[]
<tên list>=()
<tên list>=<>
<tên list>=[]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho arr = [‘xuan’, ‘hạ’, 1. 4, ‘đông’, ‘3’, 4.5, 7]. Đâu là giá trị của arr[3]?
1.4
đông
hạ
3
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào để duyệt từng phần tử của danh sách?
for
while-for
for kết hợp với lệnh range()
while kết hợp với lệnh range()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách khai báo danh sách nào sau đây, cách nào sai?
ls = [1, 2, 3]
ls = [x for x in range(3)]
ls = [“tin học”]
ls = list(3).
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Bài 12: Tạo biểu mẫu

Quiz
•
12th Grade
15 questions
HTML Quiz

Quiz
•
7th - 12th Grade
10 questions
Bài 7: HTML và cấu trúc trang web

Quiz
•
12th Grade
15 questions
Ôn tập HK2 Python 10

Quiz
•
10th Grade
10 questions
Bài 25 tin 10

Quiz
•
9th Grade - University
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

Quiz
•
6th Grade - University
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

Quiz
•
1st - 12th Grade
10 questions
Khởi động

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