0% found this document useful (0 votes)
55 views1 page

Field Name Example Data Boolean or Not? Reason

This document discusses different data types used to store information. It identifies logical/boolean, numeric, alphanumeric, and date as common data types. Examples are provided to illustrate when each data type would be appropriate. Boolean is best for fields that can only have two possible values, like yes/no questions. Numeric is used for numbers, alphanumeric for fields combining letters and numbers, and date to store calendar dates. Having multiple date formats allows storing dates in different styles to suit various needs.

Uploaded by

api-267268597
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)
55 views1 page

Field Name Example Data Boolean or Not? Reason

This document discusses different data types used to store information. It identifies logical/boolean, numeric, alphanumeric, and date as common data types. Examples are provided to illustrate when each data type would be appropriate. Boolean is best for fields that can only have two possible values, like yes/no questions. Numeric is used for numbers, alphanumeric for fields combining letters and numbers, and date to store calendar dates. Having multiple date formats allows storing dates in different styles to suit various needs.

Uploaded by

api-267268597
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/ 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?
Not

Reason
Has more than two
available uses
Because the door can be
closed

Date of birth

Door status

Open

Boolean

Number of
staples

34

Not

It has more than two uses

Has 4 legs

Yes

Boolean

Yes and no have two


different uses

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

Alphanume
ric

Uses numbers

Gender

Boolean

Can only have female or


male

Date of Birth

01/01/190
0

Date

Keeps(Stores)data as
dates

Country

Germany

Reason

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


BOOLEAN instead of ALPHANUMERIC.
Because Boolean only have two answers
____________________________________________________________________________________
____________________________________________________________________________________

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


available for storing the date.
____________________________________________________________________________________
to store different types of answers
____________________________________________________________________________________

You might also like