Logical or Boolean Data stored in Boolean form can only be one of two available values. Think of a...
-
Upload
beatrix-palmer -
Category
Documents
-
view
214 -
download
0
Transcript of Logical or Boolean Data stored in Boolean form can only be one of two available values. Think of a...
![Page 1: Logical or Boolean Data stored in Boolean form can only be one of two available values. Think of a light switch – it’s on or off. Examples include: YES.](https://reader035.fdocuments.in/reader035/viewer/2022080905/56649ebe5503460f94bc8e3e/html5/thumbnails/1.jpg)
Logical or Boolean
• Data stored in Boolean form can only be one of two available values.
• Think of a light switch – it’s on or off.
• Examples include:
YES TRUE 1
FALSENO 0
M
F
![Page 2: Logical or Boolean Data stored in Boolean form can only be one of two available values. Think of a light switch – it’s on or off. Examples include: YES.](https://reader035.fdocuments.in/reader035/viewer/2022080905/56649ebe5503460f94bc8e3e/html5/thumbnails/2.jpg)
Alphanumeric
• Alphanumeric data is any combination of letters, numbers and symbols (@#¬|\/>< etc.)
• This data type is also known as a string or text.
• Examples:
£4987 is a lot to pay for a badger
I like fish
DL61 ABC
@*!#
![Page 3: Logical or Boolean Data stored in Boolean form can only be one of two available values. Think of a light switch – it’s on or off. Examples include: YES.](https://reader035.fdocuments.in/reader035/viewer/2022080905/56649ebe5503460f94bc8e3e/html5/thumbnails/3.jpg)
Alphanumeric Continued…
• Alphanumeric or text/string is used to hold telephone numbers.
• In a computer, telephone numbers are stored as text.
• This is because the telephone number contains a leading zero and spaces.
![Page 4: Logical or Boolean Data stored in Boolean form can only be one of two available values. Think of a light switch – it’s on or off. Examples include: YES.](https://reader035.fdocuments.in/reader035/viewer/2022080905/56649ebe5503460f94bc8e3e/html5/thumbnails/4.jpg)
Real
• A real number is one which has decimal places.
• Examples:
3.1417512.418.01
![Page 5: Logical or Boolean Data stored in Boolean form can only be one of two available values. Think of a light switch – it’s on or off. Examples include: YES.](https://reader035.fdocuments.in/reader035/viewer/2022080905/56649ebe5503460f94bc8e3e/html5/thumbnails/5.jpg)
Integer
• Integer numbers are whole numbers, no bits, no decimal places.
• Examples:
5
999999
-54
![Page 6: Logical or Boolean Data stored in Boolean form can only be one of two available values. Think of a light switch – it’s on or off. Examples include: YES.](https://reader035.fdocuments.in/reader035/viewer/2022080905/56649ebe5503460f94bc8e3e/html5/thumbnails/6.jpg)
Date• Dates can be stored in many different forms.
• In the UK we write the date in the form DD/MM/YYYY e.g. 31/12/2014.
• In the US, they use the form MM/DD/YYYY e.g. 12/31/2014.
• Examples:15/08/1999 2009/11/30 12/31/1999
![Page 7: Logical or Boolean Data stored in Boolean form can only be one of two available values. Think of a light switch – it’s on or off. Examples include: YES.](https://reader035.fdocuments.in/reader035/viewer/2022080905/56649ebe5503460f94bc8e3e/html5/thumbnails/7.jpg)
Other Data Types
• Currency – Software will automatically add £ or $ to data and include decimal places. E.g. £22.99.
• Image – Some databases will allow an image to be stored, for example a photo of a criminal and their fingerprints on a crime database.