Вы находитесь на странице: 1из 1

iGCSE Data Types

Learning Objectives
By the end of this lesson you will be able to:
Identify different data types
Select appropriate data types for a given set of data

1. Which of the following can be stored as LOGICAL/BOOLEAN


data and WHY?
Field Name

Example
Data
19/07/196
5

Boolean
or not?

Reason

No

Date

Date of birth

Door status

Open

Yes

Number of
staples

34

No

Has 4 legs

Yes

Yes

Because it can only be


open+closed
Because its a whole
number
Yes or No

2. Select a data type and explain why youve chosen it for each
field in the table below.
Field Name

Example
Data

Data Type

Reason

Title

Mr/Mrs

Alphanume
ric

No combination of words
or letters

Phone Number

0121 222
9999

Alphanume
ric

Combination off symbols


and letter

Gender

Boolean

Male or female

Date of Birth

01/01/190
0

Date

There is only one thing,


date

Country

Germany

Alphanume
ric

3. Explain the advantages of storing a yes/no question as


BOOLEAN instead of ALPHANUMERIC.
Because Boolean needs to have two values when alphanumeric is a
combination of letter/numbers So we can analyse data accurately.

4. Explain why there is a need to have more than one format


available for storing the date.
countrys store the data in different ways (MM/DD/YY)

Вам также может понравиться