Bee Learnt Logo
Bee Learnt
FeatureBrowse allPricingAboutSupport
Bee Learnt

Bee Learnt gives South African Grade 10–12 learners a cleaner route from classwork to NSC readiness — with parents and tutors supporting the journey.

WhatsApp: 0685537312

Support email: admin@beelearnt.co.za

Learn
FeaturesBrowse subjectsPricing
Get started
Create accountSign inContact support
Company
About Bee LearntAdvertisingContact
Legal
Privacy policyTerms of serviceCookie policyAd choices

© 2026 Bee Learnt. All rights reserved.

CAPS aligned · Grades 10–12 · NSC ready

Privacy choices

Allow analytics and advertising services to help us understand site usage and measure campaigns.

Privacy Policy
  1. Subjects
  2. /
  3. Information Technology
  4. /
  5. Information Technology Grade 10 — Practical
  6. /
  7. Introduction to Programming (Delphi)
  8. /
  9. Variables and data types
Grade 10 · Practical

Variables and data types

Introduction to Programming (Delphi) · about 4 min

Educational overview for Variables and data typesVisual overview: Variables and data types
1 MIN READ
2 study sections · pause after each one and recall the key idea

A variable is a named storage location that holds a value of a particular type. Choosing the right type keeps data correct and memory efficient.

Key points
  • Declare before use: `var age : integer;` then assign with `age := 16;` (`:=` is assignment, `=` is comparison).
  • Core types: integer (whole numbers), real (decimals), string (text), boolean (True/False), char (one character).
  • Match the type to the data: a price is real, a quantity is integer, a name is string, a "paid?" flag is boolean.
  • Constants (`const VAT = 0.15;`) name fixed values so the code reads clearly and changes in one place.
Key terms
  • Variable — a named, changeable storage location of a given type.
  • Data type — the kind of value a variable holds and the operations allowed on it.
  • Assignment — giving a variable a value with `:=`.
EXAM TIP

pick and justify a data type for each input on a form — and never store a number you'll calculate with as a string.


Previous

The Delphi IDE and components

Next

Selection (if statements)