Logo
ควิซที่สร้างด้วยแผนที่พรีเมียม
ควิซถูกล็อกเนื่องจาก แผน PRO หมดอายุ
thubnail
สนามสายรุ้ง
เรียงลำดับ
Variables
Chanathip Sawa
25
ปัญหาที่เพิ่มเข้ามา (20/ 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