Data Structures and Data Types Flashcards

1
Q

variable definition + possible scope

A

value in a program that can change
scope = global or local

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

constant defintion

A

value that remains the same throughout the program

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

lifetime of global varibale

A

begins and ceases to exist when program starts and ends

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

lifetime of a local variable

A

begins to exist when it is defined in a subroutine, ceases to exist when subroutine ends

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