One last pass through the whole course, organised the way you will be tested.
You have three years of Information Technology behind you. Before you revise, be honest about where you are strong and where you are shaky, so you spend your time where it counts.
Write ✓ if you are confident, ? if you are nearly there, or ✗ if you are not yet comfortable. The grade shows where the topic was first taught. Come back at the end and change the marks.
| Topic | From | My rating |
|---|---|---|
| Variables, operators, IF and CASE | G10 | |
| Loops and strings from first principles | G10 | |
| Number algorithms (prime, GCD, LCM) | G10 | |
| 1D arrays, searching and sorting | G11 | |
| Text files and parallel arrays | G11 | |
| Procedures and functions | G11 | |
| Databases in Delphi (no SQL) | G11 | |
| OOP: classes and objects | G12 | |
| 2D arrays | G12 | |
| Recursion | G12 | |
| SQL and joins | G12 | |
| Hardware, software and the operating system | G10-12 | |
| Networks and the internet | G10-12 | |
| Number systems, ASCII and compression | G10-11 | |
| Data quality, validation and ERDs | G11 | |
| Normalisation and anomalies | G12 | |
| Security, malware and cybercrime | G10-12 | |
| Social implications: 4IR, IoT, Big Data, AI, cloud | G11-12 | |
| Writing exam answers in paragraphs | All |
Write the three weakest topics from your table, and for each one the first thing you will do this week (for example: redo the trace tables on paper, or write the normalisation steps again).
Everything later in the course is built on four old friends: variables and operators, decisions, loops and strings. Warm up here, because Question 1 of the practical paper tests them every year.
case iMark of 80..100 : sSym := 'A'; 60..79 : sSym := 'B'; else sSym := 'C'; end; if (iMark mod 10 = 0) or (iMark = 99) then // brackets round each test sSym := sSym + '*';
while iB <> 0 do // GCD by remainders
begin
iTemp := iB;
iB := iA mod iB;
iA := iTemp;
end; // answer is in iA
iSp := Pos(' ', sName);
sFirst := Copy(sName, 1, iSp - 1);
Delete(sName, 1, iSp); // sName is now the restWrite the value of each expression. Real values are written as Delphi would show them.
| Expression | Value |
|---|---|
| 23 div 4 | |
| 23 mod 4 | |
| 23 / 4 | |
| Round(6.7) + Trunc(6.7) | |
| Sqr(5) - Sqrt(16) | |
| (23 mod 4 = 3) and (23 div 4 > 5) | |
| Length('Cape Town') - Pos('T', 'Cape Town') | |
| Chr(Ord('A') + 7) |
Write the symbol stored in sSym at the end of the code for each mark.
case iMark of 80..100 : sSym := 'A'; 70..79 : sSym := 'B'; 60..69 : sSym := 'C'; 50..59 : sSym := 'D'; else sSym := 'F'; end; if (iMark mod 10 >= 8) and (sSym <> 'F') then sSym := sSym + '+';
| iMark | sSym at the end |
|---|---|
| 85 | |
| 59 | |
| 70 | |
| 49 | |
| 100 | |
| 79 | |
| 88 |
Trace the code with iNum = 4093 at the start. Write the values after each pass of the loop.
iRev := 0; iSum := 0; while iNum > 0 do begin iDigit := iNum mod 10; iRev := iRev * 10 + iDigit; iSum := iSum + iDigit; iNum := iNum div 10; end;
| Pass | iDigit | iRev | iSum | iNum |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 |
This code should show Prime in lblOut when iNum is a prime number, but it is wrong for every number. Find four errors.
bPrime := False;
for i := 2 to iNum do
if iNum div i = 0 then
bPrime := True;
if bPrime then
lblOut.Caption := 'Prime';A South African ID number is 13 digits: YYMMDD (birth date), then SSSS (4 digits: 5000 or more is male, below 5000 is female), then a citizenship digit (position 11: 0 is a citizen, 1 a permanent resident). sID holds the number and every learner was born in the 2000s. Write code that shows in lblInfo the birth date as dd/mm/yyyy, the gender and the citizenship, for example 02/04/2009, Male, South African citizen.
Arrays hold a list in memory and text files keep it after the program closes. Put them together with procedures and functions and you can load, search, sort and save data. This unit revises exactly that chain.
iBest := 1; // highest with index
for i := 2 to 8 do
if arrTimes[i] > arrTimes[iBest] then
iBest := i;
for i := 1 to n - 1 do // bubble sort, ascending
for j := 1 to n - i do
if arrMark[j] > arrMark[j + 1] then
begin
iTemp := arrMark[j]; arrMark[j] := arrMark[j + 1]; arrMark[j + 1] := iTemp;
sTemp := arrName[j]; arrName[j] := arrName[j + 1]; arrName[j + 1] := sTemp;
end;AssignFile(tFile, 'names.txt'); Reset(tFile); while not Eof(tFile) do begin ReadLn(tFile, sLine); memOut.Lines.Add(sLine); end; CloseFile(tFile); procedure Swap(var iA, iB: Integer); // var: the caller's values change var iTemp: Integer; begin iTemp := iA; iA := iB; iB := iTemp; end;
Sort 41, 17, 33, 9, 25, 12 into ascending order with a bubble sort (the code in Learn It, n = 6). Write the whole list after each pass and the number of swaps made in that pass.
| Pass | List after the pass | Swaps |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 |
The sorted array arrCodes holds 102, 115, 121, 134, 148, 152, 167, 173, 189, 195, 204 (positions 1 to 11). Trace the search for iTarget = 160.
iLow := 1; iHigh := 11; bFound := False;
while (iLow <= iHigh) and (not bFound) do
begin
iMid := (iLow + iHigh) div 2;
if arrCodes[iMid] = iTarget then
bFound := True
else if arrCodes[iMid] < iTarget then
iLow := iMid + 1
else
iHigh := iMid - 1;
end;| Pass | iLow | iHigh | iMid | arrCodes[iMid] | What happens |
|---|---|---|---|---|---|
| 1 | |||||
| 2 | |||||
| 3 | |||||
| end |
The file stock.txt has the five lines below (name#price#quantity). Complete the table for the code. iTotal is the running total of price × quantity.
Maize meal#43#18 Sugar 2kg#39#7 Cooking oil#54#12 Rusks#31#4 Tea bags#27#20
AssignFile(tFile, 'stock.txt');
Reset(tFile);
iTotal := 0;
while not Eof(tFile) do
begin
ReadLn(tFile, sLine);
iPos := Pos('#', sLine);
sName := Copy(sLine, 1, iPos - 1);
Delete(sLine, 1, iPos);
iPos := Pos('#', sLine);
iPrice := StrToInt(Copy(sLine, 1, iPos - 1));
iQty := StrToInt(Copy(sLine, iPos + 1, Length(sLine)));
iTotal := iTotal + iPrice * iQty;
if iQty < 10 then
memLow.Lines.Add(sName);
end;
CloseFile(tFile);| Line | sName | iPrice | iQty | iTotal after | Added to memLow? |
|---|---|---|---|---|---|
| 1 | |||||
| 2 | |||||
| 3 | |||||
| 4 | |||||
| 5 |
The code should add the text in edtEntry to the end of the existing file log.txt and then show in lblLines how many lines the file now has. Find five errors.
AssignFile(tLog, 'log.txt'); Rewrite(tLog); WriteLn(tLog, edtEntry.Text); Reset(tLog); iLines := 0; while Eof(tLog) do ReadLn(tLog, sLine); lblLines.Caption := IntToStr(iLines);
Declare type TTimes = array[1..8] of Integer; and write a procedure MinMax that receives a TTimes array and sends back the lowest and highest times through var parameters iMin and iMax. Then write the call that stores them in iFast and iLast.
A class is a blueprint and an object is one thing built from it. Question 3 of the practical paper always asks for the same pattern: attributes, a constructor, accessors, a mutator, an auxiliary method and ToString, then code that uses the objects.
type
TPlayer = class
private
fName : string;
fGoals : Integer;
fAttempts : Integer;
function Accuracy : Real; // auxiliary: private helper
public
constructor Create(sName: string);
function GetGoals : Integer; // accessor
procedure SetName(sNew: string); // mutator
procedure AddShot(bScored: Boolean); // mutator
function ToString : string;
end;
constructor TPlayer.Create(sName: string);
begin
fName := sName; fGoals := 0; fAttempts := 0;
end;
function TPlayer.GetGoals : Integer;
begin
Result := fGoals;
end;
procedure TPlayer.SetName(sNew: string);
begin
if sNew <> '' then // the mutator protects the attribute
fName := sNew;
end;
procedure TPlayer.AddShot(bScored: Boolean);
begin
Inc(fAttempts);
if bScored then Inc(fGoals);
end;
function TPlayer.Accuracy : Real;
begin
if fAttempts = 0 then Result := 0
else Result := fGoals / fAttempts * 100;
end;
function TPlayer.ToString : string;
begin
Result := fName + ': ' + IntToStr(fGoals) + '/' + IntToStr(fAttempts)
+ ' (' + FloatToStrF(Accuracy, ffFixed, 5, 1) + '%)';
end;type
TTrip = class
private
fRoute : string;
fCapacity : Integer;
fBooked : Integer;
fFare : Real;
function SeatsLeft : Integer;
public
constructor Create(sRoute: string; iCapacity: Integer; rFare: Real);
function GetBooked : Integer;
procedure SetFare(rNew: Real);
function Book(iSeats: Integer) : Boolean;
function Income : Real;
function IsFull : Boolean;
function ToString : string;
end;Complete the table for the object objT after each statement. SetFare accepts only a fare above 0, and Book accepts a booking only when enough seats are left. Show the money with 2 decimals.
objT := TTrip.Create('Bellville-CBD', 15, 24.50);
objT.Book(6);
objT.Book(10);
objT.SetFare(-5);
objU := objT;
objU.SetFare(26);
objU.Book(9);| After this statement | fBooked | fFare (R) | Book returned | Income (R) |
|---|---|---|---|---|
| objT := TTrip.Create('Bellville-CBD', 15, 24.50); | ||||
| objT.Book(6); | ||||
| objT.Book(10); | ||||
| objT.SetFare(-5); | ||||
| objU := objT; | ||||
| objU.SetFare(26); | ||||
| objU.Book(9); |
This part of TTrip compiles, but the program gives wrong answers. Find four errors.
constructor TTrip.Create(sRoute: string; iCapacity: Integer; rFare: Real);
begin
fRoute := sRoute;
iCapacity := fCapacity;
fFare := rFare;
end;
function TTrip.Book(iSeats: Integer) : Boolean;
begin
if iSeats <= SeatsLeft then
fBooked := iSeats;
Result := True;
end;Use the TTrip interface above. Write the implementation of: the constructor (no seats are booked at the start); the mutator SetFare (accepts only a fare above 0); and Book (adds the seats and returns True only if enough seats are left, otherwise nothing changes and it returns False).
The five trips below have already been created and stored in arrTrips[1..5] (array of TTrip), with the bookings shown:
| Route | Capacity | Booked | Fare (R) | |
|---|---|---|---|---|
| 1 | Bellville-CBD | 15 | 15 | 24.50 |
| 2 | Parow-Century City | 12 | 9 | 28.00 |
| 3 | Durbanville-Bellville | 15 | 11 | 19.50 |
| 4 | Goodwood-CBD | 10 | 10 | 22.00 |
| 5 | Kuils River-Bellville | 14 | 6 | 17.00 |
A 2D array is a table in memory: the first index chooses the row and the second chooses the column. Recursion solves a problem by calling itself on a smaller one. Both give the practical paper a short question every year.
| Rank | 06:00 | 07:00 | 08:00 | 09:00 | Total |
|---|---|---|---|---|---|
| Bellville | 12 | 25 | 31 | 18 | |
| Parow | 8 | 20 | 27 | 22 | |
| Goodwood | 15 | 30 | 38 | 26 | |
| Durbanville | 5 | 12 | 16 | 10 | |
| Hour total |
iRow3 := 0; // row total: row fixed, column changes
for c := 1 to 4 do
iRow3 := iRow3 + arrQ[3, c];
for r := 1 to 4 do // total of every row
begin
iT := 0;
for c := 1 to 4 do
iT := iT + arrQ[r, c];
memOut.Lines.Add(IntToStr(iT));
end;
iDiag := 0; // diagonal: one loop, r = c
for i := 1 to 4 do
iDiag := iDiag + arrQ[i, i];function Factorial(n : Integer) : Integer;
begin
if n <= 1 then
Result := 1 // base case
else
Result := n * Factorial(n - 1); // recursive case
end;
// Factorial(4) = 4 * Factorial(3) = 4 * (3 * Factorial(2)) = 4 * 3 * 2 * 1 = 24Write what is added to memOut. (The inner loop builds one line; Trim removes the space at the end.)
for i := 1 to 4 do
begin
sLine := '';
for j := 1 to i do
sLine := sLine + IntToStr(i * j) + ' ';
memOut.Lines.Add(Trim(sLine));
end;Use the taxi-rank grid in Think First (arrQ[rank, hour]). Write the values after each pass of the outer loop.
iBest := 1; iBestTot := 0;
for c := 1 to 4 do
begin
iColTot := 0;
for r := 1 to 4 do
iColTot := iColTot + arrQ[r, c];
if iColTot > iBestTot then
begin
iBestTot := iColTot;
iBest := c;
end;
end;| c | iColTot | iBestTot | iBest |
|---|---|---|---|
| 1 | |||
| 2 | |||
| 3 | |||
| 4 |
Use arrQ[1..4, 1..4] from Think First. Write code to: (a) store the total for Goodwood (row 3) in iRow3; (b) count in iQuiet the cells with a queue of fewer than 10; (c) store the sum of the main diagonal in iDiag.
Trace Mix(5). List every call, say whether the base case is reached, and write the value each call returns (fill in from the bottom row upwards).
function Mix(n : Integer) : Integer;
begin
if n <= 1 then
Result := 2
else
Result := 3 * Mix(n - 1) - n;
end;| Call | n | n <= 1 ? | Value returned |
|---|---|---|---|
| Mix(5) | 5 | ||
| Mix(4) | 4 | ||
| Mix(3) | 3 | ||
| Mix(2) | 2 | ||
| Mix(1) | 1 |
Write the lines added to memOut by Echo(3). Notice what is printed on the way down and on the way back.
procedure Echo(n : Integer);
begin
if n > 0 then
begin
memOut.Lines.Add('in ' + IntToStr(n));
Echo(n - 1);
memOut.Lines.Add('out ' + IntToStr(n));
end;
end;(a) Write function Gcd(a, b : Integer) : Integer: if b is 0 the answer is a, otherwise it is the Gcd of b and a mod b. (b) Write function Rev(s : string) : string that returns the text backwards (Table gives elbaT): an empty string is its own reverse; otherwise it is the reverse of all but the first character, followed by the first character.
In Grade 11 you handled one table with Delphi code only. In Grade 12 you let SQL do the work, join two tables, and build the SQL inside Delphi. This unit uses one small database: the results of a school sports day.
| Athlete | House | House captain |
|---|---|---|
| Thabo Mahlangu | Impala | Lerato Sithole |
| Ruan Pretorius | Impala | Lerato Sithole |
| Mpho Sekhukhune | Impala | Lerato Sithole |
| Aisha Cassiem | Kudu | Ruan Visser |
| HouseID | HouseName | Colour | Captain |
|---|---|---|---|
| 1 | Impala | Gold | Lerato Sithole |
| 2 | Kudu | Green | Ruan Visser |
| 3 | Eland | Blue | Nomsa Zulu |
| 4 | Springbok | Red | Kiara Naidoo |
| ID | Name | Grade | HouseID | Event | Points | EventDate |
|---|---|---|---|---|---|---|
| 1 | Thabo Mahlangu | 12 | 1 | 100m | 8 | 2026/02/20 |
| 2 | Aisha Cassiem | 11 | 2 | 100m | 6 | 2026/02/20 |
| 3 | Pieter Smit | 12 | 3 | Long jump | 9 | 2026/03/04 |
| 4 | Zinhle Dube | 10 | 4 | 100m | 4 | 2026/02/20 |
| 5 | Ruan Pretorius | 11 | 1 | Relay | 7 | 2026/03/04 |
| 6 | Naledi Khumalo | 12 | 2 | Relay | 10 | 2026/03/11 |
| 7 | Cameron Adams | 10 | 3 | Long jump | 5 | 2026/03/04 |
| 8 | Lindiwe Ncube | 12 | 4 | Long jump | 8 | 2026/03/04 |
| 9 | Jaden Petersen | 11 | 3 | Relay | 6 | 2026/03/11 |
| 10 | Mpho Sekhukhune | 12 | 1 | Long jump | 3 | 2026/03/04 |
| 11 | Keegan Louw | 10 | 2 | Relay | 0 | 2026/03/11 |
| 12 | Amahle Zondi | 11 | 4 | 100m | 7 | 2026/02/20 |
tblAthlete.First; // G11: a TADOTable, no SQL
while not tblAthlete.Eof do
begin
if tblAthlete['Points'] >= 8 then
begin
tblAthlete.Edit; // Edit ... Post to change a record
tblAthlete['Points'] := tblAthlete['Points'] + 1;
tblAthlete.Post;
end;
tblAthlete.Next; // never forget Next
end;
tblAthlete.Insert; // Insert ... Post adds a record
tblAthlete['Name'] := 'Sizwe Mkhize';
tblAthlete.Post;
qryAthlete.Close; // G12: a TADOQuery and SQL
qryAthlete.SQL.Text := 'SELECT Name FROM tblAthlete WHERE Grade = ' + IntToStr(sedGrade.Value);
qryAthlete.Open; // SELECT: Open
qryAthlete.SQL.Text := 'DELETE FROM tblAthlete WHERE Points = 0';
qryAthlete.ExecSQL; // INSERT, UPDATE, DELETE: ExecSQLSELECT Event, COUNT(*) AS Entries, AVG(Points) AS AvgPts
FROM tblAthlete, tblHouse
WHERE tblAthlete.HouseID = tblHouse.HouseID
AND EventDate >= #2026/03/01# AND Name LIKE "A%"
GROUP BY Event
HAVING COUNT(*) > 1
ORDER BY Entries DESC;
INSERT INTO tblHouse (HouseName, Colour) VALUES ("Oryx", "Purple");
UPDATE tblAthlete SET Points = Points + 1 WHERE Event = "Relay";
DELETE FROM tblAthlete WHERE Points = 0;The table tblAthlete holds the records in the database above (in the order shown). Write what is added to memOut and what lblAvg shows.
tblAthlete.First;
iCount := 0;
iTotal := 0;
while not tblAthlete.Eof do
begin
if tblAthlete['Grade'] = 11 then
begin
Inc(iCount);
iTotal := iTotal + tblAthlete['Points'];
memOut.Lines.Add(tblAthlete['Name']);
end;
tblAthlete.Next;
end;
lblAvg.Caption := FloatToStrF(iTotal / iCount, ffFixed, 5, 1);Use the TADOTable tblAthlete (no SQL). (a) Add 2 points to every Grade 12 athlete whose event is Relay. (b) Add a new record: name from edtName, grade 10, house 2, event 100m, 0 points. (c) Delete every athlete with 0 points.
A learner wrote the query below. Write the result in the table (as many rows as there are results; leave extra rows empty).
SELECT Name FROM tblAthlete WHERE Event = "100m" OR Event = "Relay" AND Points >= 7 ORDER BY Name;
| Name |
|---|
Write the result of this query on the two tables (it joins the tables, adds up each house's points and keeps only the houses with more than 18 points).
SELECT HouseName, COUNT(*) AS Entries, SUM(Points) AS Total FROM tblHouse, tblAthlete WHERE tblHouse.HouseID = tblAthlete.HouseID GROUP BY HouseName HAVING SUM(Points) > 18 ORDER BY SUM(Points) DESC;
| HouseName | Entries | Total |
|---|---|---|
Write the SQL for each: (a) the two athletes with the highest points (name and points); (b) the number of athletes and the average points for each event, with the headings Entries and AvgPoints; (c) the name and house name of every athlete whose EventDate is on or after 4 March 2026, ordered by house name and then name; (d) add athlete Sizwe Mkhize, Grade 10, house 2, event 100m, 5 points, date 18 March 2026; (e) add 2 points to every Relay athlete in house 3; (f) delete every athlete with 0 points.
Both queries should work on the sports-day tables. Query 1 should list each house with the number of its athletes, for houses with more than 2 athletes. Query 2 should show the name and points of the 3 best athletes since 4 March 2026. Find four errors in total.
SELECT HouseName, COUNT(*) AS Entries FROM tblHouse, tblAthlete WHERE COUNT(*) > 2 GROUP BY HouseName; SELECT Name, Points FROM tblAthlete WHERE EventDate > 2026/03/04 ORDER BY Points DESC TOP 3;
qryAthlete is a TADOQuery. (a) The user picks an event in cmbEvent and types a minimum in sedMin. List in memOut the name, house name and points of each athlete in that event with at least that many points, highest points first, as Name (House): Points, and show the number found in lblCount. (b) In btnBonus, add the number in sedBonus to the points of every athlete in the event chosen in cmbEvent.
No notes, no computer. Show all your working. Write Delphi code and SQL neatly, with correct indentation.
A school generates each learner's computer username from the full name typed in edtName (for example Thabo Molefe) and the birth year in sedYear. The username is the first letter of the first name, then the whole surname, both in small letters, followed by the last two digits of the year (with a leading zero if needed). For Thabo Molefe born in 2009 the username is tmolefe09; born in 2005 it would end in 05. Write code that shows the username in lblUser. The name always has exactly one space.
Trace the code with iN = 6 at the start. Write the values after each pass of the loop.
iSteps := 0;
while iN <> 1 do
begin
if Odd(iN) then
iN := 3 * iN + 1
else
iN := iN div 2;
Inc(iSteps);
end;| Pass | iN | iSteps |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 | ||
| 6 | ||
| 7 | ||
| 8 |
A weather station's program reads temperatures with an InputBox until the user types the word stop (in capitals or small letters). Show the highest temperature in lblHigh and the average to one decimal in lblAvg. If no temperature was entered, show nothing. The word stop must not be treated as a temperature.
The function CountSevens returns how many times the digit 7 appears in a whole number, using recursion: for 0 the answer is 0; otherwise it looks at the last digit (mod 10), adds 1 if it is a 7, and uses the function again on the number without its last digit (div 10). (a) Write the function. (b) State the value returned by CountSevens(70772) and the number of times the function is called altogether.
The text file tickets.txt lists matric-dance ticket sales: surname#grade#tickets on every line (at most 30 lines).
Dlamini#12#4 Pieterse#11#2 Mokoena#12#6 Abrahams#10#1 Naidoo#12#3 Venter#11#5 Zulu#10#2
The user types a surname in edtFind. Search the arrays (use a linear search) and show Grade 12: 4 tickets (the learner's own grade and tickets) in lblFound, or Not found.
Sort the three parallel arrays into descending order of tickets with a bubble sort, so that the learner with the most tickets is first.
After the sort, write every learner with 4 or more tickets to a new text file big.txt, one per line, as Surname: tickets (for example Mokoena: 6).
The sales of tickets by grade in four weeks are stored in arrSales[1..3, 1..4] (row = grade 10, 11, 12; column = week).
| Week 1 | Week 2 | Week 3 | Week 4 | |
|---|---|---|---|---|
| Grade 10 | 12 | 18 | 9 | 15 |
| Grade 11 | 20 | 14 | 22 | 19 |
| Grade 12 | 25 | 30 | 28 | 35 |
A library records every book that a learner has out. A book may be kept for 14 days; every extra day costs a fine of R2.50. The class TBookLoan is declared below.
type
TBookLoan = class
private
fTitle : string;
fDays : Integer; // days the book has been out
function DaysLate : Integer;
public
constructor Create(sTitle: string; iDays: Integer);
function GetTitle : string;
procedure SetDays(iNew: Integer);
function Fine : Real;
function ToString : string;
end;| Method | Type |
|---|---|
| Create | |
| SetDays | |
| DaysLate |
Write the implementation of the constructor and of the mutator SetDays, which accepts a new number of days only if it is 0 or more.
Write the private auxiliary function DaysLate (the days beyond 14, or 0 if the book is not late) and the function Fine, which uses DaysLate and returns the fine in rand.
Write ToString, which returns text such as Long Walk to Freedom: 31 days, fine R42.50 (the fine always with 2 decimals).
Five loans were created and stored in arrLoans[1..5] (array of TBookLoan):
| Title | Days out | |
|---|---|---|
| 1 | Born a Crime | 14 |
| 2 | Spud | 9 |
| 3 | Long Walk to Freedom | 31 |
| 4 | Cry, the Beloved Country | 20 |
| 5 | Coconut | 15 |
A food bank keeps its donors and their donations in two tables:
| Table | Fields |
|---|---|
| tblDonor | DonorID (primary key), DonorName, Town |
| tblDonation | DonationID (primary key), DonorID (foreign key), Item, Qty, DonationDate |
| DonationID | DonorID | Item | Qty | DonationDate |
|---|---|---|---|---|
| 1 | 1 | Maize meal | 40 | 2026/05/04 |
| 2 | 2 | Canned beans | 24 | 2026/05/04 |
| 3 | 3 | Soap | 60 | 2026/05/11 |
| 4 | 1 | Canned beans | 36 | 2026/05/18 |
| 5 | 4 | Maize meal | 15 | 2026/05/18 |
| 6 | 2 | Soap | 12 | 2026/06/01 |
| 7 | 3 | Maize meal | 30 | 2026/06/01 |
| 8 | 1 | Soap | 25 | 2026/06/08 |
| 9 | 4 | Canned beans | 18 | 2026/06/08 |
| 10 | 3 | Canned beans | 48 | 2026/06/15 |
SELECT Item, Qty FROM tblDonation WHERE Qty >= 30 AND DonationDate < #2026/06/01# ORDER BY Qty DESC;
| Item | Qty |
|---|---|
Write the result of this query (it uses both tables):
SELECT Town, SUM(Qty) AS Total FROM tblDonor, tblDonation WHERE tblDonor.DonorID = tblDonation.DonorID GROUP BY Town HAVING SUM(Qty) >= 60 ORDER BY SUM(Qty) DESC;
| Town | Total |
|---|---|
Write a query that shows the donor name and the item of every donation made on or after 1 June 2026, in order of date.
Write three statements: (a) add a donation of 20 Soap from donor 2 on 22 June 2026; (b) double the Qty of every donation from donor 4; (c) delete every donation made before 11 May 2026.
The user types a donor's name in edtDonor. qryFood is a TADOQuery. Write code that lists in memOut the item and quantity of every donation of that donor, in order of date, as Soap: 60.
Paper 2 tests Grades 10, 11 and 12 together, so this booklet revises all three years, topic by topic. The tag in each title shows the year in which the skill was first taught: [G10], [G11] or [G12]. Watch which tag you drop marks on. One writing rule for the whole booklet: every written answer is a sentence or a short paragraph, never a list of bullets, because a marker credits only as many bullet points as there are marks but reads a paragraph in full. This unit covers devices, memory and storage, performance, the operating system and the programs that translate code.
| Part | Job | Keeps data without power? | Remember |
|---|---|---|---|
| Cache (L1, L2, L3) | Copies of recently used instructions and data, right next to the CPU | No (volatile) | Fastest and smallest; more cache means the CPU waits less for RAM |
| RAM | Working memory for programs and data in use now | No (volatile) | Switch off and it is empty; more RAM lets more programs run |
| ROM / flash chip | Holds the BIOS (or firmware), which runs the POST and then loads the OS | Yes | Read-only does not mean “the hard drive” |
| Virtual memory | Part of the drive that the OS uses as extra RAM when RAM is full | On the drive | Far slower than RAM; too much swapping is thrashing |
| SSD | Flash storage with no moving parts | Yes | Fast, silent, tough, but dearer per GB |
| HDD | Spinning magnetic platters | Yes | Cheap per GB, but slow, noisy and fragile |
| Factor | How it changes performance | Typical symptom it fixes |
|---|---|---|
| CPU speed (GHz) and number of cores | More instructions per second; more cores handle more jobs at the same moment | Slow calculation and video export |
| RAM amount and speed | More programs and data stay in fast memory, so less swapping | Freezing with many programs open; drive light always on |
| Storage type | An SSD loads the OS and programs far faster than an HDD | Long start-up and slow program opening |
| GPU (graphics card) | Draws graphics so the CPU does not have to | Games and video editing stutter |
| NIC speed | How fast data enters and leaves the computer on the network | Slow file copying across a LAN |
| Compiler | Interpreter | |
|---|---|---|
| Translates | The whole program, once, before it runs | One line at a time, while it runs |
| Result | A separate executable (.exe) that runs without the source code | No separate file: the source code and interpreter are needed every time |
| Speed and errors | Runs fast; all syntax errors are listed before it will run | Runs slower; stops at the line with the error |
Circle the group of each device.
| 1 | A barcode scanner at a spaza till | Input Output Both Storage |
| 2 | A receipt printer | Input Output Both Storage |
| 3 | A touchscreen on a self-service kiosk | Input Output Both Storage |
| 4 | A memory card in a dashcam | Input Output Both Storage |
| 5 | A projector in the school hall | Input Output Both Storage |
| 6 | A microphone | Input Output Both Storage |
Write the term from the word bank next to each description.
Word bank: BIOS · cache · driver · firmware · POST · ROM · utility
| Description | Term |
|---|---|
| Very fast memory on or beside the CPU that holds recently used instructions | |
| The start-up program on the motherboard that finds the operating system and loads it | |
| The check of RAM, keyboard and storage that runs when the PC is switched on | |
| Memory that keeps its contents when the power is off | |
| Software stored permanently on a chip inside a device such as a router | |
| A small program that lets the operating system control a particular printer | |
| A small program that maintains the computer, such as a backup or disk clean-up tool |
Sipho writes a stock-control program in Delphi and sells it to 40 spaza shops. Differentiate between a compiler and an interpreter and say which of them produced the file that the shops run. Answer in a short paragraph.
Write the one change that would help most in each case.
Word bank: faster NIC and switch · more RAM · SSD instead of HDD · scan for malware · graphics card (GPU)
| Symptom | Best fix |
|---|---|
| A lab PC takes three minutes to start and every program is slow to open, yet only one program is running | |
| Everything freezes and the drive light stays on once six browser tabs and a spreadsheet are open | |
| A school's video-editing PC plays footage smoothly but the preview stutters while effects are drawn | |
| Pop-up adverts appear and the PC has slowed down although nothing new was installed | |
| Copying big files between lab PCs takes very long although the PCs themselves are fast |
The school's media club edits football matches filmed in 4K. Motivate the specification of a computer for the club. Refer to the CPU, RAM, graphics and storage, and give a reason for each choice, in a paragraph.
Explain why a smartphone uses a system on a chip (SoC) and why its battery limits how fast its processor may run.
From the earphones in your ear to the fibre line under the road, every network is built from the same few ideas: how far it reaches, how it is laid out, which devices join it, which rules (protocols) it follows and how it is kept private. This unit puts Grade 10 networks, Grade 11 protocols and topologies and Grade 12 remote access, SSL and web technologies on one page.
| Type | Reach | Example |
|---|---|---|
| PAN | A few metres around one person | Earbuds, smartwatch and phone (Bluetooth) |
| HAN | One home | Router, smart TV, phones and a printer in a flat |
| LAN | One building or campus, usually your own cables | The school's labs and offices |
| WAN | Cities, countries; uses lines leased from others | A bank's branches; the Internet is the biggest WAN |
| Topology | Layout | Strength | Weakness |
|---|---|---|---|
| Star | Every device joined to a central switch | A cable fault affects one device; easy to add devices | If the switch fails, everyone fails |
| Bus | All devices share one backbone cable | Cheap and simple | A break in the backbone stops all; slows down as devices are added |
| Ring | Each device joined to two neighbours in a loop | Orderly, few collisions | One break can stop the whole ring |
| Mesh | Devices linked to several others | Very reliable: data finds another route | Many cables, so expensive |
| Connection | Strength | Weakness |
|---|---|---|
| Fibre | Fastest, very stable, low delay | Needs a cable to the building |
| ADSL (copper phone line) | Widely available | Slower; speed drops with distance |
| 4G / 5G | No cable needed; 5G has very low delay | Expensive capped data; signal varies |
| Satellite | Works almost anywhere | High delay (latency); costly |
| Wi-Fi / Bluetooth / NFC | Wireless inside a building / about 10 m / a few cm (tap to pay) | Short range; Wi-Fi is easier to attack |
| Protocol | Job |
|---|---|
| HTTP / HTTPS | Web pages: HTTP as plain text, HTTPS encrypted with SSL/TLS |
| SMTP | Sends e-mail to and between mail servers |
| POP3 | Downloads e-mail to one device to read offline |
| IMAP | Keeps e-mail on the server, so every device sees the same mailbox |
| FTP | Moves large files between a computer and a server |
| VoIP | Voice and video calls as packets over the Internet |
| Technology | Where it runs | Job |
|---|---|---|
| HTML | Browser | Content and structure of the page |
| CSS | Browser | Colours, fonts and layout |
| JavaScript | Browser (client-side) | Reacts at once, for example checks a form before it is sent |
| PHP | Web server (server-side) | Builds pages and talks to the database |
| AJAX | Browser asks server in the background | Updates part of a page without reloading it |
| Cookie | Stored on your device | Lets a site remember you (login, basket) and lets advertisers follow you |
Circle the network type.
| 1 | Wireless earbuds linked to a phone | PAN HAN LAN WAN |
| 2 | The smart TV, phones and router in one flat | PAN HAN LAN WAN |
| 3 | The labs and offices of one school, joined by a switch | PAN HAN LAN WAN |
| 4 | A bank’s link between its Cape Town and Durban offices | PAN HAN LAN WAN |
| 5 | The Internet | PAN HAN LAN WAN |
Write the protocol from the word bank next to each job.
Word bank: FTP · HTTP · HTTPS · IMAP · POP3 · SMTP · VoIP
| Job | Protocol |
|---|---|
| Sends an e-mail from your device to the mail server | |
| Downloads your e-mail so you can read it offline on one device | |
| Lets your phone and laptop show the same mailbox because messages stay on the server | |
| Moves a large file between a computer and a server | |
| Carries web pages as plain, unencrypted text | |
| Carries web pages encrypted with SSL/TLS | |
| Carries a voice call as small packets over the Internet |
A school downloads a 750 MB update (1 byte = 8 bits, so the file is 6 000 megabits). Complete the time for each connection, assuming the full speed is used.
| Connection | Speed (Mbps) | Time in seconds | Time in minutes |
|---|---|---|---|
| Fibre | 100 | ||
| ADSL | 20 | ||
| 4G | 10 | ||
| Satellite | 2 |
A taxi association office has 6 PCs, a printer, a file server and a manager who uses a tablet over Wi-Fi. A fibre line arrives from the ISP. Draw a star network showing every device, the devices that connect them and where the firewall sits. Label everything.
Write the term from the word bank.
Word bank: AJAX · cookie · CSS · HTML · JavaScript · PHP · SEO
| Description | Term |
|---|---|
| Describes the content and structure of a page: headings, paragraphs and links | |
| Controls the colours, fonts and layout of a page | |
| Runs in the browser and checks a form before it is sent | |
| Runs on the web server, builds the page and talks to the database | |
| Fetches new data in the background so only part of the page refreshes | |
| A small file stored on your device so a site can remember you | |
| Using the words people search for and loading fast so that a website ranks higher in search results |
Lindiwe buys airtime stock on a wholesaler’s website. The address starts with https and shows a padlock. Explain how the digital certificate and the public and private keys protect her card number.
A township internet cafe wants fast video calls for customers. Fibre is available and so is a 4G router. Motivate which should be the main link and which the backup, and say how load shedding should be handled. Answer in a paragraph.
A database is only as good as the data in it and the design under it. This unit revises how data becomes information, how we keep it correct, how tables are linked and designed on paper (normalisation), and how big organisations store and mine data.
| Check | Tests | Example |
|---|---|---|
| Presence | Something was entered | Surname may not be empty |
| Range | Between a minimum and a maximum | Mark 0 to 40 |
| Length | Number of characters | Cell number has 10 digits |
| Type | Kind of data | Age holds digits only |
| Format | Pattern | E-mail has @ and a dot after it |
| List | One of the allowed values | Province chosen from nine |
| Check digit | Last digit is calculated from the others, so a typing slip is noticed | Barcodes, ISBNs, ID numbers |
| Relationship | Meaning | How it is built |
|---|---|---|
| One-to-one (1:1) | One record matches one record | The same key in both tables |
| One-to-many (1:M) | One record matches many | Put the PK of the ‘one’ table into the ‘many’ table as an FK |
| Many-to-many (M:M) | Many match many | Cannot be stored directly: add a link table that holds both PKs as FKs, giving two 1:M relationships |
| Database | Data warehouse | |
|---|---|---|
| Purpose | Day-to-day transactions | Analysis and reports over many years |
| Data | Current | Historical, collected from many databases, cleaned first |
| Used by | Staff and programs that insert, update and delete | Analysts and management, who mostly read |
Write the validation check from the word bank.
Word bank: format · length · list · presence · range · type
| Rule | Check |
|---|---|
| The surname box may not be left empty | |
| A test mark is out of 40, so it must be 0 to 40 | |
| A South African cell number must have exactly 10 digits | |
| The age box may contain only digits | |
| An e-mail address must contain an @ with a dot after it | |
| The province must be picked from the nine allowed names |
A product code has 4 digits plus a check digit. Multiply the digits by 3, 1, 3, 1 in turn and add. The check digit is the number needed to reach the next multiple of 10 (0 if the sum already is one). Example: code 4276 gives 3×4 + 2 + 3×7 + 6 = 41, so the check digit is 9 and the full code is 42769. Complete the first three rows. For the last two, work out the correct check digit and say whether the code is valid; leave the last column of the first three blank.
| Code | Weighted sum | Correct check digit | Valid? |
|---|---|---|---|
| 5083 | |||
| 7219 | |||
| 4650 | |||
| 72195 | |||
| 46508 |
A taxi association stores its trips in the database below. Answer from the diagram.
| Question | Answer |
|---|---|
| The primary key of tblTrip | |
| The two foreign keys in tblTrip | |
| The relationship between tblTaxi and tblTrip (one-to-many?) | |
| The many-to-many relationship that tblTrip resolves | |
| Explain one thing that referential integrity stops in tblTrip |
A school records donors and fundraising events. A donor can give to many events and an event receives gifts from many donors. Draw an ERD with tblDonor, tblEvent and a link table tblGift. Write the fields, mark every PK and FK and put 1 or M at the right ends.
The table below is not in 1NF because the Club column holds several values. Rewrite it in 1NF: give each club its own row. Then the primary key must be LearnerNo and Club together.
| LearnerNo | Name | Club |
|---|---|---|
| 1021 | Aphiwe Dlamini | Chess, Debating |
| 1034 | Ruan Botha | Choir |
| 1047 | Sana Patel | Chess, Choir, Robotics |
| LearnerNo | Name | Club (one per row) |
|---|---|---|
| 1021 | Aphiwe Dlamini | |
| 1021 | Aphiwe Dlamini | |
| 1034 | Ruan Botha | |
| 1047 | Sana Patel | |
| 1047 | Sana Patel | |
| 1047 | Sana Patel |
The stock-order table below has the composite primary key OrderNo + ItemCode. For each other field say what it depends on and which problem (if any) it causes.
| OrderNo | ItemCode | ItemName | ItemPrice | Qty | OrderDate | SupplierID | SupplierName |
|---|---|---|---|---|---|---|---|
| 801 | B12 | Bread | R18.50 | 40 | 02 Mar | S1 | Bellville Cash and Carry |
| 801 | M07 | Maize meal | R52.00 | 12 | 02 Mar | S1 | Bellville Cash and Carry |
| 802 | B12 | Bread | R18.50 | 25 | 09 Mar | S2 | Cape Wholesalers |
| 802 | D03 | Milk 2 L | R34.90 | 18 | 09 Mar | S2 | Cape Wholesalers |
| 803 | M07 | Maize meal | R52.00 | 10 | 16 Mar | S1 | Bellville Cash and Carry |
| Field | Depends on | Problem |
|---|---|---|
| Qty | ||
| ItemName | ||
| ItemPrice | ||
| OrderDate | ||
| SupplierID | ||
| SupplierName |
Split the stock-order table into 3NF. Write each table with its fields and mark the primary keys (PK) and foreign keys (FK).
Circle the anomaly shown in each case. Use the stock-order table above.
| 1 | A new supplier, Karoo Foods, cannot be stored until someone orders from it. | Insertion Deletion Modification |
| 2 | Order 802 is cancelled and its rows deleted; Cape Wholesalers and the price of milk vanish with it. | Insertion Deletion Modification |
| 3 | The bread price rises, but only one of its 2 rows is changed, so the table shows two prices. | Insertion Deletion Modification |
Everything on a computer, from your name to a video of the match, is stored as patterns of 0s and 1s. This unit revises counting in binary and hexadecimal, how characters and pictures are stored, how big files are, and what compression gives up.
| Text and storage | |
|---|---|
| ASCII | 7-bit code (128 characters), usually stored in a byte; English letters, digits and symbols. A = 65, a = 97, 0 = 48, space = 32. |
| Unicode | Uses more bits per character (UTF-8, UTF-16, UTF-32) so it can hold every script (isiZulu, Chinese, Arabic) and emoji; the first 128 codes are the same as ASCII. |
| Units | 1 byte = 8 bits; 1 KB = 1 024 bytes; 1 MB = 1 024 KB; 1 GB = 1 024 MB; 1 TB = 1 024 GB. Multiply to go down a unit, divide to go up. |
Write each number as an 8-bit binary number and as hexadecimal.
| Decimal | 8-bit binary | Hexadecimal |
|---|---|---|
| 37 | ||
| 90 | ||
| 173 |
Convert each number to decimal. Show your working in the margin.
| Number | Decimal |
|---|---|
| 11010110 (binary) | |
| 01101001 (binary) | |
| 7C (hex) | |
| B3 (hex) |
Use A = 65, a = 97 and 0 = 48 (the codes run in order). Complete the table; in the last row decode the four bytes to a word.
| Character or bytes | ASCII decimal | Binary or word |
|---|---|---|
| T | ||
| x | ||
| 7 | ||
| 01010100 01000001 01011000 01001001 |
Use 1 KB = 1 024 bytes, 1 MB = 1 024 KB and 1 GB = 1 024 MB.
| Question | Answer |
|---|---|
| (a) Convert 3.5 GB to MB | |
| (b) How many 4 MB photos fit on a 2 GB flash drive? | |
| (c) Convert 6 144 KB to MB | |
| (d) How many bytes are in 8 KB? | |
| (e) A 500 GB drive holds 380 GB of data. What percentage of the drive is free? |
A true-colour photo is 1 280 × 720 pixels (3 bytes per pixel). Work out its size and its size after JPEG compression at 20:1.
pixels := width * height bytes := pixels * 3 KB := bytes / 1024 MB := KB / 1024 JPEG := bytes / 20 saving := (bytes - JPEG) / bytes * 100
| Step | Working | Answer |
|---|---|---|
| 1 | 1 280 × 720 | |
| 2 | pixels × 3 | |
| 3 | bytes ÷ 1 024 | |
| 4 | KB ÷ 1 024 (2 decimals) | |
| 5 | bytes ÷ 20 | |
| 6 | saving as a percentage |
The school website will show 40 action photos of sport and the school badge (flat colours). Motivate the compression you would use for each, and explain why in a paragraph.
Technology brings risks and changes how we live and work. This unit revises the malware and attacks that threaten a system, the safeguards that stop them, cybercrime and the law, and the social effects of the connected world, with paragraph practice for the long questions.
| Malware | How it works |
|---|---|
| Virus | Attaches to a file and spreads when a person opens that file |
| Worm | Spreads by itself across a network, no user action needed |
| Trojan | Looks like useful software; does harm once you run it |
| Rootkit | Hides deep in the OS and gives an attacker hidden control |
| Ransomware | Encrypts your files and demands payment to unlock them |
| Spyware / adware | Secretly records what you do / shows unwanted adverts |
| Botnet | Many infected computers (zombies) controlled in secret, often to send spam or attack a site |
| Attack | How it works |
|---|---|
| Phishing | A fake e-mail or SMS tricks you into giving your details; you click the link |
| Pharming | Sends you to a fake website even if you typed the right address |
| Spoofing | Forges the sender’s address or identity |
| DDoS | Floods a server with traffic from many computers so real users cannot get in |
| SQL injection | Malicious SQL typed into a web form to read or change the database |
| Social engineering | Tricks a person, not a machine, into revealing information |
Write the type of malware from the word bank.
Word bank: adware · botnet · ransomware · rootkit · spyware · Trojan · virus · worm
| Description | Malware |
|---|---|
| Spreads across the school network by itself, with nobody opening anything | |
| Looks like a free game, but gives a criminal access once it is run | |
| Locks every file on the office PC and demands R5 000 for the key | |
| Records every key you press, including passwords | |
| Shows pop-up adverts you never asked for | |
| Attaches itself to a document and spreads when the document is opened | |
| Hides deep inside the OS so that antivirus does not notice it | |
| A group of infected PCs, secretly controlled, used to flood a website |
Write the attack from the word bank.
Word bank: DDoS · pharming · phishing · social engineering · spoofing · SQL injection
| What happened | Attack |
|---|---|
| A fake bank e-mail asks the customer to click a link and type her PIN | |
| The customer types the bank’s correct address but lands on a copy of the site | |
| A criminal types code into the login box that makes the database show every user | |
| Thousands of computers request an online shop’s page at the same moment, so it crashes | |
| A caller pretends to be from IT and asks the clerk for her password | |
| A message appears to come from the principal’s e-mail address but does not |
Write the safeguard that best deals with each threat.
Word bank: access rights · antivirus · backup kept off-site · encryption · firewall · UPS
| Threat | Safeguard |
|---|---|
| A power cut during load shedding switches the server off in the middle of saving | |
| A thief steals a laptop that holds learners’ personal details | |
| A flood destroys the office, the PC and the backup disk beside it | |
| An attacker outside the school tries to connect to the LAN | |
| A learner opens marks that only teachers should see | |
| A downloaded game contains a virus |
A spaza owner keeps all her sales and stock records on one laptop at the shop. Explain the 3-2-1 backup rule and why one copy must be kept off-site or offline, using a theft or a ransomware attack as your example.
A fake SMS tells taxi drivers that their licences are suspended and that they must click a link and pay a fine. Identify the cybercrime, explain how it works, discuss two effects on a driver and give two safeguards. Write a paragraph.
The school keeps learners’ ID numbers, addresses and marks. Explain two things that POPIA requires the school to do with this information.
Write the technology from the word bank.
Word bank: AI and machine learning · augmented reality · blockchain · cloud computing · Internet of Things · virtual reality
| Description | Technology |
|---|---|
| Rents storage and software over the Internet and bills only for what is used | |
| A headset puts the user inside a computer-made world | |
| A phone camera shows a car’s service history on top of the real car | |
| Computers learn from past data to recognise faces or predict faults | |
| A shared chain of records, each linked to the one before, copied on many computers | |
| Objects with sensors, such as a prepaid meter, that send data automatically |
Explain what the digital divide is, give two reasons for it in South Africa and say one way to reduce it.
Explain two ways in which a school can practise green computing and why each helps the environment.
Marks are lost in the exam room for avoidable reasons: a command word ignored, a mark allocation not counted, an answer that names things but never explains them. This unit trains the habits that protect marks before you sit the mini-exam.
| Command word | What to do |
|---|---|
| Name / State / List / Identify | Give the answer only: a word or short phrase for each mark. |
| Define / Describe | Say what it is or what it does, in a sentence. |
| Explain | Say what and why or how: a point and its reason for each mark. |
| Differentiate / Compare | Show how two things differ with both things in every sentence. |
| Discuss | Give both sides (advantage and disadvantage, benefit and risk) and explain each. |
| Motivate / Justify / Recommend | Choose, then give reasons; the word because must appear. |
| Calculate | Formula, working and answer with its unit. |
| Sentence of the answer | Mark | Why it earns the mark |
|---|---|---|
| Card payments are an advantage because the driver does not have to carry or count cash, | 1 | Advantage named |
| so he is less likely to be robbed and the fare is recorded automatically. | 1 | Advantage explained |
| A disadvantage is that the system needs a working network connection and electricity, | 1 | Disadvantage named |
| so during load shedding or a signal failure passengers cannot pay and the driver loses income. | 1 | Disadvantage explained with a result |
Discuss one advantage and one disadvantage of a municipality using an AI chatbot to answer residents’ questions about accounts. [4]
Write your plan in the margin first (a few words for each point), then your paragraph underneath.
Explain why shops should keep the software on their tills up to date. [3]
Learner’s answer: “Updates are important. Software must be updated so it is up to date. It is good for the shop.”
The marking guideline gives one mark each for: (1) updates repair security weaknesses; (2) criminals use known weaknesses to infect or break in; (3) updates also fix faults and add features, so the tills run reliably. (a) How many marks does the learner earn? Why? (b) Rewrite the answer so that it earns all three.
No notes, no computer. Answer in full sentences or short paragraphs, never bullet points. Read each question twice and count the marks.
Circle the correct answer in each case.
| 1 | The BIOS is stored in | RAM ROM |
| 2 | Which has no moving parts? | HDD SSD |
| 3 | Which translator converts the whole program before it runs? | Compiler Interpreter |
| 4 | Which malware spreads across a network by itself? | Virus Worm |
| 5 | Which e-mail protocol keeps the messages on the server? | POP3 IMAP |
Answer in the table.
| Question | Answer |
|---|---|
| (a) Write decimal 59 as an 8-bit binary number | |
| (b) Convert binary 10110100 to decimal | |
| (c) Convert decimal 203 to hexadecimal | |
| (d) Convert hexadecimal 3D to decimal |
Write the check from the word bank.
Word bank: check digit · length check · list check · range check
| Rule | Check |
|---|---|
| A learner number must have exactly 6 digits | |
| A learner’s age must be from 5 to 19 | |
| The grade is chosen from a drop-down showing 8, 9, 10, 11 and 12 | |
| The last digit of a product code is worked out from the other digits |
A true-colour photo is 640 × 480 pixels at 3 bytes per pixel (1 KB = 1 024 bytes, 1 MB = 1 024 KB).
| Question | Answer |
|---|---|
| (a) Number of pixels | |
| (b) File size in bytes | |
| (c) File size in KB | |
| (d) Size in KB after JPEG compression at 10:1 |
Write the term from the word bank.
Word bank: botnet · DDoS attack · metadata · record locking · SoC
| Description | Term |
|---|---|
| One chip that holds the CPU, graphics, modem and memory of a phone | |
| Data that describes other data, such as the date and GPS position stored in a photo | |
| Stops two users from editing the same record at the same moment | |
| Infected computers secretly controlled by a criminal |
The twelve PCs in the Siyakhula Community Library freeze when four programs are open, and the hard-drive light stays on. Explain what virtual memory is, why it causes the freezing and name one upgrade that would solve the problem.
Write the protocol from the word bank.
Word bank: FTP · HTTPS · IMAP · POP3 · SMTP
| Job | Protocol |
|---|---|
| Sends an e-mail from the librarian’s PC to the mail server | |
| Lets her phone and PC show the same mailbox | |
| Carries the library’s online payment page with the data encrypted | |
| Uploads a large file of new books to the supplier’s server |
The library has 12 PCs for the public. The librarian wants a client-server network and not a peer-to-peer network. Explain two reasons for her choice.
The librarian wants to open the library’s catalogue server from home. Explain how a VPN protects the data on the way, and give one remaining risk of remote access.
A clinic keeps a record of every visit. A patient can have many visits, each visit is with one doctor, and a doctor sees many visits. Draw an ERD with tblPatient, tblDoctor and tblVisit. Show the fields, mark each PK and FK and put 1 or M at the correct ends.
The clinic’s old table has the composite key PatientID + VisitDate. For each field below, say what it depends on and which problem (if any) it causes.
| PatientID | VisitDate | PatientName | DoctorID | DoctorName | Fee |
|---|---|---|---|---|---|
| 2201 | 05 Aug | Nomsa Zungu | D1 | Dr Pillay | R280.00 |
| 2201 | 19 Aug | Nomsa Zungu | D2 | Dr Smit | R350.00 |
| 2214 | 05 Aug | Kabelo Mosia | D2 | Dr Smit | R320.00 |
| 2230 | 12 Aug | Anele Cele | D2 | Dr Smit | R320.00 |
| Field | Depends on | Problem |
|---|---|---|
| PatientName | ||
| DoctorID | ||
| DoctorName | ||
| Fee |
Circle the anomaly shown, using the clinic table in the question above.
| 1 | Dr Smit’s name is corrected in one of her three rows only, so it is spelled two ways. | Insertion Deletion Modification |
| 2 | A new doctor cannot be saved until a patient has a visit with her. | Insertion Deletion Modification |
| 3 | Anele Cele’s only visit is deleted and her name disappears from the database. | Insertion Deletion Modification |
Write the clinic table in 3NF. Show each table with its fields and mark the primary keys (PK) and foreign keys (FK).
A group of 30 clinics keeps a separate database at each clinic. Management wants to study ten years of visits to see in which months flu visits peak. Explain what store they should build and how it differs from the clinics’ databases, and name the process of finding the patterns.
Hackers broke into a municipality’s billing database and published residents’ ID numbers, addresses and account details. Discuss the effects of the breach on the residents and on the municipality, and give two safeguards the municipality should have used. Answer in a paragraph.
A municipality fits IoT sensors to its street lights. Discuss one benefit and one risk of the system.
A small municipal office with no IT staff considers moving its documents to the cloud. Explain one advantage and one disadvantage of this decision.
The municipality moves all services online. Explain what the digital divide is and how this decision could widen it.
Revision only works when it is planned. Use this page to decide how you will spend the days before each paper, and go back to your self-audit to see how far you have come.
Plan the last days before each paper. Write when you will do your final run-through, which topics you will go over once more, what you will pack for the exam room, and what you will do the evening before to be rested.