Constants and Variables Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

How can data values be stored?

A

As constants or variables

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

Constant

A

Assigned when program was being coded for, fixed.
e.g. age = 40

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

Variable

A

Can change its value based in user inputs

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