Variables Flashcards

1
Q

employeeNumber

Is this a proper variable name?

A

employeeNumber

Yes, the name of this variable is in standard camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

EmployeeNumber

Is this a proper variable name?

A

EmployeeNumber

No, this is NOT a variable. The name is not camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

USER_NAME

Is this a proper variable name?

A

USER_NAME

No, this is NOT a variable name. It’s a constant.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

userName

Is this a proper variable name?

A

userName

Yes, the name of this variable is in standard camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

SalaryType

Is this a proper variable name?

A

SalaryType

No, this is NOT a variable. The name is not camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

gender

Is this a proper variable name?

A

gender

Yes, the name of this variable is in standard camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

CEOname

Is this a proper variable name?

A

CEOname

No, this is NOT a variable. The name is not camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

employee_number

Is this a proper variable name?

A

employee_number

No, this is NOT a variable. The name is not camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

bugsBunny

Is this a proper variable name?

A

bugsBunny

Yes, the name of this variable is in standard camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

companyNAME

Is this a proper variable name?

A

companyNAME

No, this is NOT a variable. The name is not camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Hogwarts

Is this a proper variable name?

A

Hogwarts

No, this is NOT a variable. The name is not camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

collegeName

Is this a proper variable name?

A

collegeName

Yes, the name of this variable is in standard camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

myschoolname

Is this a proper variable name?

A

myschoolname

No, this is NOT a variable. The name is not camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

playerName

Is this a proper variable name?

A

playerName

Yes, the name of this variable is in standard camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

myName

Is this a proper variable name?

A

myName

Yes, the name of this variable is in standard camelCase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly