
Kiểu Dữ Liệu Danh Sách trong Python

Quiz
•
Computers
•
12th Grade
•
Easy
Thắng Vũ
Used 2+ times
FREE Resource
20 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 1 pt
Khởi tạo dữ liệu danh sách như thế nào? Cách truy cập, thay đổi giá trị và xóa một phần tử trong danh sách như thế nào?
Evaluate responses using AI:
OFF
2.
OPEN ENDED QUESTION
3 mins • 1 pt
Có thể truy cập từng phần tử của danh sách thông qua chỉ số. Chỉ số của list đánh số từ 0. Khởi tạo kiểu dữ liệu danh sách trong Python:
Evaluate responses using AI:
OFF
3.
OPEN ENDED QUESTION
3 mins • 1 pt
Ví dụ 2. Quan sát các lệnh sau để biết cách thay đổi hoặc xoá phần tử của danh sách
Evaluate responses using AI:
OFF
4.
OPEN ENDED QUESTION
3 mins • 1 pt
Ví dụ 3. Quan sát các lệnh sau để biết cách tạo danh sách rỗng (có độ dài 0) và các phép toán ghép danh sách (phép +).
Evaluate responses using AI:
OFF
5.
OPEN ENDED QUESTION
3 mins • 1 pt
Cho danh sách A = [1, 0, “One”, 9, 15, “Two”, True, False]. Hãy cho biết giá trị các phần tử: a) A[0] b) A[2] c) A[7] d) A[len(A)]
Evaluate responses using AI:
OFF
6.
OPEN ENDED QUESTION
3 mins • 1 pt
Giả sử A là một danh sách các số, mỗi lệnh sau thực hiện gì? a) A = A + [10] b) del (A[0]) c) A = [100] + A d) A = A[1] *25
Evaluate responses using AI:
OFF
7.
OPEN ENDED QUESTION
3 mins • 1 pt
Giải thích các lệnh ở mỗi câu sau thực hiện công việc gì? a) >>> S = 0 >>> for i in range(len(A)): if A[i] > 0: S = S + A[i] >>> print(S) b) >>> C = 0 >>> for i in range(len(A)): if A[i] > 0: C = C + 1 >>> print(C)
Evaluate responses using AI:
OFF
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
K12 1 TIẾT HỌC KỲ 1 (2024-2025)

Quiz
•
12th Grade
20 questions
2324TX5

Quiz
•
9th - 12th Grade
20 questions
Bài 4: Tìm kiếm thông tin trên Internet

Quiz
•
5th Grade - University
20 questions
ÔN TẬP

Quiz
•
12th Grade
17 questions
Email Lớp 6

Quiz
•
6th Grade - University
20 questions
L10-ÔN TẬP TX1 BÀI TIN HỌC TRONG PTKTXH + MMT VỚI CS

Quiz
•
10th Grade - University
15 questions
BÀI 16 - THUẬT TOÁN SẮP XẾP

Quiz
•
9th Grade - University
20 questions
IC3 SPARK LV3 - CHỦ ĐỀ 4 - SÁNG TẠO NỘI DUNG - LỚP 5

Quiz
•
5th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade