
Kiến thức lập trình Python cơ bản
Quiz
•
Other
•
8th Grade
•
Practice Problem
•
Hard
Hà Đức Trung (TDS-OP)
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh print trong Python được sử dụng để làm gì?
Lưu trữ giá trị vào biến.
Xóa giá trị khỏi bộ nhớ.
Thực hiện phép toán số học.
In ra giá trị hoặc thông tin lên màn hình.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kiểu dữ liệu int trong Python đại diện cho loại dữ liệu nào?
Số nguyên (integer)
Danh sách (list)
Số thực (float)
Chuỗi ký tự (string)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để chuyển đổi một số thực (float) thành số nguyên (int) trong Python?
Sử dụng int(x) để chuyển đổi số thực x thành số nguyên.
Sử dụng round(x) để chuyển đổi số thực x thành số nguyên.
Sử dụng float(x) để chuyển đổi số thực x thành số nguyên.
Sử dụng str(x) để chuyển đổi số thực x thành số nguyên.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Câu lệnh input trong Python có chức năng gì?
Câu lệnh input trong Python có chức năng nhận dữ liệu từ người dùng.
Câu lệnh input trong Python có chức năng thực hiện phép toán.
Câu lệnh input trong Python chỉ nhận dữ liệu từ file.
Câu lệnh input trong Python dùng để xuất dữ liệu ra màn hình.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kiểu dữ liệu float trong Python có thể chứa những giá trị nào?
Các giá trị số thực, bao gồm số dương, số âm, số 0, và số thập phân.
Chỉ chứa số nguyên âm
Chỉ chứa số nguyên dương
Chỉ chứa ký tự và chuỗi
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Làm thế nào để in ra một chuỗi kết hợp với một số nguyên trong Python?
Sử dụng f-string hoặc phương thức format để kết hợp chuỗi và số nguyên.
Sử dụng toán tử + để kết hợp chuỗi và số nguyên.
Chỉ cần in ra số nguyên mà không cần chuỗi.
Sử dụng phương thức append để thêm số nguyên vào chuỗi.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cách nào để chuyển đổi một chuỗi (string) thành số thực (float) trong Python?
Use str(float) to convert a float to a string.
Use float.parse(string) to convert a string to a float.
Use float(string) to convert a string to a float.
Use int(string) to convert a string to a float.
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
12 questions
Squid game
Quiz
•
1st - 12th Grade
9 questions
SGN Project Vocabulary
Quiz
•
3rd - 8th Grade
11 questions
John Philip Sousa
Quiz
•
6th - 8th Grade
10 questions
Triết học_Buổi 13
Quiz
•
1st - 10th Grade
15 questions
LT K17ABCD
Quiz
•
KG - University
15 questions
Test 1 kiểm toán nội bộ
Quiz
•
1st Grade - University
11 questions
Igor Stravinsky
Quiz
•
6th - 8th Grade
10 questions
Coding Fundamentals in Minecraft Education Edition
Quiz
•
5th - 8th 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
Discover more resources for Other
5 questions
Legends, Leaders, & Changemakers: Maya Angelou
Interactive video
•
6th - 8th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
15 questions
Product of Powers Property A1 U7
Quiz
•
8th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
20 questions
Laws of Exponents
Quiz
•
8th Grade
16 questions
8th U5L5 Graphs of Functions
Quiz
•
8th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
