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
15 questions
Tin 7-CHU DE 1-BAI 1+2

Quiz
•
1st Grade - Professio...
14 questions
Tin 10 - Bài 4

Quiz
•
10th Grade
10 questions
MÔI TRƯỜNG LẬP TRÌNH PYTHON

Quiz
•
10th Grade
15 questions
Ôn tập KTGK. Bài 18. Các lệnh vào ra đơn giản

Quiz
•
10th Grade
10 questions
Câu lệnh rẽ nhánh

Quiz
•
10th Grade
15 questions
Mảng 1 chiều

Quiz
•
8th - 11th Grade
15 questions
KTGK. Bài 16. NNLT trình ngôn ngữ và python

Quiz
•
10th Grade
15 questions
Ôn tập phần mềm soạn thảo văn bản Word

Quiz
•
3rd Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade