✏️ Micro-Deck 2 – Naming & Identifiers (reverse) Flashcards

(5 cards)

1
Q

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)

A

Identifier

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

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

A

Camel Case

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

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

A

Underscore Separated

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

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

A

Naming Conventions (for Identifiers)

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

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

A

Keyword (Reserved Word)

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