In Module 1, you learned what data and data transformation mean. You also discovered how to turn disorganised information into something more useful.
In this module, you will learn that data comes in different types and formats. Understanding these differences will help you organise and transform information correctly.
Imagine receiving a school record containing students' names, ages, examination scores, and registration dates. These pieces of information are not all the same type of data.
A data type describes the kind of information stored in a computer system or dataset.
For example, a person's name is usually stored as text, while their age is stored as a number.
Computers use data types to understand how information should be stored, displayed, and processed.
| Information | Example | Data Type |
|---|---|---|
| Student Name | David | Text |
| Age | 13 | Number |
| Examination Score | 85.5 | Decimal Number |
| Registration Date | 24 November 2026 | Date |
| Fee Paid | True | Boolean |
Text data contains letters, words, sentences, or a combination of letters and numbers.
It is commonly used to store names, addresses, descriptions, school subjects, and product information.
The student's name is Samuel Adewale. His name is text data because it contains letters.
His home city, Ibadan, is also text data.
Numerical data contains numbers. It is commonly used for counting, measuring, and performing calculations.
For example, a teacher can use numerical data to calculate students' examination scores.
Whole numbers do not contain decimal points.
Examples:
Decimal numbers contain a decimal point.
Examples:
Imagine that a student scores 70 marks in Mathematics and 80 marks in English.
Total score = 70 + 80 = 150
Because these values are numbers, the computer can add them together.
Date and time data help us record when something happened or when an activity will take place.
| Subject | Examination Date | Time |
|---|---|---|
| Mathematics | 24 November 2026 | 9:00 AM |
| English | 25 November 2026 | 10:30 AM |
| Basic Science | 26 November 2026 | 12:00 PM |
The examination dates and times help students know when to prepare for each subject.
Boolean data is a special data type that has only two possible values:
It is used when a computer needs to know whether something is correct, available, completed, active, or not.
| Student | School Fees Paid? |
|---|---|
| David | True |
| Mary | False |
| Samuel | True |
True means the payment has been recorded as completed. False means it has not been recorded as completed.
When working with data, you will often see tables. A table helps us arrange information into rows and columns.
A row runs horizontally across a table. It usually contains information about one record.
A column runs vertically down a table. It usually contains the same type of information for different records.
A field is a particular category of information, such as Name, Age, or Score.
| Name | Age | Class | Score |
|---|---|---|---|
| David | 13 | JSS 2 | 85 |
| Mary | 12 | JSS 2 | 78 |
| Samuel | 14 | JSS 3 | 90 |
A data format describes how information is arranged and stored. Different applications use different formats to save and share data.
Let's look at three common formats.
CSV is a simple file format used to store information in rows and columns. Each value is separated by a comma.
CSV files are commonly used to move information between spreadsheet applications and other computer programs.
Name,Age,Class,Score David,13,JSS 2,85 Mary,12,JSS 2,78 Samuel,14,JSS 3,90
The commas separate the different fields. Each new line represents another record.
JSON is a format used to store and exchange structured data between applications.
Websites and computer programs often use JSON when they communicate with each other.
{
"name": "David",
"age": 13,
"class": "JSS 2",
"score": 85
}
The information is organised using names and values.
For example, "name" is a key and
"David" is its value.
Microsoft Excel is a spreadsheet application used to organise, calculate, and analyse information.
An Excel workbook can contain one or more worksheets. Each worksheet contains rows, columns, and cells.
| Cell A | Cell B | Cell C |
|---|---|---|
| Name | Age | Score |
| David | 13 | 85 |
| Mary | 12 | 78 |
Each box in a spreadsheet is called a cell. A cell is identified by its column letter and row number, such as A1 or B2.
| Format | How It Works | Common Use |
|---|---|---|
| CSV | Stores values separated by commas. | Sharing simple table data. |
| JSON | Stores information using keys and values. | Sharing data between applications and APIs. |
| Excel | Organises data in spreadsheet cells. | Calculations, reports, and data organisation. |
Before transforming data, you need to understand what kind of information you are working with.
Imagine that a school receives a student's age as the text value "13" instead of a number.
The computer may treat it differently from the numerical value 13. If you want to calculate the average age of students, you may need to convert the text into a number first.
A school in Ibadan has collected the following information about its students.
| Field | Value |
|---|---|
| Student Name | Grace |
| Age | 13 |
| Mathematics Score | 88.5 |
| Registration Date | 24 November 2026 |
| School Fees Paid | True |
| Phone Number | 08012345678 |
Complete these tasks:
You can complete this activity in your notebook, Microsoft Excel, or Google Sheets.
In this module, you learned that information comes in different data types and formats.
Answer all ten questions to test your understanding. Select one correct answer for each question.