# Information Technology Grade 11 P1 2015 Memo (Afr)

> Grade 11 Information Technology Paper 1 memorandum from the Eastern Cape November 2015 (Afrikaans), 11 pages. Read online or download the free PDF.

- Page: https://www.hlayiso.com/library/it-p1-gr11-nov2015-afr-memo/1cc59484-0cad-42fb-9c1d-2496d82af49f
- Updated: 2026-09-27
- Subject: Information Technology
- Grade: Grade 11
- Document type: Memorandum
- Year: 2015
- Exam period: Eastern Cape November
- Paper: 1
- Curriculum: CAPS
- Pages: 11

Breadcrumbs: [Home](https://www.hlayiso.com/) › [Library](https://www.hlayiso.com/library) › [Grade 11](https://www.hlayiso.com/library/grade-11) › [Information Technology](https://www.hlayiso.com/library/grade-11/information-technology) › [Information Technology Grade 11 P1 2015 Memo (Afr)](https://www.hlayiso.com/library/it-p1-gr11-nov2015-afr-memo/1cc59484-0cad-42fb-9c1d-2496d82af49f)

## About this document

Information Technology · Grade 11 · Eastern Cape November · 2015. Memorandum, 11 pages. Read online or download the PDF.

Read it free online on the page above; download the PDF from there.

## Document text

Text extracted from the PDF. Layout, diagrams and tables may not survive extraction.

### Page 1

Downloaded from hlayiso.com

                         NASIONALE
                     SENIOR SERTIFIKAAT

                             GRAAD 11

                       NOVEMBER 2015

               INLIGTINGSTEGNOLOGIE V1
                     MEMORANDUM

PUNTE:   150

                 Hierdie memorandum bestaan uit 11 bladsye.

### Page 2

Downloaded from hlayiso.com
2                         INLIGTINGSTEGNOLOGIE V1          (EC/NOVEMBER 2015

VOORBEELD DELPHI OPLOSSING VRAAG 1
unit Question1_u;
//Enter your Name and Surname Here

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,
Forms,
  Dialogs, StdCtrls, ComCtrls, Buttons;

type
  TfrmQuestion1 = class(TForm)
     PageControl1: TPageControl;
     TabSheet1: TTabSheet;
     TabSheet2: TTabSheet;
     TabSheet3: TTabSheet;
     btnLanes: TButton;
     bbClose: TBitBtn;
     memLanes: TMemo;
     btnAdd: TButton;
     btnDisplay: TButton;
     redDisplay: TRichEdit;
     lblID: TLabel;
     edtID: TEdit;
     btnCheck: TButton;
     memID: TMemo;
     procedure btnCheckClick(Sender: TObject);
     procedure btnAddClick(Sender: TObject);
     procedure btnLanesClick(Sender: TObject);
     procedure FormCreate(Sender: TObject);
     procedure btnDisplayClick(Sender: TObject);
  private
     { Private declarations }
  public
     { Public declarations }
  end;

var
  frmQuestion1: TfrmQuestion1;
  icount,itotal : integer;
  rlongest,rtotal : real;
implementation

{$R *.dfm}

/////// Question 1.1
procedure TfrmQuestion1.btnLanesClick(Sender: TObject);
var
  ihouse1, ihouse2, ihouse3 : integer;
begin
 randomize;
 repeat
  ihouse1 := random(3)+1; 
  ihouse2 := random(3)+1; 
  ihouse3 := random(3)+1; 
 until (ihouse1 <> ihouse2) and (ihouse1 <> ihouse3); 

Kopiereg voorbehou                                          Blaai om asseblief

### Page 3

Downloaded from hlayiso.com
(EC/NOVEMBER 2015)            INLIGTINGSTEGNOLOGIE V1                         3

 memlanes.lines.add('House 1: is in Lane' +inttostr(ihouse1) +' and
Lane '+inttostr(ihouse1+3)); 
 memlanes.lines.add('House 2: is in Lane' +inttostr(ihouse2) +' and
Lane '+inttostr(ihouse2+3)); 
 memlanes.lines.add('House 3: is in Lane' +inttostr(ihouse3)+' and
Lane '+inttostr(ihouse3+3)); 
end;

  ///Question 1.2.1
procedure TfrmQuestion1.btnAddClick(Sender: TObject);
var
  rdistance : real;
begin
  rdistance := strtofloat(Inputbox('Add Distance','','')); 
  inc(icount); 
  rtotal := rtotal + rdistance; 
  if rdistance > rlongest then
     rlongest := rdistance; 
end;
procedure TfrmQuestion1.FormCreate(Sender: TObject);
begin
  rlongest := 0;
  icount := 0; 
  rtotal := 0;
  itotal := 0; 
end;

/////1.2.2 (6)
procedure TfrmQuestion1.btnDisplayClick(Sender: TObject);
var
  raverage : real;
begin
  raverage := rtotal/icount; 
  reddisplay.lines.add('Total: '+inttostr(icount)); 
  reddisplay.lines.add('Average: '+floattostrf
(raverage,fffixed,8,2)); 
  reddisplay.lines.add ('Longest: '+floattostr(rlongest)); 
end;

/////Question 1.2.3 (24)
procedure TfrmQuestion1.btnCheckClick(Sender: TObject);
var
  sid : string;
  ilen,k : integer;
  bvalid : boolean;
begin
  sid := edtid.text; 
  ilen := length(sid); 
  bvalid := true; 
  for k := 1 to ilen do
    begin
      if not(sid[k] in ['0'..'9']) then
         bvalid := false; 
    end;

Kopiereg voorbehou                                             Blaai om asseblief

### Page 4

Downloaded from hlayiso.com
4                         INLIGTINGSTEGNOLOGIE V1              (EC/NOVEMBER 2015

    if (bvalid = false) and (ilen <> 13) then

     Showmessage('Enter numbers only and not 13 digits') 
  else
  if ilen <> 13 then
     Showmessage('too short') 
  else
     if bvalid = false then
       Showmessage('Enter numbers only') 
     else
      begin
       Showmessage('Valid ID'); 
       for k := 1 to ilen do
         begin
            itotal := itotal + strtoint(sid[k]); 
         end;
       if itotal mod 2 = 0 then
         memid.lines.add('Even: You can have another throw')
       else
         memid.Lines.add('Odd: Sorry, no extra throw'); 
      end;
end;

end.
                                                                              [47]

Kopiereg voorbehou                                              Blaai om asseblief

### Page 5

Downloaded from hlayiso.com
(EC/NOVEMBER 2015)              INLIGTINGSTEGNOLOGIE V1                          5

VOORBEELD DELPHI OPLOSSING VRAAG 2
unit Question2_U;//Enter your name and surname Here
interface
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Buttons, StdCtrls, ExtCtrls, Math, ComCtrls;

  type
  TfrmQ2 = class(TForm)
    pnlOutPut: TPanel;
    pnlChoices: TPanel;
    btnRead: TButton;
    bbnClose: TBitBtn;
    btnListOfSponsors: TButton;
    redOutput: TRichEdit;
    procedure btnReadClick(Sender: TObject);
    procedure btnListOfSponsorsClick(Sender: TObject);
  private
    { Private declarations }

  public
    { Public declarations }
  end;
///2.1 (3)
var
  frmQ2: TfrmQ2;
  arrathletes : array[1..20]  of string; 
  icount : integer; 
implementation

{$R *.dfm}
///2.2 (15)
function validcode(scode : string) : boolean; 
var
  ilen,k : integer;
begin
  result := true; 
  ilen := length(scode); 
  for k := 1 to 3 do
    if not (scode[k] in ['A'..'Z']) then
      result := false; 
  for k := 4 to 8 do
    if not (scode[k] in ['0'..'9']) then
      result := false; 
  for k := 9 to 11 do
    if not (scode[k] in ['A'..'Z']) then
      result := false; 
  if ilen <> 11 then
    result := false; 

end;
////2.3 (19)
procedure TfrmQ2.btnReadClick(Sender: TObject);
var
  myfile : textfile;
  soneline : string;

Kopiereg voorbehou                                                Blaai om asseblief

### Page 6

Downloaded from hlayiso.com
6                         INLIGTINGSTEGNOLOGIE V1                (EC/NOVEMBER 2015

  iinvalid : integer;
begin
  icount := 0; 
  iinvalid := 0; 
  if fileexists('field.txt') <> true then
    begin
      Showmessage('no'); 
      Exit; 
    end;
  Assignfile(myfile,'field.txt'); 
  Reset(myfile); 
  while not eof(myfile) do
    begin
      readln(myfile,soneline); 
      if validcode(soneline) then
        begin
          inc(icount) ;
          arrathletes[icount] := soneline; 
        end
      else
        begin
          redoutput.lines.add('Invalid: '+soneline); 
          inc(iinvalid); 
        end;
    end;
  redoutput.lines.add(''); 
  redoutput.lines.add('Valid Codes: '+inttostr(icount)); 
  redoutput.Lines.add('Invalid Codes: '+inttostr(iinvalid)); 

  closefile(myfile); 
end;

///2.4 (11)
procedure TfrmQ2.btnListOfSponsorsClick(Sender: TObject);
var
  k : integer;
  ssponsor, slist : string;
begin
  for k := 1 to icount do
    begin
      ssponsor := copy(arrathletes[k],9,3); 
      if pos(ssponsor,slist) = 0 then
        slist := slist + ssponsor; 
    end;
  for k := 1 to length(slist)  div 3 do
    redoutput.lines.Add(inttostr(k) + copy(slist,k*3-2,3)); 
  redoutput.lines.Add(''); 
  redoutput.lines.Add('Total: '+inttostr (length(slist) div 3)); 

end;

end.
                                                                                     [48]

Kopiereg voorbehou                                                Blaai om asseblief

### Page 7

Downloaded from hlayiso.com
(EC/NOVEMBER 2015)               INLIGTINGSTEGNOLOGIE V1                   7

VOORBEELD DELPHI OPLOSSING VRAAG 3

unit Question3_u;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,
Forms,
  Dialogs, Grids, ExtCtrls, StdCtrls, Buttons, ComCtrls;

type

  TfrmQ3 = class(TForm)
    pnlOutPut: TPanel;
    lbxID: TListBox;
    bmbClose: TBitBtn;
    btnFindFastest: TButton;
    redOutput: TRichEdit;
    btnGender: TButton;
    procedure FormCreate(Sender: TObject);
    procedure SortResults;
    procedure btnFindFastestClick(Sender: TObject);
    procedure btnGenderClick(Sender: TObject);

  private
    { Private declarations }

       NewPanel      : TPanel;

  public
    { Public declarations }

  end;

var
  frmQ3: TfrmQ3;
      arrResults : Array[1..100] of string;
    iNumRes : Integer;
implementation

{$R *.dfm}
//=====================================================================
=========
procedure TfrmQ3.FormCreate(Sender: TObject);
var iCounter: Integer;
begin
  // Do not alter or add code in this procedure
  // read data from hidden list box into the array
     iNumRes := 0;
     For iCounter := 0 to lbxID.Items.Count -1 do
        arrResults[iCounter+1] := lbxID.Items[iCounter];
     iNumRes := lbxID.Items.Count;
end;

Kopiereg voorbehou                                          Blaai om asseblief

### Page 8

Downloaded from hlayiso.com
8                         INLIGTINGSTEGNOLOGIE V1          (EC/NOVEMBER 2015

////3.1 (8)
procedure TfrmQ3.SortResults; 
var
  k, l : integer;
  stemp : string;
begin
  for k := 1 to inumres - 1 do
     for l := k + 1 to inumres do
       if arrresults[k] > arrresults[l] then
         begin
           stemp := arrresults[k]; 
           arrresults[k] := arrresults[l]; 
           arrresults[l] := stemp; 
         end;
end;

////3.2 (5)
procedure TfrmQ3.btnFindFastestClick(Sender: TObject);
begin
   SortResults; 
   redoutput.Lines.add('Code '+arrresults[1]); 
   redoutput.lines.add('Time: ' + floattostr(strtoint(copy
(arrresults[1],1,5))/1000)) ;
end;

////(3.3)-(9)
procedure TfrmQ3.btnGenderClick(Sender: TObject);
var
  k, imale, ifemale, igender : integer;
begin
  for k := 1 to inumres do
    begin
       igender := strtoint(copy(arrresults[k],8,1)); 
       if igender >= 5 then
         inc(imale) 
       else
         inc(ifemale); 
    end;
  redoutput.Lines.add('Number of Males:  '+inttostr(imale)) ;
  redoutput.Lines.add('Number of Females: '+inttostr(ifemale)) ;
  end;

end.

                                                                                [25]

Kopiereg voorbehou                                             Blaai om asseblief

### Page 9

Downloaded from hlayiso.com
(EC/NOVEMBER 2015)            INLIGTINGSTEGNOLOGIE V1                      9

VOORBEELD DELPHI OPLOSSING VRAAG 4

unit Question4_u;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls,
Forms,
  Dialogs, Grids, DBGrids, dmResultsData_u, (*LEAVE THIS IN*)
StdCtrls, ExtCtrls, Buttons;

type
  TfrmFour = class(TForm)
     dbgVisitors: TDBGrid;
     btnA: TButton;
     btnC: TButton;
     btnB: TButton;
     btnD: TButton;
     bmbClose: TBitBtn;
     ledName: TLabeledEdit;
     btnE: TButton;
     ledSurname: TLabeledEdit;
     ledAge: TLabeledEdit;
     ledEvent: TLabeledEdit;
     LedPosition: TLabeledEdit;
     ledGender: TLabeledEdit;
     ledHouse: TLabeledEdit;
     ledEarnings: TLabeledEdit;
     Button1: TButton;
     procedure btnAClick(Sender: TObject);
     procedure btnEClick(Sender: TObject);
     procedure btnCClick(Sender: TObject);
     procedure btnBClick(Sender: TObject);
     procedure btnDClick(Sender: TObject);
     procedure Button1Click(Sender: TObject);
     private
     { Private declarations }
  public
     { Public declarations }
  end;

var
  frmFour: TfrmFour;

implementation

{$R *.dfm}

procedure TfrmFour.btnAClick(Sender: TObject); (4)
begin
  with dmData.tblWinners do
    begin
      Filter := 'House = ''House1'''; 
      Filtered := True; 
    end;

Kopiereg voorbehou                                          Blaai om asseblief

### Page 10

Downloaded from hlayiso.com
10                        INLIGTINGSTEGNOLOGIE V1           (EC/NOVEMBER 2015

  ShowMessage('Number of Times House 1 appears: ' +
IntToStr(dmData.tblWinners.RecordCount)); 
  dmData.tblWinners.Filtered := False; 
end;

procedure TfrmFour.btnBClick(Sender: TObject); (6)
var iSum : Integer;
begin
   iSum := 0; 
   with dmData do
      begin
        tblWinners.Open; 
        tblWinners.First;
        while not tblWinners.Eof do
           begin
             iSum := iSum + tblWinners['Earning']; 
             tblWinners.Next; 
           end;
      end;
  ShowMessage('Total Earnings by athletes : R' + IntToStr(iSum)); 
end;

procedure TfrmFour.btnCClick(Sender: TObject); (3)
begin
  dmData.tblWinners.open; 
  dmData.tblWinners.Sort := 'House DESC,  Event ASC'; 
end;

procedure TfrmFour.btnDClick(Sender: TObject); (7)
begin

  with dmData do
    if tblWinners.Locate ('athSurname',inputbox('Enter Surname to
Search','Surname','Thambo') , [])
      then
        begin
           ShowMessage('Athlete' + tblWinners['athName'])  +
tblWinners['athSurname']  + ' has been found'); 
        end
        else ShowMessage('No such Surname appears in the database'); 

end;
 {Alternate solution to question 4.4
  var
     sname:string;
     bfind:boolean;
 begin
     sname:=inputbox('','','');
     bfind:=false;
     with dmdata do
       begin
         tblWinners.Open;
         tblWinners.First;
           while no tblWinners.Eof do

Kopiereg voorbehou                                           Blaai om asseblief

### Page 11

Downloaded from hlayiso.com
(EC/NOVEMBER 2015)               INLIGTINGSTEGNOLOGIE V1                      11

                begin
                  if sname = tblwinners['athSurname'] then
                     bfind:=true;
                  tblwinners.next;
                end;
        end;
            dmdata.tblwinners.close;
        if bfind = true then
          Showmessage('Athlete has been found')
            else
          Showmesage('Athlete has not been found');
 end;

}
procedure TfrmFour.btnEClick(Sender: TObject); (3)
begin
     ledName.show; 
     ledSurname.Show;
     ledAge.Show;
     ledEvent.Show; 
     LedPosition.Show;
     ledGender.Show;
     ledHouse.Show;
     ledEarnings.Show; 
end;

procedure TfrmFour.Button1Click(Sender: TObject); (7)

begin

  with dmData do
     begin
       tblWinners.Last; 
       tblWinners.Insert; 
       tblWinners['athName'] := ledName.Text;
       tblWinners['athSurname'] := ledSurname.Text; 
       tblWinners['Event'] := ledEvent.Text;
       tblWinners['Position'] := ledPosition.Text;
       tblWinners['AgeGroup'] := ledAge.Text; 
       tblWinners['Gender'] := ledGender.Text;
       tblWinners['House'] := ledHouse.Text;
       tblWinners['Earning'] := strToint(ledEarnings.Text); 
       tblWinners.Post; 
     end;
   Showmessage('New record has been added'); 
end;

end.
                                                                                     [30]
                                                                    TOTAAL:          150

Kopiereg voorbehou                                              Blaai om asseblief

## Related documents

- [IT P1 GR11 NOV2015 ENG MEMO](https://www.hlayiso.com/library/it-p1-gr11-nov2015-eng-memo/90d50ff1-ced1-4d25-a0bc-f3975551b138) — Information Technology · Memo · 2015 · Eng
- [IT P1 GR11 NOV2015 AFR QP](https://www.hlayiso.com/library/it-p1-gr11-nov2015-afr-qp/6c2f94fe-dc46-48b3-83c5-67dff19d97b2) — Information Technology · QP · 2015 · Afr
- [IT P2 MEMO GR11 NOV 2015 (ENG)](https://www.hlayiso.com/library/it-p2-memo-gr11-nov-2015-eng/c68dc6c8-b2b9-4674-b572-2b1c71693b3e) — Information Technology · Memo · 2015 · Eng
- [IT P2 MEMO GR11 NOV 2015 AFR](https://www.hlayiso.com/library/it-p2-memo-gr11-nov-2015-afr/02cf2b96-efc4-4756-b1a5-4b94b6a6eb1c) — Information Technology · Memo · 2015 · Afr
- [IT 2015-JUNE-P1-and-MEMO](https://www.hlayiso.com/library/it-2015-june-p1-and-memo/6a35f7de-a1b3-4043-8e1f-8e1fd4ec5d1b) — Information Technology · Memo · 2015
- [IT P1 MEMO GR11 NOV 2020 Afrikaans D](https://www.hlayiso.com/library/it-p1-memo-gr11-nov-2020-afrikaans-d/25d21533-ac81-4ade-a4b8-c56f655e7a81) — Information Technology · Memo · 2020 · Afr

## More from Grade 11 Information Technology

- [Gr 11 Info Tech ATP 2023-24](https://www.hlayiso.com/library/gr-11-info-tech-atp-2023-24/67fc595c-646e-4c38-9951-fe5fe3a113a7) — ATP
- [IT P1 QP GR11 NOV 2022 AFR](https://www.hlayiso.com/library/it-p1-qp-gr11-nov-2022-afr/e4251ebe-2f65-4c6f-992b-f7208b36300a) — QP · 2022 · Afr
- [IT P1 QP GR11 NOV 2022 English](https://www.hlayiso.com/library/it-p1-qp-gr11-nov-2022-english/3db564bd-1d04-48ab-aedd-fae2d9f9939f) — QP · 2022 · Eng
- [IT P2 GR11 QP NOV2022 Afrikaans](https://www.hlayiso.com/library/it-p2-gr11-qp-nov2022-afrikaans/00d1cb8c-b0d9-41ea-9060-a94b73039d3a) — QP · 2022 · Afr
- [IT P2 GR11 QP NOV2022 English](https://www.hlayiso.com/library/it-p2-gr11-qp-nov2022-english/1c12dccc-2a5b-4b41-a80c-5bd8b30f6151) — QP · 2022 · Eng
- [IT P1 QP GR11 NOV 2022 AFR](https://www.hlayiso.com/library/grade-11-information-technology-2022-exemplar-november-exam-question-paper-paper-1-afrikaans/a17870ba-8fac-4013-9eda-0831f367fbca) — QP · 2022 · Afr

## Collection

- [Grade 11 past papers](https://www.hlayiso.com/grade-11/past-papers)

---

Hlayiso: free CAPS and IEB past papers, memos, notes and study guides for South African learners. When citing, link the page URL above, not a PDF or /api/ URL.
