0% found this document useful (0 votes)
60 views2 pages

Field Name Example Data Boolean or Not? Reason

This document discusses data types in computing. It provides examples of different types of data and which data type is most appropriate. Boolean and alphanumeric data types are discussed as well as examples of when each would be used such as for yes/no questions or storing phone numbers. The document also explains why multiple date formats are needed to account for international diversity in how dates are written.

Uploaded by

api-266862390
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views2 pages

Field Name Example Data Boolean or Not? Reason

This document discusses data types in computing. It provides examples of different types of data and which data type is most appropriate. Boolean and alphanumeric data types are discussed as well as examples of when each would be used such as for yes/no questions or storing phone numbers. The document also explains why multiple date formats are needed to account for international diversity in how dates are written.

Uploaded by

api-266862390
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

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?

Date of birth

NO

Door status

Open

Yes

Number of
staples

34

NO

Has 4 legs

Yes

Yes

Reason
Boolean can be only 1 of
two options, DOB is not.
Is Boolean because its
one of two things a door
can be either open or
closed.
Boolean can be only 1 of
two options, number of
staples is not.
Is Boolean because its
one of two things a chair
either has 4 legs or it
doesnt.

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

Example
Data

Data Type

Title

Mr/Mrs

Boolean

Phone
Number

0121 222
9999

Alphanumeric
/Text

Gender

Boolean

Date of Birth

01/01/190
0

Date

Country

Germany

Alphanumeric
/Text

Reason
Because it is one of two
things.
In a computer they are
stored as text because
telephone numbers have
a zero at the start
(leading) and spaces.
Because its one of two
things you are either
M/F.
It is written in one of the
many data forms so
DD/MM/YYYY
Because its a string of
text with multiple
options.

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


BOOLEAN instead of ALPHANUMERIC.

iGCSE Data Types


Boolean is easy to answer because its either one option or the other
whereas alphanumeric could be anything because its a string of text that
can include anything from: numbers to letters to symbols.
Alphanumeric is more complex compared to Boolean.

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


available for storing the date.
There needs to be multiple formats available for storing a date
because there are multiple ways to write it as different
countries write it different ways. It allows for diversity
between the way different countries write.

You might also like