
Câu hỏi về danh sách trong Python
Quiz
•
Other
•
1st Grade
•
Practice Problem
•
Hard
Used 1+ times
FREE Resource
Enhance your content in a minute
21 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
True.
False.
Không xác định.
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ì?
remove()
insert()
append()
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)
[1, 2, 3, 4].
[2, 3, 4, 5].
[1, 2, 4, 5].
[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
True, False.
True, False.
False, True.
False, False.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phần tử thứ bao nhiêu trong mảng A bị xoá?
>>> A = [10, 20, 3, 30, 20, 30, 20, 6, 3, 2, 8, 9]
>>> A.remove(3)
>>> print(A)
2.
3.
8.
4.
7.
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ì?
del(2).
del a(2).
del a.
remove(2).
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
RBT Tingkatan 3 Pembangunan Produk: Penghasilan Produk
Quiz
•
1st Grade - Professio...
20 questions
PENDIDIKAN KEWARGANEGARAAN
Quiz
•
1st - 12th Grade
20 questions
Soal Psikotest Promoter (Logical Test)
Quiz
•
1st - 2nd Grade
20 questions
ข้อสอบ 1 วิชาคอมพิวเตอร์ flash cs6
Quiz
•
1st - 12th Grade
19 questions
POWERPOINT NTT
Quiz
•
KG - Professional Dev...
20 questions
Soal PTS/MID IPA Kelas 8 semester 1
Quiz
•
1st Grade - University
16 questions
Kuis Analisis Regresi Linier Sederhana
Quiz
•
1st Grade
20 questions
Blox Fruit 2023
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Other
20 questions
Telling Time to the Hour and Half hour
Quiz
•
1st Grade
10 questions
Life Cycle of a Frog
Quiz
•
1st - 2nd Grade
10 questions
Exploring Rosa Parks and Black History Month
Interactive video
•
1st - 5th Grade
20 questions
Place Value
Quiz
•
KG - 3rd Grade
10 questions
100th Day of School 1st/2nd
Quiz
•
1st - 2nd Grade
15 questions
Reading Comprehension
Quiz
•
1st - 5th Grade
10 questions
Identifying Physical and Chemical Changes
Interactive video
•
1st - 5th Grade
10 questions
Exploring the American Revolution
Interactive video
•
1st - 5th Grade
