
Câu hỏi lập trình Python
Quiz
•
Mathematics
•
University
•
Medium
Anh Do Hoang Hong
Used 3+ times
FREE Resource
Enhance your content
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Đoạn chương trình dưới đây cho ra kết quả nào khi người dùng nhập vào số 2? x = float(input("Nhập số: ")) x = x**3 print(x)
2
2.0
8
8.0
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Đoạn chương trình dưới đây khi thực thi sẽ ra kết quả nào, khi người dùng nhập vào -4 (âm 4)? x = input("Nhập số: ") if (x % 2 == 0): print("Số chẵn") else: print("Số lẻ")
Số chẵn
Số lẻ
Không hiển thị
Lỗi chương trình
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Đoạn chương trình dưới đây khi thực thi sẽ ra kết quả nào? x = 2004 if (((x %100 == 0) and (x%4==0)) or (x%400==0)): print("Năm nhuận") else: print("Năm không nhuận")
Năm nhuận
Năm không nhuận
Lỗi chương trình
Không hiển thị màn hình
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Đoạn mã dưới đây hiển thị kết quả như thế nào? x = 10 while (x <= 10): Print (x)
10
Không hiển thị và kết thúc chương trình
Hiển thị 10 vô tận
Lỗi chương trình
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Câu lệnh nào dưới đây dùng để gán giá trị chuỗi You are number one và biến comment?
comment = "You are number one"
comment = You are number one
str(comment, You are number one)
str(comment, "You are number one")
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Đoạn mã dưới đây sẽ hiển thị như thế nào? print(int(9.8))
9.8
9
9.0
Không hiển thị
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Đoạn mã dưới đây sẽ hiển thị như thế nào? X = 6 Y = 3 print(type(X > Y))
true
false
<class,bool>
Lỗi chương trình
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
20 questions
PHƯƠNG TRÌNH ĐƯỜNG THẲNG
Quiz
•
10th Grade - University
20 questions
TUAN HUNG
Quiz
•
University
19 questions
Toán 6
Quiz
•
6th Grade - University
15 questions
ÔN TIN GK 2
Quiz
•
University
20 questions
Kế hoạch giáo dục - dạy học môn Toán
Quiz
•
University
25 questions
Đề Thi Thử Timo Khối 2.1
Quiz
•
2nd Grade - University
20 questions
CÔNG NGHỆ 10 (2021- 2022)
Quiz
•
University
16 questions
Ôn Tập Mệnh Đề
Quiz
•
10th Grade - University
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
