A pencil-and-paper workbook: understand the internet of things and big data, then get ready for the exams and the PAT.
Your phone, the traffic light outside school and the electricity meter at home are starting to talk to computers on the internet. You will learn what the Internet of Things is, why it creates so much data, and how this wave of technology is changing jobs and society.
| V | Meaning | Example |
|---|---|---|
| Volume | The amount of data, from terabytes upward | A mobile network stores billions of call records |
| Velocity | The speed at which data arrives and must be processed | A bank checks each card swipe for fraud in a fraction of a second |
| Variety | Many forms: tables, text, images, video, GPS and sensor data | A hospital keeps X-rays, doctors' notes and heart-rate readings |
Circle the V of Big Data that each situation shows best.
| 1 | A bank must check each card swipe for fraud within a fraction of a second. | Volume Velocity Variety |
| 2 | A mobile network stores billions of call records. | Volume Velocity Variety |
| 3 | A hospital keeps X-ray pictures, doctors' notes and tables of lab results. | Volume Velocity Variety |
| 4 | A news site must show trending topics from posts as they are written. | Volume Velocity Variety |
A weather sensor sends 200 bytes every 30 seconds, all day and night. Work out the data from 500 sensors in one day (1 KB = 1 024 bytes; 1 MB = 1 024 KB).
| Step | Answer |
|---|---|
| 1. Readings per sensor per day (24 h × 60 min × 2 per minute) | |
| 2. Bytes per sensor per day (readings × 200) | |
| 3. KB per sensor per day (÷ 1 024) | |
| 4. KB for 500 sensors (× 500) | |
| 5. MB for 500 sensors (÷ 1 024, 2 decimal places) |
A municipality fits smart water meters to 5 000 homes; each sends a reading over the internet every hour. In a short paragraph discuss one benefit and one risk of this IoT system.
Supermarkets are adding self-checkout tills and shelf-stocking robots. In a paragraph explain how this may change employment: name a job that may disappear, one that may be created, and say what workers must do.
Every video you stream and photo you send has been squashed to travel faster. This unit shows how the squashing works, how websites are built and how a site can prove it is safe, with all calculations done by hand.
Circle the type of compression that fits each item.
| 1 | An MP3 song on a phone | Lossy Lossless |
| 2 | A ZIP file of school documents | Lossy Lossless |
| 3 | A PNG logo that must stay perfectly sharp | Lossy Lossless |
| 4 | A hospital X-ray that may lose no detail | Lossy Lossless |
| 5 | An MPEG-4 video streamed on a slow connection | Lossy Lossless |
Use Sipho's rule (count, then letter). Then look at the answer for ABCD: is it shorter or longer than the original?
| Squash or unsquash | Answer |
|---|---|
| AAAABBBCCDAA | |
| XXYYYY | |
| ABCD | |
| Unsquash 5Z2Q | |
| Unsquash 1M1N4O |
A true-colour photo is 1 200 × 800 pixels, 3 bytes per pixel. Work out its size and the size after JPEG compression at 15:1 (1 KB = 1 024 bytes).
pixels := width * height bytes := pixels * 3 KB := bytes / 1024 MB := KB / 1024 JPEG := bytes / 15
| Step | Working | Answer |
|---|---|---|
| 1 | 1 200 × 800 | |
| 2 | pixels × 3 | |
| 3 | bytes ÷ 1 024 | |
| 4 | KB ÷ 1 024 (2 decimals) | |
| 5 | bytes ÷ 15, then ÷ 1 024 |
A stream uses 3 MB per minute. Data costs R85 per GB (1 GB = 1 024 MB).
| Question | Answer |
|---|---|
| (a) Data used by a 90-minute match | |
| (b) Cost of that data to the nearest cent (270 ÷ 1 024 × R85) | |
| (c) How many whole 90-minute matches fit into a 2 GB bundle? | |
| (d) Time to download the 270 MB file at 8 megabits per second (1 byte = 8 bits) |
A bank sends an OTP at 14:02:10; it is valid for 5 minutes. Work out the time since sending and whether each code is accepted.
| Typed in at | Time since sent | Accepted or rejected? |
|---|---|---|
| 14:03:05 | ||
| 14:06:50 | ||
| 14:07:25 |
Explain why a school's online fee-payment page must use HTTPS and not plain HTTP.
A criminal steals Thandi's online banking password. Explain how MFA with an OTP still protects her money.
A school wants one site with term dates and a contact page, and a second site where parents log in to see their child's fees. Motivate which should be static and which dynamic.
Everything you post, search and tap leaves a trail. This unit is about who can follow it, what your phone knows about where you have been, how to protect yourself, and which careers and social effects come with the connected world.
Circle the kind of digital footprint that each item creates.
| 1 | You post a photo on Instagram. | Active Passive |
| 2 | A website records your IP address and the pages you visited. | Active Passive |
| 3 | You fill in an online form to enter a competition. | Active Passive |
| 4 | A free game app records your location in the background. | Active Passive |
| 5 | Cookies track which products you looked at. | Active Passive |
Choose the career from the word bank for each task.
Word bank: cybersecurity analyst · database administrator · multimedia designer · SEO specialist · web designer · web developer
| Task | Career |
|---|---|
| Draws a plan of the colours, fonts and layout of a new school website | |
| Writes the HTML and code that make the login page work | |
| Makes the animated intro and video for the home page | |
| Makes a daily backup of the school's learner database | |
| Notices that someone is guessing passwords and blocks them |
Explain two things a learner can do to protect their online identity. For each, say why it helps.
Discuss one benefit and one risk of location-based services for a teenager, in a short paragraph.
Discuss one positive and one negative social implication of globalisation made possible by the internet.
Arrays, searching, sorting, parallel arrays, strings and dates are things you have already done. This unit is a timed workout on paper: no computer, and every trace table filled in by hand, one step at a time.
| Method | What it does | Example |
|---|---|---|
| Pos(sub, s) | Position of the first match; 0 if none | Pos('p', 'Cape') = 3 |
| Copy(s, start, count) | A piece of s | Copy('Cape Town', 6, 4) = 'Town' |
| Delete(s, start, count) | Removes a piece from s itself | Delete(s, 1, 5) drops the first 5 characters |
| Insert(sub, s, pos) | Puts sub into s itself | Insert('X', s, 1) puts X in front |
| EncodeDate(y, m, d), DaysBetween(later, earlier) | Builds a date; whole days between two dates (DateUtils) | EncodeDate(2026, 11, 3) |
| FormatDateTime(fmt, d), IncDay(d, n) | Date as text; n days later | 'dd mmmm yyyy' gives 03 November 2026 |
arrFare holds the taxi fares 29, 15, 36, 8, 20, 12. Write the array after each pass of the outer loop and the number of swaps in the pass.
for i := 1 to 5 do
for j := 1 to 6 - i do
if arrFare[j] > arrFare[j + 1] then
begin
iTemp := arrFare[j];
arrFare[j] := arrFare[j + 1];
arrFare[j + 1] := iTemp;
end;| Pass (i) | Array after the pass | Swaps in the pass |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 | ||
| 5 |
arrN holds 31, 12, 25, 8, 19. For each pass write the position of the smallest item (iMin) and the array after the swap.
for i := 1 to 4 do
begin
iMin := i;
for j := i + 1 to 5 do
if arrN[j] < arrN[iMin] then
iMin := j;
if iMin <> i then
begin
iTemp := arrN[i];
arrN[i] := arrN[iMin];
arrN[iMin] := iTemp;
end;
end;| Pass (i) | iMin after the inner loop | Array after the pass |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 |
arrCode is sorted: 105, 118, 124, 137, 142, 151, 166, 172, 189, 195 (positions 1 to 10). The code searches for 166.
iLow := 1; iHigh := 10; bFound := False;
while (iLow <= iHigh) and (not bFound) do
begin
iMid := (iLow + iHigh) div 2;
if arrCode[iMid] = 166 then
bFound := True
else if arrCode[iMid] < 166 then
iLow := iMid + 1
else
iHigh := iMid - 1;
end;| Round | iLow | iHigh | iMid | arrCode[iMid] |
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 |
arrName holds Anele, Bongani, Chloe, Dumisani, Esihle, Fatima and arrMark holds 64, 71, 58, 85, 49, 77 (positions 1 to 6). Complete the loop table. Afterwards the learner at position iBest is the top learner: write the name here: ________________.
iTotal := 0;
iBest := 1;
for i := 1 to 6 do
begin
iTotal := iTotal + arrMark[i];
if arrMark[i] > arrMark[iBest] then
iBest := i;
end;| i | arrMark[i] | iTotal | iBest |
|---|---|---|---|
| 1 | 64 | ||
| 2 | 71 | ||
| 3 | 58 | ||
| 4 | 85 | ||
| 5 | 49 | ||
| 6 | 77 |
This code should show the average of 30 marks and the highest mark (not its position). Find four errors.
iHigh := 0;
for i := 1 to 30 do
begin
iTotal := iTotal + arrMark[i];
if arrMark[i] > iHigh then
iHigh := i;
end;
rAvg := iTotal / 31;
lblOut.Caption := 'Average: ' + rAvg + ' High: ' + IntToStr(iHigh);The arrays arrName and arrMark hold iCount learners. The name to find is in edtName. Use a Boolean flag to search linearly and show the name and mark in lblOut, or Not found. Ignore capital letters.
The ID number is in sID. Set bValid to True only if it has 13 characters, every character is a digit and the month (characters 3 and 4) is from 01 to 12. Show Valid or Invalid in lblOut.
Text files, procedures, functions and database tables are the three tools for the PAT. They look different, but each uses the same loop shape. Work through this unit with a pencil only.
| ID | Name | Grade | Mark |
|---|---|---|---|
| 1 | Anele | 10 | 55 |
| 2 | Bongi | 11 | 72 |
| 3 | Chloe | 11 | 48 |
| 4 | Dumi | 12 | 81 |
| 5 | Esihle | 11 | 66 |
| 6 | Fatima | 10 | 90 |
| Array | Text file | Database table | |
|---|---|---|---|
| Start | i := 1 | Reset(tFile) | tblLearner.First |
| Keep going while | i <= iCount | not EOF(tFile) | not tblLearner.Eof |
| Get the item | arrMark[i] | ReadLn(tFile, sLine) | tblLearner['Mark'] |
| Move on | Inc(i) | ReadLn does it | tblLearner.Next |
tblLearner.First; // delete every Grade 12 record
while not tblLearner.Eof do
if tblLearner['Grade'] = 12 then
tblLearner.Delete
else
tblLearner.Next;
procedure AddBonus(var iMark: Integer; iBonus: Integer);
begin
iMark := iMark + iBonus;
if iMark > 100 then iMark := 100;
end; // AddBonus(iScore, 5) changes iScoreWrite exactly what lblOut shows. Trace each call.
procedure Change(iA: Integer; var iB: Integer); begin iA := iA * 2; iB := iB + iA; end; // in the button code iX := 5; iY := 10; Change(iX, iY); Change(iY, iX); lblOut.Caption := IntToStr(iX) + ' ' + IntToStr(iY);
Marks.txt contains four lines: Thabo,56, Aisha,48, Sipho,71, Lindiwe,50. Complete a row for every check of the loop; the last row is the check that ends it.
iPass := 0; iBest := 0; sBest := '';
AssignFile(tFile, 'Marks.txt');
Reset(tFile);
while not EOF(tFile) do
begin
ReadLn(tFile, sLine);
iPos := Pos(',', sLine);
sName := Copy(sLine, 1, iPos - 1);
iMark := StrToInt(Copy(sLine, iPos + 1, Length(sLine)));
if iMark >= 50 then
Inc(iPass);
if iMark > iBest then
begin
iBest := iMark;
sBest := sName;
end;
end;
CloseFile(tFile);| Check | EOF(tFile) | sName | iMark | iPass | sBest |
|---|---|---|---|---|---|
| 1 | False | ||||
| 2 | False | ||||
| 3 | False | ||||
| 4 | False | ||||
| 5 | True |
tblLearner is the table in Think First (IDs 1 to 6). Complete a row for each record the loop visits.
iCount := 0;
iTotal := 0;
tblLearner.First;
while not tblLearner.Eof do
begin
if tblLearner['Grade'] = 11 then
begin
Inc(iCount);
iTotal := iTotal + tblLearner['Mark'];
end;
tblLearner.Next;
end;| Record (ID) | Grade | Grade = 11 ? | iCount | iTotal |
|---|---|---|---|---|
| 1 | 10 | |||
| 2 | 11 | |||
| 3 | 11 | |||
| 4 | 12 | |||
| 5 | 11 | |||
| 6 | 10 | |||
| past the last record | - |
This code should give 5 bonus marks to every Grade 10 learner, but not above 100. Find four errors.
tblLearner.First;
while not tblLearner.Eof do
begin
if tblLearner['Grade'] = '10' then
begin
tblLearner['Mark'] := tblLearner['Mark'] + 5;
if tblLearner['Mark'] > 100 then
tblLearner['Mark'] := 100;
end;
end;Results.txt has one line per learner in the form Thabo,56. Read the whole file into arrName and arrMark (array[1..100]), count the learners in iCount and show the average mark to one decimal in lblAvg. (tFile, sLine, iPos and iTotal are declared.)
The name is in edtName, the grade in sedGrade (a spin edit) and the mark in edtMark. Add a new record to tblLearner, but only if the name is not empty and the mark is from 0 to 100. Otherwise show a message.
Paper 2 tests whether you can explain how computers, networks and databases work and why things go wrong. This workout covers hardware, the operating system, networks, security, databases and data quality, with short matching tasks and written answers.
| Learner | Class | Class teacher | Room |
|---|---|---|---|
| Lerato Mokoena | 11A | Mr Naidoo | Room 12 |
| Sam Adams | 11A | Mr Naidoo | Room 12 |
| Thabiso Khumalo | 11A | Mr Naidoo | Room 12 |
| Anke Botha | 11B | Mrs Jacobs | Room 8 |
| Pule Sithole | 11B | Mrs Jacobs | Room 8 |
| Topic | What to remember |
|---|---|
| Hardware and OS | CPU runs instructions; cache is tiny, very fast memory beside it. RAM is volatile working memory; ROM permanently holds the BIOS, which runs the POST at start-up. An SSD (flash, no moving parts) is faster than a HDD but costs more per GB. The operating system manages memory, files, devices (via drivers), users and security, and provides the interface. |
| Networks | In a star network one cable fault affects one PC, but a switch fault stops everyone. SMTP sends e-mail, POP3 downloads it, IMAP keeps it on the server; FTP moves large files; HTTP/HTTPS carry web pages; VoIP carries calls. |
| Security | Malware: virus (needs a file), worm (spreads alone), trojan (disguised), rootkit (hidden), ransomware, spyware, adware. Attacks: phishing, pharming, spoofing, SQL injection. Remedies: antivirus, firewall, strong passwords, access rights, encryption, updates, MFA, UPS and the 3-2-1 backup rule. |
| Databases and data quality | A primary key is unique; a foreign key holds another table's primary key. Relationships: 1:1, 1:M, and M:M (solved with a link table). Referential integrity: a foreign key must match an existing primary key. GIGO: wrong input gives wrong output. Validation (by the program) checks that data is reasonable; verification checks that it matches its source. |
Write the term from the word bank next to each description.
Word bank: adware · cache · FTP · pharming · POP3 · POST · ransomware · SSD
| Description | Term |
|---|---|
| Tiny, very fast memory next to the CPU that holds recently used instructions | |
| The check of RAM, keyboard and storage when the computer is switched on | |
| Storage with no moving parts, using flash memory | |
| The protocol that downloads e-mails to one device | |
| The protocol used to upload a large file to a server | |
| Sends you to a fake website even though you typed the right address | |
| Encrypts your files and demands payment to unlock them | |
| Shows pop-up adverts that you did not ask for |
Write the term from the word bank next to each description.
Word bank: field · foreign key · length check · presence check · primary key · range check · record · referential integrity
| Description | Term |
|---|---|
| One column in a table, such as Surname | |
| One complete row, holding everything about one learner | |
| A field whose value is unique for every record | |
| A field that holds the primary key of another table | |
| The rule that every foreign key must match an existing primary key | |
| A mark must be from 0 to 100 | |
| A cell number must have exactly 10 digits | |
| The surname box may not be left empty |
A library member can borrow many books over time, and each book can be borrowed by many members. Draw an ERD with tblMember, tblBook and a link table tblLoan. Write the fields, mark the primary keys (PK) and foreign keys (FK), and label each line 1 or M at the correct end.
tblLearner has a foreign key ClassID that refers to tblClass. Explain what referential integrity prevents here.
A clerk types the mark 98 as 89. Explain what GIGO means using this example, say why a range check of 0 to 100 would not catch it, and name a method that would.
Describe what happens to a school if ransomware infects the office PC. Explain one way to prevent the attack and one way to recover without paying.
Two things decide your final marks: the quality of your PAT and the way you handle the exam paper. This unit gives you a one-page audit for your PAT and the exam habits that protect marks.
| Command word | What to do |
|---|---|
| Name / State / List | Give the answer only: a word or short phrase for each mark. |
| Explain | Say what and why or how: a point and its reason for each mark. |
| Discuss | Give both sides (advantages and disadvantages) and explain each, in a paragraph. |
| Differentiate | Show how two things differ, with both things in every sentence. |
| Motivate / Justify | Choose, then give explained reasons. |
| Calculate | Formula, working and answer with a unit. |
Rate each row 0 (not done), 1 (partly) or 2 (fully) and write the evidence or what you still need to fix before the hand-in date.
| Area | What a marker looks for | Rate | Evidence or what I must fix |
|---|---|---|---|
| Planning | Clear description of the problem and users; data planned (fields, types, keys, ERD); a sketch of every form | ||
| Code layout | Header comment, indentation, Hungarian prefixes, comments on each method | ||
| Methods | Procedures and functions with parameters, each doing one job; no repeated code | ||
| Arrays and loops | Used to search, sort or total data in a meaningful way | ||
| Text file | AssignFile, Reset/Rewrite/Append, EOF, CloseFile; FileExists checked; no LoadFromFile or SaveToFile | ||
| Database | Related tables; records added, edited and deleted in code; searching with a loop; no SQL | ||
| Validation | Inputs checked (presence, range, type); helpful messages; the program never crashes | ||
| User interface | Clear labels, logical tab order, consistent look, buttons enabled only when sensible | ||
| Testing | Test table with normal, boundary and invalid data; expected and actual results | ||
| Documentation | User guide with screenshots; technical notes (ERD, list of methods) | ||
| Hand-in | Runs on another PC (relative paths, database in the project folder); folder backed up; declaration signed; on time |
A learner answered Explain how phishing works. [3] with: “– fake e-mail – click link – steals password”. Rewrite it as a paragraph of 3 or 4 sentences with a reason in each.
A pie costs R14. The number of pies is in edtPies and the money handed over in edtPaid. Show the change in lblOut, or Not enough money. (a) Write your plan as comments. (b) Write the code under your comments, with variable declarations.
No notes, no computer. Show all your working. Write Delphi code neatly and use correct indentation.
arrFare holds the taxi fares 24, 18, 30, 12, 21. Write the array after each pass and the number of swaps in the pass.
for i := 1 to 4 do
for j := 1 to 5 - i do
if arrFare[j] > arrFare[j + 1] then
begin
iTemp := arrFare[j];
arrFare[j] := arrFare[j + 1];
arrFare[j + 1] := iTemp;
end;| Pass (i) | Array after the pass | Swaps in the pass |
|---|---|---|
| 1 | ||
| 2 | ||
| 3 | ||
| 4 |
What does lblOut show? Trace each call carefully.
procedure Mix(var iA: Integer; iB: Integer); begin iA := iA + iB; iB := iA - iB; end; iP := 4; iQ := 7; Mix(iP, iQ); Mix(iQ, iP); lblOut.Caption := IntToStr(iP) + ' and ' + IntToStr(iQ);
Scores.txt contains three lines: Zodwa,72, Kabelo,38 and Imran,64. Complete a row for each check of the loop; the last row is the check that ends it.
iTotal := 0; iFail := 0; iLow := 100;
AssignFile(tFile, 'Scores.txt');
Reset(tFile);
while not EOF(tFile) do
begin
ReadLn(tFile, sLine);
iP := Pos(',', sLine);
iMark := StrToInt(Copy(sLine, iP + 1, 3));
iTotal := iTotal + iMark;
if iMark < 50 then
Inc(iFail);
if iMark < iLow then
iLow := iMark;
end;
CloseFile(tFile);| Check | EOF(tFile) | iMark | iTotal | iFail | iLow |
|---|---|---|---|---|---|
| 1 | False | ||||
| 2 | False | ||||
| 3 | False | ||||
| 4 | True |
This code should show the mark of the learner whose name is in edtName. Find and correct four errors.
bFound := True;
i := 1;
while (i < iCount) or (not bFound) do
begin
if arrName[i] = edtName.Text then
bFound := True
else
Inc(i);
end;
if bFound = True then
lblMark.Caption := arrMark[i]
else
lblMark.Caption := 'Not found';This code should remove every member whose fines are more than R500, but it sometimes misses a member. Explain what is wrong and write the corrected loop.
tblMember.First;
while not tblMember.Eof do
begin
if tblMember['Fines'] > 500 then
tblMember.Delete;
tblMember.Next;
end;The parallel arrays arrPlayer and arrScore (array[1..20]) hold iCount players. Write a function FindTop that returns the position of the highest score. Then write the lines that show the top player's name and score in lblBest.
Players.txt has one line per player in the form Zodwa,72. Copy only the players with a score of 70 or more to a new file TopPlayers.txt, each as Zodwa - 72, and show in lblCount how many were copied. (File variables tIn and tOut; sLine, iPos, sName, iScore and iCount are declared.)
tblStock has the fields ItemName and Qty. Visit every record. If Qty is less than 5, add 20 to Qty, save the change and add the ItemName to memReorder. At the end show in lblNum how many items were topped up.
Write a procedure MinMax with integer parameters iA, iB, iC and VAR parameters iSmall and iBig that return the smallest and largest of the three. Then write the call using edtA, edtB, edtC and the variables iLow and iHigh.
Circle the V of Big Data that each situation shows best.
| 1 | Sensors in a mine send new gas readings every second that must be analysed at once. | Volume Velocity Variety |
| 2 | A streaming company stores millions of hours of film. | Volume Velocity Variety |
| 3 | A bank combines customer tables, scanned IDs, call recordings and social media comments. | Volume Velocity Variety |
| 4 | Hospital heart monitors produce new readings every second that doctors need immediately. | Volume Velocity Variety |
A photo is 1 600 × 900 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 MB, to 2 decimal places | |
| (d) Size in bytes after JPEG compression at 12:1 | |
| (e) Is JPEG lossy or lossless? |
A game farm fits IoT sensors to its fences and water troughs. Discuss one benefit and one risk of this system.
Differentiate between HTTP and HTTPS, and say why the difference matters when you pay online.
Explain how an OTP or a security token makes logging in safer than a password alone.
Differentiate between an active and a passive digital footprint with an example of each, and explain one way a learner can limit their footprint.
Write the validation check from the word bank.
Word bank: length check · list check · presence check · range check · type check
| Rule | Check |
|---|---|
| A cell number must have exactly 10 digits | |
| A mark must be from 0 to 100 | |
| The name box may not be empty | |
| The province must be chosen from nine given names |
Explain the purpose of a foreign key, using tblLearner and tblClass as your example.
| Surname | Name | Grade | Mark | Sport |
|---|---|---|---|---|
| Dlamini | Thabo | 12 | 68 | Soccer |
| Naidoo | Priya | 11 | 74 | Netball |
| Botha | Kobus | 12 | 59 | Rugby |
| Khumalo | Zanele | 12 | 81 | Netball |
| Pieterse | Liam | 11 | 45 | Soccer |
| Mokoena | Lerato | 12 | 72 | Netball |
| Adams | Cleo | 10 | 90 | Hockey |
| Jacobs | Imran | 10 | 63 | Soccer |
| Sithole | Pule | 11 | 58 | Rugby |
| Van Wyk | Anke | 11 | 77 | Hockey |