Quiz về Kiểu Dữ Liệu List và Set (1)

Quiz
•
Information Technology (IT)
•
7th Grade
•
Medium
Khang Nghĩa
Used 18+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List trong Python là gì?
Một kiểu dữ liệu chỉ chứa chuỗi.
Một kiểu dữ liệu chỉ chứa số nguyên.
Một kiểu dữ liệu không thay đổi.
Một kiểu dữ liệu cho phép lưu trữ một tập hợp các phần tử.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm nào được sử dụng để thêm phần tử vào cuối list?
insert()
append()
remove()
pop()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách nào để truy cập phần tử đầu tiên trong list?
my_list[-1]
my_list[0]
my_list[2]
my_list[1]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Điểm khác biệt chính giữa list và set trong Python là gì?
`set` có thể chứa phần tử trùng lặp, còn `list` thì không
`set` không cho phép phần tử trùng lặp, còn `list` thì có
`set` có thể được truy cập bằng chỉ mục, còn `list` thì không
Không có sự khác biệt
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm nào được sử dụng để xóa toàn bộ phần tử trong list?
clear()
remove()
pop()
append()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào dùng để tạo một set?
my_set = set(1, 2, 3)
my_set = (1, 2, 3)
my_set = {1, 2, 3}
my_set = [1, 2, 3]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Hàm nào dùng để tìm chỉ số của phần tử trong list?
list.search(value)
list.find(value)
list.index(value)
list.locate(value)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Trắc nghiêm ôn tập HĐH_C6

Quiz
•
University
10 questions
BÀI 16. ĐỊNH DẠNG KHUNG

Quiz
•
12th Grade
18 questions
TIN12 BÀI 13

Quiz
•
12th Grade
14 questions
IC3_GS6_Bài 13: Cài đặt mặc định phần mềm

Quiz
•
8th Grade
10 questions
Bài 2 - Tin học 10

Quiz
•
10th Grade
15 questions
GS6_Level2_Bài 1_Bộ vi xử lí và Kết nối máy tính

Quiz
•
7th Grade
14 questions
C3 CTDL

Quiz
•
University
10 questions
Luyện tập

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Multiplying and Dividing Integers

Quiz
•
7th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
20 questions
Perfect Squares and Square Roots

Quiz
•
7th Grade
10 questions
Understanding the Scientific Method

Interactive video
•
5th - 8th Grade