
bai 23 Một số lệnh làm việc với dữ liệu danh sách
Authored by THUY ANH LE
Computers
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Toán tử nào dùng để kiểm tra một giá trị có nằm trong danh sách không?
in
int
range
append
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của chương trình sau là gì?
A = [1, 2, 3, 4, 5, 6, 5]
for k in A:
print(k, end = " ")
1,2,3,4,5,6,5
1,2,3,4,5,6
0,1,2,3,4,5,6
2,3,4,5,6
3.
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
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh nào sau đây xoá toàn bộ danh sách?
del()
remove()
exit()
clear()
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Câu 7. Phát biểu nào sau đây là sai?
Sau khi thực hiện lệnh clear(), danh sách gốc trở thành rỗng
Lệnh remove () có chức năng xoá một phần tử có giá trị cho trước
Lệnh remove() xoá tất cả các phần tử có giá trị cho trước trong list
Clear() có tác dụng xoá toàn bộ các danh sách.
6.
MULTIPLE CHOICE QUESTION
45 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]
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[1].
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
10 questions
BÀI KIỂM TRA GIỮA KÌ 2 - LỚP 3
Quiz
•
1st - 10th Grade
10 questions
CỦNG CỐ KIẾN THỨC BÀI 2 - TIN HỌC 12
Quiz
•
10th - 12th Grade
15 questions
Programming
Quiz
•
10th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
15 questions
Geschäftsbrief, Formatvorlagen und Seriendruck
Quiz
•
10th Grade
15 questions
daily test 10
Quiz
•
10th Grade
15 questions
Linux-2 Quiz 2 -- LAMP
Quiz
•
1st - 12th Grade
10 questions
Soal Ujian Komputer
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade