Data Types Flashcards
0
Q
Why do we identify some standard types?
A
So that a program can reserve appropriate locations for the data.
1
Q
What is a variable?
A
A named location where we can store data.
2
Q
What is an integer?
A
Whole number values: positive or negative.
3
Q
What is a real?
A
Decimal values.
4
Q
What is a boolean?
A
It stores two values: true or false, on or off etc.
5
Q
What is a string?
A
Stores a string of characters.
6
Q
What are declarations?
A
Things are declared by giving them a name and a type.