
List | Set | String - Nâng cao (1)
Authored by Khang Nghĩa
Information Technology (IT)
6th - 8th Grade
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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)
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
20 questions
ULANGAN
Quiz
•
7th Grade
20 questions
Soal Pilihan Ganda. Mata Pelajaran Informatika
Quiz
•
8th Grade
25 questions
Soal Informatika Kelas 8-Berpikir Komputasional
Quiz
•
8th Grade
20 questions
Komunikasi dan Keamanan Data
Quiz
•
8th Grade
20 questions
soal informatika bab 3 kelas 7
Quiz
•
7th Grade - University
20 questions
Kelas 7 - Halaman 77 (Penilaian Akhir Semester)
Quiz
•
7th Grade
20 questions
Informatika Genap 1 Kelas 8
Quiz
•
8th Grade
20 questions
ÔN TẬP TIN 8 CUỐI KÌ 1
Quiz
•
8th Grade
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)
20 questions
Context Clues
Quiz
•
6th Grade
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
10 questions
History and Traditions of Valentine's Day
Interactive video
•
3rd - 6th Grade
20 questions
Valentine’s Day and Disney Trivia Worksheet
Quiz
•
6th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
Writing Algebraic Expressions
Quiz
•
6th Grade
20 questions
Ratios/Rates and Unit Rates
Quiz
•
6th Grade