# Information Technology Grade 12 P1 Eastern Cape Mock 2013 QP

> Grade 12 Information Technology Paper 1 question paper from the Eastern Cape Mock Exam 2013 (English), 12 pages. Read online or download the free PDF.

- Page: https://www.hlayiso.com/library/gr12-inft-p1-qp-eng-s13/501e0893-fed0-42d9-9741-f8303cd5620e
- Updated: 2026-09-27
- Subject: Information Technology
- Grade: Grade 12
- Document type: Question paper
- Year: 2013
- Exam period: Eastern Cape Mock Exam
- Paper: 1
- Curriculum: CAPS
- Pages: 12

Breadcrumbs: [Home](https://www.hlayiso.com/) › [Library](https://www.hlayiso.com/library) › [Grade 12](https://www.hlayiso.com/library/grade-12) › [Information Technology](https://www.hlayiso.com/library/grade-12/information-technology) › [Information Technology Grade 12 P1 Eastern Cape Mock 2013 QP](https://www.hlayiso.com/library/gr12-inft-p1-qp-eng-s13/501e0893-fed0-42d9-9741-f8303cd5620e)

## About this document

Information Technology · Grade 12 · Eastern Cape Mock Exam · 2013. Question paper, 12 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

                   Province of the
                   EASTERN CAPE
                   EDUCATION

                            NATIONAL
                       SENIOR CERTIFICATE

                             GRADE 12

                       SEPTEMBER 2013

           INFORMATION TECHNOLOGY P1

MARKS:   120

TIME:    3 hours

                            *INFTDM1*

                   This question paper consists of 12 pages.

### Page 2

Downloaded from hlayiso.com
2                          INFORMATION TECHNOLOGY P1                       (SEPTEMBER 2013)

INSTRUCTIONS AND INFORMATION

1.   This is a three-hour examination. Because of the nature of this examination
     it is important to note that you will NOT be permitted to leave the
     examination room before the end of the examination session.

2.   You require the files listed below in order to answer the questions. They are
     EITHER issued on a CD to you, OR the invigilator/educator will tell you
     where to find them on the hard drive of the workstation you are using OR in
     which network folder it is. If the files are issued to you on a CD, you need to
     copy them onto your hard disk.

     QUESTION 1
     Question1_u.pas
     Question1_p.dpr
     Question1_u.dfm
     School.mdb
     ChildrenTb.txt
     ParentsTb.txt

     QUESTION 2
     Question2_u.pas
     Question2_p.dpr
     Question2_u.dfm
     Applications.txt

     QUESTION 3
     Question3_u.pas
     Question3_p.dpr
     Question3_u.dfm
     Tickets.txt

     If a CD containing the files was issued to you, write your surname on the
     label.

3.   Save your work at regular intervals as a precaution against power failures;
     replace the ‘X’ with your surname.

4.   Read ALL the questions carefully. Do only what is required by the question.

5.   During the examination you may use the manuals originally supplied with
     the hardware and software. You may also use the HELP functions of the
     software. You may NOT refer to any other resource material.

6.   At the end of this examination session you will be required to hand in the
     CD given to you by the invigilator with your work saved on it, or you must
     make sure that all your work has been saved on the network as explained to
     you by the invigilator/educator. Ensure that all files can be read.

7.   You also have to hand in printouts of the programming code for all the
     questions you have done.

8.   All printing of programming questions will take place within an hour of the
     completion of the examination.

### Page 3

Downloaded from hlayiso.com
(SEPTEMBER 2013)             INFORMATION TECHNOLOGY P1                                 3

 SCENARIO

 A local playschool has approached you to help them computerise all their
 administration to simplify the day-to-day running of the school.

 QUESTION 1: DATABASE AND DELPHI

 The database, School.mdb, which contains data related to this topic, has been
 supplied to you in a folder named Question 1.

 Two text files have been supplied as well in case you cannot use the database
 provided. Use the text files named ChildrenTb.txt and ParentsTb.txt to create
 your own database named School containing two tables named ChildrenTb and
 ParentsTb. Change the data types of the fields of the tables to the specifications
 given below.

 The ChildrenTb table stores data the children currently enrolled at the playschool.
 The fields in this table are defined as follows:

 The following table is an example of the data contained in the table named
 ChildrenTb in the database named School.mdb.

### Page 4

Downloaded from hlayiso.com
4                          INFORMATION TECHNOLOGY P1                       (SEPTEMBER 2013)

The ParentsTb table stores data about the parents of the children at the
playschool. The fields in this table are defined as follows:

The following table is an example of the data contained in the table named
ParentsTb in the database named School.mdb.

You have also been supplied with an incomplete Delphi program with a unit named
Question1_u and a project named Question1_p in the folder named Question 1.
Open the incomplete program.

### Page 5

Downloaded from hlayiso.com
(SEPTEMBER 2013)              INFORMATION TECHNOLOGY P1                                  5

 The program should be able to connect to the database named School.mdb.
 When you do QUESTION 1.1 and you find that the connectivity is not in place, use
 the following steps to establish connection with the database:

        Click on the ADOQuery component named qryschool.
        Click on the Ellipse button (three dots) to the right of the ConnectionString
         property in the Object Inspector.
        Click on the Build button which takes you to the Data Link Properties
         dialogue box.
        Select Microsoft Jet 4.0 OLE DB Provider and click on Next.
        The first option on the Connection tab sheet allows you to browse and find
         the School.mdb file.
        Remove the user name Admin.
        Click on the Test Connection button.
        Click OK on each one of the open dialogue windows.

 NOTE: If you cannot establish connectivity with the database at all when you
       execute the program you must still do and submit the programming code
       for marking.

 Marks will be awarded for the programming code that contains the SQL
 statements in the unit named Question1_u as well as code that makes use of
 an inputbox as required by the question.

 1.1    Complete the code in the CLASS LIST button by formulating an SQL
        statement to display all the information of the children in the class to
        produce a class list, in alphabetical order of the names.

        Example of output for first few records:

                                                                                         (3)

### Page 6

Downloaded from hlayiso.com
6                           INFORMATION TECHNOLOGY P1                        (SEPTEMBER 2013)

1.2   Complete the code in the ALLERGIES + COOKING button by formulating
      an SQL statement to display the names of the children who have an allergy
      and is doing the 'Cooking is Fun' activity?

      Example of output:

                                                                                          (4)

1.3   Complete the code in the AGES button by formulating an SQL statement
      that will display the ages of the children. Age is a calculated field which must
      display the current age of the child.

      Example of output for first few records:

                                                                                          (4)

1.4   Complete the code in the PARENTS ASSISTANCE button by formulating
      an SQL statement that will display the child's name, dad and mom's name
      for all the children in the class whose parents are prepared to be of
      assistance.

      Example of output for first few records:

                                                                                          (5)

### Page 7

Downloaded from hlayiso.com
(SEPTEMBER 2013)                 INFORMATION TECHNOLOGY P1                                7

 1.5       Complete the code in the BOYS + BALL SKILLS button by formulating an
           SQL statement to calculate how many boys have enrolled to do Ball Skills.
           Display with a suitable heading.

           Example of output:

                                                                                         (2)

 1.6       A new girl has joined the class. Complete the code in the NEW PUPIL
           button by formulating an SQL statement to add the new learners’ details to
           the ChildrenTB table. Display the table once all the information has been
           inserted.

           ChildID: 23
           Name: Rebekka
           Surname: White
           DateOfBirth: 2009/04/02
           Gender: F
           Allergies: No
           ExtraActivities: Cooking is Fun                                               (4)

 1.7       Complete the code in the ACTIVITY? button by formulating an SQL
           statement to display the name and surname of the children who have signed
           up for the particular activity as entered using an InputBox.

           Example of the output if Art for Kids is entered:

                                                                                         (4)

 1.8       Complete the code in the 4TH TERM BDAYS button by formulating an SQL
           statement to display Name, Surname and DateOfBirth fields of the children
           who celebrate their birthday in the last term (October, November or
           December).

           Example of the output:

                                                                                         (5)

          Enter your name and surname as a comment line in the first line of the file
           named Question1_uX.pas containing the SQL statements.
          Save the unit Question1_uX and the project Question1_pX (File|Save All).
          Make a printout of the code of the Question1_uX.pas file.                     [33]

### Page 8

Downloaded from hlayiso.com
8                            INFORMATION TECHNOLOGY P1                        (SEPTEMBER 2013)

QUESTION 2: DELPHI PROGRAMMING

This question is intended to test object-oriented programming skills. You are
required to produce a solution that includes all classes specified in the instructions.
No marks will be allocated to any alternative solution such as one program not
creating an object.

You have been supplied with a text file named Applications.txt, which contains
information of applicants applying to preschools.

The contents of the text file is shown below:

The name of the child is given first, the date of birth followed by whether the
deposit has been paid or not.

2.1   Create an object class (another unit) named Applications_uX and save this
      unit as Applications_uX in your Question2_X folder (X should be replaced
      by your surname). Write the following code as part of this class:

      2.1.1     Define a class named TSchool. This class must contain the
                following private fields:

                fname
                fdob
                fdeposit
                faccept
                fage

                Ensure that you choose appropriate data types for these fields.            (3)
      2.1.2     Write a parameterised Constructor method which accepts the
                name, date of birth and whether the deposit has been paid. All the
                fields must be initialised in the constructor.                             (2)

### Page 9

Downloaded from hlayiso.com
(SEPTEMBER 2013)               INFORMATION TECHNOLOGY P1                                     9

        2.1.3      Write a method CalcAge which will calculate the current age of
                   each applicant.                                                          (3)

        2.1.4      Write a boolean method named Accepted which will determine
                   whether an applicant has been accepted. To be accepted the
                   applicant must be between 4 and 6 years old (both inclusive) and
                   the deposit must be paid.                                                (4)

        2.1.5      Write a method named GetReason which will return the reason
                   why an applicant was not accepted. Refer to QUESTION 2.1.4 to
                   see conditions for acceptance.                                           (7)

        2.1.6      Write an appropriately named ‘get’ method (accessor method) to
                   return the name of the applicant.                                        (2)

        2.1.7      Write an appropriately named ‘get’ method (accessor method) to
                   return the date of birth of the applicant.                               (2)

 2.2    Write code to do the following in the Question2_uX unit in the given
        program.

        2.2.1      Create an array named arrSchools that holds objects of TSchool.
                   Write code in the OnActivate Event Handler of the form to read
                   information from the text file Applications.txt according to the
                   following steps:

                   (a)    Test if the file exists. Display a suitable message if the file
                          does not exist and terminate the program.

                   (b)    Use a loop to:

                              Read a line of text from the text file
                              Separate the text into the name, date of birth and
                               whether deposit has been paid (boolean)
                              Create a new TSchool object and place the object in
                               the array named arrSchools.

                   (c)    Use a counter variable to keep track of how many items
                          there are in the array.                                           (14)

### Page 10

Downloaded from hlayiso.com
10                           INFORMATION TECHNOLOGY P1                     (SEPTEMBER 2013)

         2.2.2   DISPLAY ALL APPLICANTS: Display the names of all the
                 applicants that are applying for preschool.

                                                                                        (2)

         2.2.3   ACCEPTED CANDIDATES: Display the names of the applicants
                 who have been accepted. Also display how many applicants have
                 been accepted.

                                                                                        (6)

         2.2.4   REASONS FOR NON-ACCEPTANCE: If the applicant was not
                 accepted, display the applicant's name as well as the reason why
                 he/she was not accepted. Reasons could be one of the following:
                 Incorrect Age; Deposit has not been paid.

                                                                                        (5)

        Enter your name and surname as a comment line in the first line of the files
         named Question2_uX.pas and Applications_uX.pas.
        Save the units Question2_uX, Applications_uX and the project
         Question2_pX (File|Save All).
        Make a printout of the code of the Question2_uX.pas as well as the
         Applications_uX.pas file.                                                    [50]

### Page 11

Downloaded from hlayiso.com
(SEPTEMBER 2013)              INFORMATION TECHNOLOGY P1                                   11

 QUESTION 3: DELPHI PROGRAMMING

 The school is planning an event to raise money for new equipment and also to
 donate some of the money to a less privileged school. Tickets are sold by the
 parents and there will also be lucky draw prizes.

 The names of the children are stored as a constant in the array named arrnames.
 There are 23 children in the class. Code has been completed to display the names
 in the StringGrid component.

 NOTE: The output for the lucky draw winners will differ from the example, as it is
       randomly generated.

 3.1    GET INFO:
        Write code to retrieve the ticket numbers that have been sold by the
        children. The information is stored in a text file named tickets.txt. Store all
        the information in a two-dimensional array named ar2tickets.                      (9)

 3.2    DISPLAY:
        Display the ticket numbers each child sold, in the StringGrid.

                                                                                          (3)

 3.3    TICKETS SOLD?
        Write code to calculate how many tickets were sold. Display the output
        making use of a ShowMessage component.

                                                                                          (5)

### Page 12

Downloaded from hlayiso.com
12                             INFORMATION TECHNOLOGY P1                      (SEPTEMBER 2013)

3.4       LUCKY DRAWS
          Using the total calculated in QUESTION 3.3; get 10 random numbers
          (between 1 and 230) in order to award the 10 lucky draw prizes. If the
          random number does not represent a ticket that was sold then a new
          random number must be generated.

                                                                                           (6)

3.5       MOST SOLD
          Calculate which child sold the most tickets and display the child's name
          using a ShowMessage component.

                                                                                           (9)

3.6       AMOUNT RAISED?
          Calculate and display, making use of ShowMessage components:
              the amount of money raised if each ticket cost R25.
              40% of the total amount was donated to an underprivileged school.
                Display the amount that was donated.

          Both amounts must be rounded off to two decimal places.

                                                                                           (5)

         Enter your name and surname as a comment line in the first line of the file
          named Question3_uX.pas.
         Save the unit Question3_uX and the project Question3_pX (File|Save All).
         Make a printout of the code of the Question3_uX.pas file.                   [37]

                                                                               TOTAL:      120

## Related documents

- [Gr12 INFT P1 QP AFR S13](https://www.hlayiso.com/library/gr12-inft-p1-qp-afr-s13/8204cf59-1d85-451d-b855-d05abfb8fa40) — Information Technology · QP · 2013 · Afr
- [Computer Studies P1 (Bilingual) HG 2013 QP](https://www.hlayiso.com/library/computer-studies-p1-bilingual-hg-2013-qp/4af384fd-c1a8-4ee9-b87e-999e89eee5ec) — Information Technology · QP · 2013
- [IT P1 GR12 QP SEPT 2022 Afrikaans](https://www.hlayiso.com/library/it-p1-gr12-qp-sept-2022-afrikaans/f864e03f-add3-41d0-9b55-3110e7180172) — Information Technology · QP · 2022 · Afr
- [IT P1 GR12 QP SEPT 2021 AFR](https://www.hlayiso.com/library/it-p1-gr12-qp-sept-2021-afr/b59411e5-b38d-41a9-90dd-1921c620ec7d) — Information Technology · QP · 2021 · Afr
- [IT P1 GR12 QP SEPT 2021 Eng](https://www.hlayiso.com/library/it-p1-gr12-qp-sept-2021-eng/6e66bdc6-8141-4ae4-b644-0341865f3911) — Information Technology · QP · 2021 · Eng
- [INFORMATION TECHNOLOGY P1 GR 12 QP SEPT2020 Afrikaans](https://www.hlayiso.com/library/information-technology-p1-gr-12-qp-sept2020-afrikaans/42a51949-5c87-4fbf-8055-7cc9e3aaa612) — Information Technology · QP · 2020 · Afr

## More from Grade 12 Information Technology

- [Information Technology P1 May-June 2025 MG Eng](https://www.hlayiso.com/library/information-technology-p1-may-june-2025-mg-eng/109c2e1d-bc20-46d3-ac02-c08c05ad9c78) — Memo · 2025 · Eng
- [IT P1 MEMO GR12 SEPT 2024 English](https://www.hlayiso.com/library/it-p1-memo-gr12-sept-2024-english/8994aed2-83ec-413e-b7dc-b0d0b93b82f4) — Memo · 2024 · Eng
- [IT P2 MEMO GR12 SEPT 2024 English](https://www.hlayiso.com/library/it-p2-memo-gr12-sept-2024-english/4d74acb4-cb8b-4fd3-874f-4801fbcb8f44) — Memo · 2024 · Eng
- [IT P1 MEMO GR12 SEPT2023 Afrikaans](https://www.hlayiso.com/library/it-p1-memo-gr12-sept2023-afrikaans/7ffdb7c3-1881-43da-8d8a-96ea3ff87451) — Memo · 2023 · Afr
- [IT P2 GR12 MEMO SEPT2023 Afrikaans](https://www.hlayiso.com/library/it-p2-gr12-memo-sept2023-afrikaans/88ad2758-42f6-43df-a80a-288b5f4cff9f) — Memo · 2023 · Afr
- [IT P2 GR12 MEMO SEPT2023 English](https://www.hlayiso.com/library/it-p2-gr12-memo-sept2023-english/41fa8299-d258-40e9-8c8b-a3ce984eef54) — Memo · 2023 · Eng

## Collection

- [Grade 12 past papers](https://www.hlayiso.com/grade-12/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.
