
Kiến thức về List trong Python
Quiz
•
Information Technology (IT)
•
11th Grade
•
Practice Problem
•
Hard
Thoa Kim
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cấu trúc cơ bản của list trong Python là gì?
Cấu trúc cơ bản của list trong Python là sử dụng dấu ngoặc nhọn {} để chứa các phần tử.
Cấu trúc cơ bản của list trong Python là sử dụng dấu ngoặc vuông [] để chứa các phần tử, ví dụ: [1, 2, 3].
Cấu trúc cơ bản của list trong Python là sử dụng dấu hai chấm : để phân tách các phần tử.
Cấu trúc cơ bản của list trong Python là sử dụng dấu ngoặc đơn () để chứa các phần tử.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức nào được sử dụng để thêm một phần tử vào cuối list?
add()
push()
insert()
append()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách sử dụng slicing để lấy 3 phần tử đầu tiên của list là gì?
list_name[3]
list_name[:3]
list_name[0:3]
list_name(3)
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để duyệt qua từng phần tử trong một list bằng vòng lặp for?
Duyệt qua list bằng cách sử dụng hàm map: map(my_function, my_list)
Sử dụng vòng lặp for: for item in my_list: # xử lý item
Sử dụng vòng lặp do-while: do { # xử lý item } while (item in my_list);
Sử dụng vòng lặp while: while item in my_list: # xử lý item
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Danh sách lồng nhau trong Python là gì và cho ví dụ?
[[10, 20], [30, 40, 50, 60]]
[1, 2, 3, 4, 5]
Ví dụ về danh sách lồng nhau: [[85, 90, 78], [88, 92, 95], [70, 75, 80]]
[[1, 2, 3], [4, 5, 6]]
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức nào được sử dụng để xóa một phần tử tại vị trí cụ thể trong list?
Sử dụng 'clear()'
Sử dụng 'remove()'
Sử dụng 'del' hoặc 'pop()'.
Sử dụng 'insert()'
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách sử dụng slicing để lấy phần tử từ vị trí thứ 2 đến thứ 5 trong list là gì?
list[2:5]
list[3:5]
list[2:6]
list[1:4]
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
9 questions
BÀI TẬP CỦNG CỐ NỘI DUNG CÁC THAO TÁC HOÀN THIỆN BẢNG TÍNH
Quiz
•
8th Grade - University
7 questions
Algorithms & Programming
Quiz
•
6th Grade - University
10 questions
Bài 22: Thực hành tạo bảng dữ liệu có tham chiếu
Quiz
•
11th Grade
10 questions
BÀI 19. THỰC HÀNH TẠO LẬP CƠ SỞ DỮ LIỆU VÀ CÁC BẢNG
Quiz
•
11th Grade
10 questions
Kiểm tra 15 phút Tin học 6 - HK1
Quiz
•
6th Grade - University
15 questions
Ôn Tập Môn Tin Học Lớp 3
Quiz
•
3rd Grade - University
15 questions
Python for loop/lists
Quiz
•
9th Grade - University
15 questions
Bài 28
Quiz
•
10th Grade - University
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
27 questions
7.2.3 Quadrilateral Properties
Quiz
•
9th - 12th Grade
7 questions
Amoeba Sisters Dihybrid Cross Punnett Square
Interactive video
•
9th - 12th Grade
10 questions
The Holocaust: Historical Overview
Interactive video
•
9th - 12th Grade
10 questions
Key Features of Quadratic Functions
Interactive video
•
8th - 12th Grade
