
BÀI 23: MỘT SỐ LỆNH LÀM VIỆC VỚI DỮ LIỆU DANH SÁCH

Quiz
•
Computers
•
10th Grade
•
Medium
gv hung
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để xóa tất cả các phần tử trong danh sách ta dùng hàm gì?
Append()
pop()
clear()
remove()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử A = [5, 6, 7, 8, 9, 10, 11, 12].
Biểu thức sau trả về giá trị đúng hay sai?(3 + 4 – 5 + 18 // 4) in A
A. True.
B. False.
C. Không xác định.
D. Câu lệnh bị lỗi.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Muốn xóa một phần tử từ danh sách ta dùng lệnh gì?
A. remove().
B. insert().
C. append().
D. clear().
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Sau khi thực hiện các câu lệnh sau, mảng A như thế nào?
>>> A = [1, 2, 3, 4, 5]
>>> A. remove(2)
>>> print(A)
A. [1, 2, 3, 4].
B. [2, 3, 4, 5].
C. [1, 2, 4, 5].
D. [1, 3, 4, 5].
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Giả sử A = [‘a’, ‘b’, ‘c’, ‘d’, 2, 3, 4]. Các biểu thức sau trả về giá trị đúng hay sai?
6 in A
‘a’ in A
A. True, False.
B. True, False.
C. False, True.
D. False, False.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Muốn xóa phần tử thứ 2 trong danh sách a ta dùng lệnh gì?
A. del(2).
B. del a(2).
C. del a.
D. remove(2).
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả sau khi thực hiện lệnh Clear() sau đây là gì?
>> A = [1, 2, 3, 4, 5]
>> A.clear()
[ ]
[0,1, 2, 3, 4, 5]
[1, 2, 3, 4, 5,0]
[0]
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Trắc nghiệm: Bài 18-Các lệnh vào ra đơn giản

Quiz
•
10th Grade
10 questions
Ai nhanh hơn For-do

Quiz
•
5th Grade - University
10 questions
Bai 17

Quiz
•
10th Grade
10 questions
Bài 18-Các lệnh vào ra đơn giản

Quiz
•
10th Grade
10 questions
BAI 24_LOP10_BAITAP

Quiz
•
10th Grade
10 questions
python-BTxâu

Quiz
•
9th - 12th Grade
10 questions
ÔN TẬP KIẾN THỨC XÂU KÍ TỰ

Quiz
•
9th - 12th Grade
10 questions
TIN 10_B22_LIST

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade