✏️ Micro-Deck 2 – Naming & Identifiers Flashcards

(6 cards)

1
Q

Identifier

A

The name a programmer gives to items like variables or functions.
Rules:
* Must start with a letter
* Can include letters, digits, and underscores
* Are case-sensitive (numCats ≠ NumCats)

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

Camel Case

A

A naming convention where words are joined together, and each word after the first is capitalized. Example: numApples.

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

Underscore Separated

A

A naming convention where multiple words in an identifier are separated by underscores.
Example: people_on_bus.

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

Naming Conventions (for Identifiers)

A

Style guidelines for naming variables and functions.
Common styles:
* Camel Case: numApples
* Underscore Separated: num_apples

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

Keyword (Reserved Word)

A

Words that are part of the programming language and cannot be used as identifiers.
Examples: integer, Get, Put.

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

Reserved Word

A

(See: Keyword)

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