
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
Struttura computer (1DS)
Quiz
•
10th Grade
14 questions
ITGS - IT Systems (Hardware)
Quiz
•
10th - 12th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
10 questions
TIN HỌC 10 - BÀI 20
Quiz
•
10th Grade
10 questions
Sains Komputer Tingkatan 4 - 3.1.1 Mengkaji keperluan intera
Quiz
•
1st Grade - Professio...
10 questions
Tin10CĐA Bài2: Sự ưu việt của m.tính và những th.tựu của tin học
Quiz
•
10th Grade
10 questions
Python with DataScience
Quiz
•
7th Grade - University
14 questions
Kiểm tra kiến thức tìm kiếm thông tin
Quiz
•
5th Grade - University
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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