0% found this document useful (0 votes)
20 views3 pages

G9 - Block 2 - Week 1 - WS2 - Data Types

This document discusses data types in Visual Basic. It outlines three major data types - character, numeric, and miscellaneous. Character data types include strings and characters. Numeric types are broken into integer types like byte, short, and long, and non-integer or decimal types like double and single. Miscellaneous types don't fall into the other categories, and include objects, dates, and booleans. A table shows the available data types in Visual Basic with their memory size and value ranges.

Uploaded by

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

G9 - Block 2 - Week 1 - WS2 - Data Types

This document discusses data types in Visual Basic. It outlines three major data types - character, numeric, and miscellaneous. Character data types include strings and characters. Numeric types are broken into integer types like byte, short, and long, and non-integer or decimal types like double and single. Miscellaneous types don't fall into the other categories, and include objects, dates, and booleans. A table shows the available data types in Visual Basic with their memory size and value ranges.

Uploaded by

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

Subject Grade Date Block week Unit/Lesson/Topic Study sheet

ICT 9 2 1 Data types 2 out of 16


Recall and use common data types, including integer, real, Boolean,
Learning Outcome
Character, string
/Objective:
• Recall common data types
Student Name: ………………………………………………………………………………………………………………………. Class 9

Contents
1. Visual Basic Data Types

Prepared by P a g e |1
Subject Grade Date Block week Unit/Lesson/Topic Study sheet
ICT 9 2 1 Data types 1 out of 16
Objective: • Recall common data types
Student Name: ………………………………………………………………………………………………………………………. Class 9

Visual Basic Data Types


There are many types of data that we come across in our daily life. For example,
we need to handle data such as names, addresses, money, date, stock quotes,
statistics and more every day.
Similarly, in Visual Basic
Visual Basic classifies the information mentioned above into 3 major data types,
they are the character data types, the numeric data types and the non-numeric
data types.

[1] Character Data Types: (declared by: String – Char).


[2] Numeric Data Types:
▪ Integer Numeric Types (declared by: Byte- Short – Integer -
Long).
▪ Non-Integer Numeric Types (decimal) (declared by: Double-
Single – Decimal).
[3] Miscellaneous Data Types: are those data that do not fall under
the Numeric or the character types (such as: Object – Date –
Boolean).

Prepared by P a g e |2
Subject Grade Date Block week Unit/Lesson/Topic Study sheet
ICT 9 2 1 Data types 2 out of 16
Objective: • Recall common data types
Student Name: ………………………………………………………………………………………………………………………. Class 9

The following table shows the available data types in a visual basic
programming language with memory size and range of values.
Memory
Data Type Value Range Example
used
Char (single character) 2 bytes A single character “D”

String (A collection of 4 bytes (2 0 to approximately 2 billion


“Dog”
characters) per char) Unicode characters
Byte 1 byte 0 to 255 27, 254
Short 2 bytes -32,768 to 32,767 27000, -12365
Integer (a whole
4 bytes -2,147,483,648 to 2,147,483,647 200 ,10 ,-70 , 80
number)
-9,223,372,036,854,775,808 -35455 ,
Long (long integer) 8 bytes
to 9,223,372,036,854,775,807 5678943
Single - floating point
number (7 significant 4 bytes -3.402823E38 to +3.402823E38 27.5, -115.78
digits)
Double - Long Single -123.78129024,
8 bytes
(15 significant digits) 12.876097
Decimal 16 bytes 27 billion
Boolen 2 bytes True or False True
12:23:00 on
use with date/time value from
Date 8 byte December 25,
1/1/100 to 12/31/9999.
2015
Any object reference such as
Object 4 bytes
Word document

Prepared by P a g e |3

You might also like