teach-ict.com logo

THE education site for computer science and ICT

1. Introduction

Computer programming involves reading data, making changes, and then writing the new data. While a program is running, it stores this data in the computer's memory as a "variable".

You can store any type of data as a variable. And there are many types, including:

  • Characters
  • Strings
  • Integers
  • Graphical objects
  • Real (N5 year 2 only)
  • Booleans (N5 year 2 only)
  • Arrays and lists (N5 year 2 only)

In this section we will describe what each of these types of data are, and how they are stored as variables.

A variable is a piece of data that a program is keeping track of. Computer programs store variables in memory.