
Kiến thức về Biến trong Python
Authored by Phạm Tú
Information Technology (IT)
11th Grade
Used 1+ 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
30 sec • 1 pt
Tên biến nào sau đây là hợp lệ trong Python?
1variable
variable_1
variable-1
variable!
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Tên biến nào sau đây không hợp lệ trong Python?
myVar
_variable
import
variable123
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Trong Python, biến nào sau đây được sử dụng để lưu giá trị số nguyên?
x = 3.14
y = '100'
z = 42
w = [1, 2, 3]
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn mã sau là gì?
x = 10
y = 20
x, y = y, x
print(x, y)
10 20
20 10
20 20
10 10
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Tên biến nào dưới đây sử dụng đúng quy tắc đặt tên biến trong Python?
my-variable
my_variable
my variable
myVariable!
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Tên biến nào sau đây là không hợp lệ?
_var
__init__
9lives
var_name
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Kết quả của đoạn mã sau là gì?
x = 5
x = x + 10
print(x)
5
10
15
50
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?