Logo
무지개 운동장
quiz thumbnail
เรียงลำดับ

Variables

Chanathip Sawa

25

ควิซที่สร้างด้วยแผนที่พรีเมียม

20 ข้อ

แสดงคำตอบ

ไม่อนุญาตให้ตอบคำตอบที่ไม่ถูกต้อง

ซ่อนคำตอบ

public quiz

# 1ปรนัย
Which of the following is a valid variable name?

คำตอบทั้งหมดถูกซ่อนอยู่ในขณะนี้

1st_place
firstPlace
first-Place
first place
# 2ปรนัย
What is the difference between 'age', 'Age', and 'AGE' in Python?
They are the same variable name.
They are different variable names.
They are reserved keywords.
They are not valid variable names.
# 3ปรนัย
Which of the following is NOT allowed in a variable name?
number888
totalVolume
3rdPlace
age
# 4ปรนัย
Why is 'my variable' an invalid Python variable name?
It contains a space.
It starts with an underscore.
It contains a hyphen (-).
It is too long.
# 5ปรนัย
Can 'x' and 'X' be used as two different variable names in Python?
Yes
No
# 6ปรนัย
Which of the following is a more descriptive variable name for storing a user's age?
x
age
&a
number
# 7ปรนัย
Which character can be used to start a variable name?
A letter
A number
A hyphen (-)
A space
# 8ปรนัย
Why are variable names like 'TotalVolume' preferred over 'tv'?
They are shorter.
They are more descriptive.
They are faster.
They are reserved keywords.
# 9ปรนัย
What does it mean for variable names to be case-sensitive?
You cannot use uppercase letters.
Capitalization matters.
You must use lowercase letters.
All letters must be uppercase.
# 10ปรนัย
Which of the following is a valid variable name?
fname
first name
first-name
1st_name
# 11ปรนัย
Why is 'my-variable' an invalid Python variable name?
It contains a space.
It starts with an underscore.
It contains a hyphen (-).
It is too long.
# 12ปรนัย
Which of the following is a valid variable name?
1variable
VariableName
variable-name
variable name
# 13ปรนัย
Which of these is NOT allowed in a variable name?
AGE
age3
myAge
my-age
# 14ปรนัย
Which of the following is a valid variable name for storing a car's name?
car name
CarName
car-name
car Name
# 15ปรนัย
Can a variable name start with a number?
Yes
No
Sometimes
Only if it's a small number
# 16ปรนัย
Which variable name is invalid?
height
age2
3volume
length
# 17ปรนัย
What is true about variable names?
They can contain spaces
They are case-sensitive
They must start with a number
They can contain special characters like $
# 18ปรนัย
Which of these is a correctly named variable?
total#sum
car-name
Area
sum total
# 19ปรนัย
Which of these is an invalid variable name?
myVariable
variable1
my variable
_private
# 20ปรนัย
Which of the following names is not recommended for a variable?
age
x
TotalSum
1variable
การแชร์ Google Classroom

ควิซนี้สร้างด้วยแผนที่พรีเมียม ไม่สามารถเข้าถึงได้เนื่องจากแพลนหมดอายุ