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

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