
Câu hỏi lập trình Python
Authored by Anh Do Hoang Hong
Mathematics
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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
20 questions
FSCHOOLERS TRANH TÀI
Quiz
•
3rd Grade - University
15 questions
Solving Systems of Inequalities Word Problems
Quiz
•
9th Grade - University
20 questions
LUYỆN TẬP NHÓM HALOGEN
Quiz
•
10th Grade - University
19 questions
Multiplication Word Problems
Quiz
•
3rd Grade - University
16 questions
CO KHI ĐIỆN LỰC 1- CHƯƠNG 7( MÁY NÉN CÁNH DẪN)
Quiz
•
University
20 questions
Time and Work - Teacher
Quiz
•
University
20 questions
ÔN TẬP TIN 9 GIỮA KÌ 2
Quiz
•
12th Grade - University
15 questions
Ôn Tập Toán Lớp 6
Quiz
•
1st 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade