
Câu hỏi về Python
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
nhut huynh
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách nào sau đây để tạo danh sách trong Python?
my_list = {1, 2, 3}
my_list = [1, 2, 3]
my_list = (1, 2, 3)
my_list = "<1, 2, 3>"
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để thêm một phần tử vào danh sách foods, ta dùng phương thức nào?
foods.add("Pizza")
foods.insert("Pizza")
foods.append("Pizza")
foods.put("Pizza")
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh nào giúp thay đổi phần tử tại vị trí index trong danh sách colors?
colors(index) = "Đỏ"
colors[index] = "Đỏ"
colors.replace(index, "Đỏ")
colors.change(index, "Đỏ")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để xóa phần tử có giá trị "Mèo" khỏi danh sách animals, ta dùng?
animals.pop("Mèo")
animals.delete("Mèo")
animals.remove("Mèo")
animals.erase("Mèo")
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn code sau là gì? numbers = [3, 7, 9] for i, num in enumerate(numbers): print(i, num)
Lỗi cú pháp
In ra từng số nhưng không có chỉ mục
In ra cả chỉ mục và số
Chỉ in số cuối cùng
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để tạo dictionary lưu thông tin sách, ta dùng cách nào?
book = ["title": "Python", "author": "Guido"]
book = {"title": "Python", "author": "Guido"}
book = ("title", "Python", "author", "Guido")
book = ["title", "Python", "author", "Guido"]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Để thêm cặp "Alice": "0987654321" vào danh bạ contacts, ta dùng?
contacts.add("Alice", "0987654321")
contacts.insert("Alice", "0987654321")
contacts["Alice"] = "0987654321"
contacts.put("Alice", "0987654321")
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
16 questions
Kiểm Tra Giữa Học Kỳ I - Tin Học 7 (24-25)
Quiz
•
7th Grade - University
20 questions
Chủ đề E2 - Bài 5 - Thực hành soạn thảo văn bản có ảnh minh họa
Quiz
•
4th Grade - University
15 questions
BÀI 5. INTERNET
Quiz
•
1st - 12th Grade
16 questions
Kiểu Xâu
Quiz
•
8th - 11th Grade
22 questions
K8 BÀI 2
Quiz
•
8th Grade - University
20 questions
Câu hỏi ôn tập GK2
Quiz
•
9th Grade
15 questions
Web Page Design II
Quiz
•
9th - 12th Grade
16 questions
function & procedures
Quiz
•
9th Grade
Popular Resources on Wayground
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
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
