Identifiers Flashcards

(3 cards)

1
Q

What is a constant?

A

A constant is an identifier whose value is fixed and not changeable once defined. It represents a value that remains the same throughout the execution of a program.

Example: CONSTANT PI = 3.14159

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

What is variable?

A

A variable is an identifier used for a storage location in memory that can hold different values during the execution of a program. Variables are mutable, meaning their value can be changed.

IntCount = 0

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

What is an array?

A

An array is an identifier for a collection of items, where each item is of the same data type. The items in an array are stored in contiguous memory locations and can be accessed using an index.

IntNumbers[5] = {1,2,3,4,5} is an array of integer storing 5 values.

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