Delphi Coding Cookbook

Delphi Coding Cookbook cover

A complete Delphi reference for Grade 10–12 Information Technology learners, and for the teachers who teach them. It assumes no programming experience: Chapter 1 starts from the very first idea, and the last chapters cover what Grade 12 learners need for the final practical exam and the PAT.

Book details

  • Pages: 201
  • Chapters: 27
  • Level: Grade 10–12
  • Curriculum: CAPS and IEB
  • Formats: print-ready PDF, EPUB and digital PDF

Who it is for

The book is written for both South African exam bodies that use Delphi:

  • CAPS (DBE NSC): Delphi is the only programming language. Paper 1 is the practical exam in Delphi; Paper 2 is the theory exam, which includes reading, tracing and designing algorithms.
  • IEB: schools choose Delphi, Java or C#. The book covers the IEB console programs, SQL run directly in the database, and the extra object-oriented programming the IEB examines.

Where CAPS and the IEB differ, the book says so in the section concerned, so learners in either system can use every chapter.

What the book covers

27 chapters in seven parts and a glossary, covering everything in the Grade 12 exam guidelines for the practical paper.

PartChaptersWhat it coversMost useful for
1. The basics1–14Getting started, data types, variables, components, scope, conversions, maths, strings, operators, random numbers, loops, validation and decisionsEveryone
2. Arrays15–16One- and two-dimensional arrays, searching and sortingPaper 1
3. Text files and databases17–19Reading and writing text files, ADO database tables and SQLPaper 1 and the PAT
4. Dates and object-oriented programming20–21Dates and times, classes and objectsPaper 1 and the PAT
5. Extras22–23Comments, message boxes, list boxes, your own procedures and functions, debugging and escape sequencesEvery program
6. Algorithms and solution development24–25Standard algorithms; IPO tables, pseudocode, flowcharts, trace tables, UML diagrams and test dataPaper 1, Paper 2 and the PAT
7. IEB extension26–27Console programs and advanced OOPIEB learners

The Glossary explains every technical term in plain language, with the chapter where it is explained in full.

How each chapter works

  1. Introduction: what the topic is and why it matters.
  2. Numbered sections: one idea at a time, with code to type in and run, and the output it prints.
  3. Worked examples: small, complete programs that bring the ideas together.
  4. Common mistakes: the errors learners make most often, what goes wrong and how to fix it.
  5. Check yourself: short questions with the answers straight after them.

The book also includes a guide for teachers on planning, classroom activities and practical work, a guide for learners on study habits and exam preparation, and suggested routes through the book.

Software

Embarcadero Delphi (RAD Studio or the free Delphi Community Edition) with VCL forms, and Microsoft Access databases connected through ADO, as in the NSC exams. Chapter 1 shows how to find your way around Delphi and build your first program. Variable and component names use the prefixes that South African markers expect.

Practice data pack

  • Text files in the Name#Grade#Mark format and others for the first text-file examples
  • A JSON file for the advanced OOP chapter
  • A spreadsheet with one sheet per database table, ready to import into Access

Your school’s edition

Your school badge goes on the cover, and you receive the Delphi Coding Cookbook as a print-ready PDF, an EPUB and a digital PDF, with the practice data pack. Your licence lets you print, share and resell the book to your own learners. See how licensing works.

Scroll to top