Variables and Constants Flashcards
employeeNumber
Is this a proper variable name?
employeeNumber
Yes, the name of this variable is in standard camelCase.
EmployeeNumber
Is this a proper variable name?
EmployeeNumber
No, this is NOT a variable. The name is not camelCase.
USER_NAME
Is this a proper variable name?
USER_NAME
No, this is NOT a variable name. It’s a constant.
userName
Is this a proper variable name?
userName
Yes, the name of this variable is in standard camelCase.
SalaryType
Is this a proper variable name?
SalaryType
No, this is NOT a variable. The name is not camelCase.
CEOname
Is this a proper variable name?
CEOname
No, this is NOT a variable. The name is not camelCase.
employee_number
Is this a proper variable name?
employee_number
No, this is NOT a variable. The name is not camelCase.
companyNAME
Is this a proper variable name?
companyNAME
No, this is NOT a variable. The name is not camelCase.
collegeName
Is this a proper variable name?
collegeName
Yes, the name of this variable is in standard camelCase.
myschoolname
Is this a proper variable name?
myschoolname
No, this is NOT a variable. The name is not camelCase.
USER_NAME
Is this the name of a constant?
USER_NAME
Yes, this is a constant. It is named using the UPPERCASE naming convention.
nameOfPlayer
Is this the name of a constant?
nameOfPlayer
No, this is a variable, named using the camelCase naming convention.
numberOfOrcs
Is this the name of a constant?
No. This is a variable, named using the camelCase naming convention.
NUMBER_OF_EMPLOYEES
Is this the name of a constant?
NUMBER_OF_EMPLOYEES
Yes, this is a constant. It is named using the UPPERCASE naming convention.
PLAYER_NAME
Is this the name of a constant?
PLAYER_NAME
Yes, this is a constant. It is named using the UPPERCASE naming convention.