
Câu hỏi về Python
Quiz
•
Computers
•
9th Grade
•
Medium
nhut huynh
Used 1+ times
FREE Resource
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")
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Camp Sequoia: Part II
Quiz
•
7th - 10th Grade
24 questions
Информационные ресурсы интернета
Quiz
•
8th - 10th Grade
16 questions
Ôn tập Tin học Lớp 3_CKI
Quiz
•
3rd Grade - University
15 questions
BÀI 5. INTERNET
Quiz
•
1st - 12th Grade
20 questions
Câu hỏi ôn tập GK2
Quiz
•
9th Grade
21 questions
Tin học Lớp 5
Quiz
•
4th - 12th Grade
20 questions
Quiz
•
9th Grade
20 questions
Đề Cương Ôn Thi Tin Học 3
Quiz
•
5th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)
Quiz
•
9th Grade
15 questions
MLA Formatting
Quiz
•
9th Grade
20 questions
Typing Practice
Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro
Lesson
•
5th - 9th Grade
20 questions
Google Sheets Quiz
Quiz
•
9th Grade
