
CỦNG CỐ KIẾN THỨC LỆNH VÀO RA TRONG PYTHON
Authored by Thanh Đào
Computers
10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Lệnh nào sau đây dùng để nhận đầu vào từ người dùng trong Python?
Lệnh nào sau đây dùng để nhận đầu vào từ người dùng trong Python?
print()
read()
output()
input()
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Lệnh nào sau đây sẽ in ra dòng chữ “Hello, Python!” trên màn hình?
Lệnh nào sau đây sẽ in ra dòng chữ “Hello, Python!” trên màn hình?
input("Hello, Python!")
display("Hello, Python!")
print("Hello, Python!")
output("Hello, Python!")
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Lệnh input() trong Python trả về dữ liệu dạng nào?
số nguyên (int)
chuỗi (str)
số thực (float)
boolean (bool)
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Để lưu đầu vào từ người dùng vào một biến có tên là name, lệnh nào sau đây là đúng?
name = input("Nhập tên của bạn: ")
name: input("Nhập tên của bạn: ")
input("Nhập tên của bạn: ") = name
input(name = "Nhập tên của bạn: ")
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Câu lệnh nào sẽ yêu cầu người dùng nhập tuổi và chuyển đổi đầu vào thành kiểu số nguyên?
age = float(input("Nhập tuổi của bạn: "))
age = int(input("Nhập tuổi của bạn: "))
age = str(input("Nhập tuổi của bạn: "))
age = input("Nhập tuổi của bạn: ")
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Kết quả của lệnh str(123.456) là:
"123"
None
123.456
"123.456"
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Để in dòng “Kết quả là: 10” với x = 10, câu lệnh nào sau đây là đúng?
print("Kết quả là:" x)
print("Kết quả là: x")
print("Kết quả là: ", x)
print("Kết quả là: " + x)
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
10 questions
AP Computer Science Principles - Unit 7: Parameters, Returns
Quiz
•
9th - 12th Grade
10 questions
BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU
Quiz
•
1st - 12th Grade
10 questions
Logic Circuits
Quiz
•
10th - 12th Grade
10 questions
Программирование алгоритма 8 класс
Quiz
•
1st - 10th Grade
14 questions
BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ
Quiz
•
6th Grade - University
11 questions
Câu hỏi ôn tập HKII_Tin học 6
Quiz
•
8th Grade - Professio...
10 questions
Python Alternating Turns
Quiz
•
7th - 12th Grade
10 questions
ICT SKILLS
Quiz
•
9th - 10th 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
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade