
Câu hỏi về danh sách trong Python
Authored by Hang Minh
Computers
10th Grade
Used 9+ 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
Để khởi tạo danh sách b có 5 phần tử 1, 2, 3, 4, 5 ta dùng viết:
b = 1, 2, 3, 4, 5
b = (1, 2, 3, 4, 5)
b = [1..5]
b = [1, 2, 3, 4, 5]
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để thêm phần tử vào cuối danh sách ta dùng hàm:
append()
pop()
clear()
remove()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh a.sort() thực hiện:
Xóa danh sách a.
Sắp xếp danh sách a theo thứ tự không giảm.
Sắp xếp danh sách a theo thứ tự không tăng.
Gọi đến phần tử đầu tiên trong danh sách a
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho danh sách a gồm các phần tử [3,4,5]. Khi đó len(a)=?
1
2
3
4
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào dùng để lấy phần tử thứ 2 trong danh sách a = [10, 20, 30, 40]?
a(2)
a[2]
a[1]
a{2}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn mã sau là gì? a = [5, 3, 8, 1] a.sort() print(a)
[5, 3, 8, 1]
[1, 3, 5, 8]
[8, 5, 3, 1]
Lỗi chương trình
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả đoạn mã sau là gì? a = [10, 20, 30, 40] a.pop(1) print(a)
[10, 30, 40]
[10, 20, 30]
[20, 30, 40]
[10, 30]
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
12 questions
Calidad y Atributos del Servicio
Quiz
•
9th - 12th Grade
15 questions
Q1 W1 M1 PRE-TEST
Quiz
•
10th Grade
15 questions
Ôn tập KTGK. Bài 17. Biến và lệnh gán
Quiz
•
10th Grade
11 questions
Creative iMedia: Strengths, Weaknesses and Improvements
Quiz
•
10th Grade
10 questions
Ke-Al Azhar 8 an
Quiz
•
7th Grade - University
11 questions
Excel
Quiz
•
1st - 10th Grade
10 questions
Hệ Điều Hành Của Máy Tính
Quiz
•
10th Grade - University
10 questions
python
Quiz
•
10th 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