You should be able to:

  • define the terms variable and constant as used in an imperative language
  • use variables and constants
  • describe the data types integer, real, Boolean, character and string

Integer = Whole Number e.g. 1, 2, 121 etc

Real = Decimal Number e.g. 2.1, 3.5, 6.8 etc (Also known as Single and Float)

Boolean = True or False

Character = Single character e.g. A, b, C, e

String = Used to store text or a combination of text and numbers that are not going to have calculations performed on them e.g. “hello world” or “ch2105”

  • select and justify appropriate data types for a given program
  • perform common operations on numeric and Boolean data
  • use one-dimensional arrays.

An array can be defined as:

‘A data structure where all the data is stored and defined under one variable name. Each individual variable is given an index by which it can be referred within the array. ‘

Picture2