
Câu hỏi trắc nghiệm Python
Authored by Quyên Trần
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
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong ngôn ngữ Python, lệnh nào dùng để hiển thị dữ liệu ra màn hình?
output()
display()
print()
write()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn lệnh sau là gì? print("Hello", "world!")
Hello world!
Hello
world!
Hello, world!
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cho đoạn mã sau: name = input("Your name: ") print("Hello", name) Lệnh input(...) thực hiện chức năng gì?
Hiển thị chuỗi "Hello" ra màn hình.
Gán giá trị mặc định cho biến name.
Nhập dữ liệu từ người dùng và gán vào biến name.
In tên người dùng ra màn hình.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, khi nào cần dùng hàm int() kết hợp với input()?
Khi muốn in kết quả ra màn hình.
Khi cần nhập chuỗi ký tự.
Khi cần nhập và xử lý dữ liệu dạng số nguyên.
Khi muốn hiển thị số nguyên.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Đâu là lý do chính khiến đoạn mã sau bị lỗi? x = input("Nhập số: ") print(x + 10)
input không hoạt động trong Python.
Không thể cộng chuỗi với số nguyên.
Thiếu dấu ngoặc kép.
print không in được số.
6.
MULTIPLE CHOICE QUESTION
45 sec • 2 pts
Đoạn mã nào dưới đây giúp nhập 2 số thực và tính trung bình cộng của chúng?
a = input("a = ") b = input("b = ") print((a + b)/2)
a = float(input("a = ")) b = float(input("b = ")) print((a + b)/2)
a = int(input("a = ")) b = int(input("b = ")) print(a + b / 2)
a = input() b = input() print(a + b)
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho đoạn mã: name = input("Tên của bạn là gì? ") print("Chào", name) Nếu người dùng nhập 'Lan', kết quả là gì?
Tên của bạn là gì? Lan
Chào Lan
Hello Lan
Lan
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
15 questions
# REVIEW 1 DATA TYPES
Quiz
•
10th Grade
15 questions
Data Security Worksheet
Quiz
•
10th Grade - University
10 questions
Logika & Algoritma
Quiz
•
10th Grade
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
10 questions
Ứng xử trong môi trường số
Quiz
•
10th Grade
10 questions
A level Computer Science In-fix post-fix Reverse polish
Quiz
•
10th Grade - University
15 questions
LATIHAN SOAL PEMROGRAMAN
Quiz
•
9th Grade - University
10 questions
SHORTCUT PADA KEYBOARD
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
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
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade