
PYTHON - KIỂU DỮ LIỆU TẬP HỢP
Authored by Nguyễn Hằng
Information Technology (IT)
1st - 5th Grade
Used 9+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Tập hợp (set) trong Python có đặc điểm nào sau đây?
Các phần tử được sắp xếp theo thứ tự
Có thể chứa các phần tử trùng nhau
Không có thứ tự và không chứa phần tử trùng nhau
Có thể chỉ chứa số nguyên
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu là cú pháp đúng để khai báo một tập hợp rỗng trong Python?
set1 = {}
set1 = []
set1 = set()
set1 = ()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn chương trình sau là gì?
{1, 2, 3, 4, 1}
{1, 2, 3, 4}
[1, 2, 3, 4]
SyntaxError
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đoạn chương trình sau tạo ra tập hợp như thế nào?
Tập hợp các số chia hết cho 2 từ 0 đến 9
Tập hợp các số lẻ từ 0 đến 9
Tập hợp rỗng
Tập hợp gồm số 2
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phép toán A & B trong Python dùng để:
Gộp hai tập hợp A và B
Lấy các phần tử có trong A hoặc B
Tìm phần tử chỉ có trong A
Tìm phần tử chung của hai tập hợp
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Phương thức nào sau đây được dùng để lấy phần giao giữa hai tập hợp?
union()
difference()
intersection()
symmetric_difference()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn chương trình sau là gì?
{1, 3}
{2, 4}
{6, 7}
{1, 2, 3, 4, 6, 7}
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
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade