List | Set | String - Nâng cao (1)

Quiz
•
Information Technology (IT)
•
6th - 8th Grade
•
Medium
Khang Nghĩa
Used 11+ times
FREE Resource
23 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn code sau là gì?
my_list = [1, 2, 3]
my_list.append([4, 5])
print(my_list)
[1, 2, 3, 4, 5]
[1, 2, 3, [4, 5]]
[1, 2, 3, 4, [5]]
Lỗi
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách nào để truy xuất phần tử cuối cùng của list `lst = [10, 20, 30, 40]?`
lst[4]
lst[-1]
lst[len(lst)]
lst.last()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào xóa phần tử đầu tiên của list `a = [5, 10, 15, 20]`?
a.remove(5)
del a[0]
a.pop(0)
cả b và c đề đúng
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn code sau là gì?
lst = [1, 2, 3, 4]
lst.insert(2, 100)
print(lst)
[1, 2, 100, 3, 4]
[1, 100, 2, 3, 4]
[1, 2, 3, 4, 100]
[100, 1, 2, 3, 4]
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào dùng để tạo một bản sao của list a = [1, 2, 3]?
b = a
b = a.copy()
b = list(a)
a, b và c đều đúng
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn code sau là gì?
s = "Hello World"
print(s[::-1])
"dlroW olleH"
"Hello World"
"H"
"d"
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách nào để nối chuỗi s1 = "Hello" và s2 = "World" thành "Hello World"?
s1 + s2
s1.join(s2)
s1 + " " + s2
s1.concat(s2)
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Microsoft Excel Review Part 2

Quiz
•
8th Grade - University
22 questions
Unit-8 (QB64) Year-6

Quiz
•
6th Grade - University
28 questions
ÔN TẬP GIỮA KỲ 2- TIN HỌC 7

Quiz
•
7th Grade
20 questions
7A-KIỂM TRA THƯỜNG XUYÊN 2

Quiz
•
7th Grade - University
20 questions
Chủ đề 1_Những khái niệm cơ bản về công nghệ thông tin

Quiz
•
6th - 8th Grade
21 questions
PYTHON 1

Quiz
•
6th - 8th Grade
22 questions
Python _ ôn tập điều kiện

Quiz
•
5th Grade - University
20 questions
Thử thách 3 - đường đua tin học - lớp 7

Quiz
•
7th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Information Technology (IT)
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
13 questions
Primary and Secondary Sources

Quiz
•
6th Grade
15 questions
Decimal Operations

Quiz
•
6th Grade
10 questions
Plotting Points on the Coordinate Plane

Quiz
•
7th - 8th Grade