Trong Python, danh sách (list) được định nghĩa bởi dấu ngoặc nào? Dấu ngoặc vuông [], Dấu ngoặc nhọn {}, Dấu ngoặc đơn (), Dấu ngoặc kép ""

Bộ 5: Python: list, tuple, dict, json, function

Flashcard
•
Information Technology (IT)
•
University
•
Hard
Quizizz Content
FREE Resource
Student preview

20 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
Dấu ngoặc vuông []
Answer explanation
2.
FLASHCARD QUESTION
Front
Điểm khác biệt chính giữa tuple và list trong Python là gì?
Back
Tuple là immutable, list là mutable.
Answer explanation
3.
FLASHCARD QUESTION
Front
Để tạo một tuple rỗng trong Python, cú pháp đúng là gì? Options: (), [], {}, (,), None
Back
()
Answer explanation
4.
FLASHCARD QUESTION
Front
Dictionary trong Python được sử dụng để lưu trữ dữ liệu dưới dạng?
Back
các cặp key-value
Answer explanation
5.
FLASHCARD QUESTION
Front
Để chuyển đổi một chuỗi JSON thành đối tượng Python, ta sử dụng module nào?
Back
json
Answer explanation
6.
FLASHCARD QUESTION
Front
Hàm json.dumps() được sử dụng để làm gì trong Python?
Back
Chuyển đổi đối tượng Python thành chuỗi JSON.
Answer explanation
7.
FLASHCARD QUESTION
Front
Để định nghĩa một hàm trong Python, ta sử dụng từ khóa nào?
Back
def
Answer explanation
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
PTA - Buổi 1

Flashcard
•
KG
10 questions
Ôn tập chủ đề F

Flashcard
•
KG
15 questions
test adruino

Flashcard
•
12th Grade
14 questions
Bộ 4: Python cơ bản: variable, for loop, if-elif-else

Flashcard
•
University
19 questions
NoSQL vs SQL

Flashcard
•
Professional Development
15 questions
CSE 102 Exam 3 Practice

Flashcard
•
University
15 questions
CSE 102 Exam 3 Practice

Flashcard
•
University
10 questions
Test Định kỳ

Flashcard
•
University
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade