
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
hai đường thẳng vuông góc
Quiz
•
4th Grade - University
20 questions
Thử thách Toán Tuần 11
Quiz
•
5th Grade - University
20 questions
Systems of Linear Inequalities with Word Problems
Quiz
•
9th Grade - University
20 questions
Toán 12 - Cực trị
Quiz
•
University
20 questions
Đại hội
Quiz
•
University
17 questions
EES CUA 3 Study Guide
Quiz
•
5th Grade - University
16 questions
Vẽ kỹ thuật (Mở đầu)
Quiz
•
University
15 questions
Sinh hoạt lớp Tuần 7
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
Discover more resources for Mathematics
20 questions
Ch. 7 Quadrilateral Quiz Review
Quiz
•
KG - University
7 questions
Introduction to Fractions
Interactive video
•
1st Grade - University
18 questions
Exam Review
Quiz
•
University
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
25 questions
Math College Placement Practice #2
Quiz
•
11th Grade - University
10 questions
One Step Equations Multiply and Divide
Quiz
•
University