2.2: Data Types
What are the different data types?
When programming, variables should be given appropriate data types.
A single character, such as a letter, number or punctuation symbol.
A sequence of characters, including letters, numbers and punctuation.
Ice Age 4
A whole number.
A decimal number.
An answer that only has two possible values.
True / False
Yes / No
0 / 1
Telephone numbers are always stored as a string, not an integer.
Be careful with punctuation.
32.10 is a real but £32.10 is a string.
Understand that data types may be temporarily changed through casting, and where this may be useful
2.2 - Data Types:
1. State . 
2. State which data type is most suitable for the following variables:
a. Age 
b. Surname 
c. Height (in metres) 
d. First Initial 
e. Phone number 
f. Right-Handed? 
3. Explain what casting is and give a programming situation in which it would be used. 
This page is still being updated.