CỦNG CỐ KIẾN THỨC LỆNH VÀO RA TRONG PYTHON

Quiz
•
Computers
•
10th Grade
•
Medium
Thanh Đào
Used 2+ times
FREE Resource
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?
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?
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)
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Bài 29. Nhận biết lỗi chương trình

Quiz
•
9th - 12th Grade
8 questions
10.1_KIỂM TRA THƯỜNG XUYÊN 16/2/23

Quiz
•
10th Grade
10 questions
ÔN TẬP BÀI 16 - K10

Quiz
•
10th Grade - University
10 questions
Bài 23-Một số lệnh làm việc với dữ liệu danh sách

Quiz
•
10th Grade
10 questions
KIỂM TRA THƯỜNG XUYÊN KHỐI 10_HKII

Quiz
•
10th Grade
14 questions
Bài kiểm tra cuối khóa CS1

Quiz
•
3rd - 12th Grade
15 questions
T8 - ÔN TẬP CUỐI HK2 (22-23) (1)

Quiz
•
9th - 12th Grade
10 questions
Tin học 10 - Bài 29

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th 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
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade