Logo
แผนที่ที่สร้างขึ้นเฉพาะสำหรับ Pro Plan ควิซ
ควิซถูกล็อกเนื่องจาก แผน PRO หมดอายุ
thubnail
สนามสายรุ้ง
เรียงลำดับ
อื่น ๆ

Variables

Chanathip Sawa
25
0
ปัญหาที่เพิ่มเข้ามา (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