
PYTHON - KIỂU DỮ LIỆU TẬP HỢP
Quiz
•
Information Technology (IT)
•
1st - 5th Grade
•
Medium
Nguyễn Hằng
Used 9+ times
FREE Resource
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}
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
30 questions
ôn tập lớp 4 - P4
Quiz
•
3rd Grade
30 questions
Ôn tập học kì 1 Tin học lớp 5
Quiz
•
5th Grade
30 questions
Tin học 5
Quiz
•
5th Grade
25 questions
Trắc nghiệm FreeRTOS
Quiz
•
2nd Grade
29 questions
Ôn tập lớp 5 - P1
Quiz
•
1st Grade
30 questions
TIN HỌC 4
Quiz
•
4th Grade
31 questions
Câu hỏi về Excel
Quiz
•
1st - 5th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Subject and Predicate
Quiz
•
4th Grade
10 questions
Cause and Effect
Quiz
•
3rd - 4th Grade
20 questions
States of Matter
Quiz
•
5th Grade
15 questions
Subject-Verb Agreement
Quiz
•
4th Grade
