Mock P2 Ais Cie Igcse Computer Sci
Mock P2 Ais Cie Igcse Computer Sci
Mock Exam
Grade 10
CANDIDATE
CLASS
NAME
CENTRE CANDIDATE
NUMBER NUMBER
Write your Centre number, candidate number and name on all the work you hand in.
Write in dark blue or black pen.
You may use an HB pencil for any diagrams or graphs.
Do not use staples, paper clips, glue or correction fluid.
DO NOT WRITE IN ANY BARCODES.
50
This document consists of 10 printed pages including the cover page
© AIS 2022
Ahmadhiyya International School Examinations [Turn over
MOCK EXAM 2021-22
- 2 of 10 -
Section A
You are advised to spend no longer than 40 minutes answering this section.
In preparation for the examination candidates should attempt the following practical tasks by
writing and testing a program or programs.
A program is needed to allow a Wildlife Park to sell tickets. A booking consists of one or more
tickets for the same day(s) and can be made up to a week in advance. A booking can be made for
a visit of one day or two consecutive days. A booking can have extra attractions included. A
booking will be valid for the day(s) chosen only.
Ticket Type Cost for one day Cost for two days
one adult $20.00 $30.00
one child (an adult may bring up to two children) $12.00 $18.00
one senior $16.00 $24.00
family ticket (up to two adults or seniors and three children) $60.00 $90.00
groups of six people or more, price per person $15.00 $22.50
You will need to complete these three tasks. Each task must be fully tested.
Task 1 – displaying the ticket options and the extra attractions available
Set up your program to:
• display the options, attractions and prices for one-day tickets
• display the options, attractions and prices for two-day tickets
• show the days available for booking; assume that there are tickets available for any valid day.
Purpose:
Array 2:
Purpose:
Array 3:
Purpose:
(ii) Name one constant you used in Task 1 and state the purpose of each one. [1]
Constant:
Purpose:
(iii) Write the program code / pseudocode to display the ticket options, extra attractions
available and the days available for booking. You should show your variables / constants /
arrays and declaration of data type clearly. [7]
b. Discuss how you plan to ensure best booking as required in Task 3? [2]
c. In Task 2, for each booking, a booking number needs to be given, total to be calculated and
number of days with week day names is required to be displayed in the end. Write the program
code used for: [7]
Booking number:
Start
num[3]={ 9 , 5, 7 }
i=1
NO
i<=3 Print “Done”
YES
Stop
j=i+1
NO
j<=3
j=j+1
i=i+1
a. Trace the above flowchart and write down the value of num ( i ) and num ( j ) when i was 1. [3]
num ( i ) = num ( j ) =
Set 1: t, T, $, 3
Set 2: T, 4, T, $, # [4]
0 T 4 Access denied
1 T $ # Access granted
2
c. The above algorithm has a bug which cannot be found with the given test data. Identify the
error. [1]
b. Counting
c. Inbuilt function
Face
CCTVID Brand Type Resolution Price Motion detection stock
detection
a. Suggest the data type for each of the required fields listed below. [5]
Face
CCTVID Brand Resolution Price
detection
D101 Hikvision 2688x1520 Yes $125.00
B105 Bosch 1920x1080 No $100.00
Complete the query-by-example grid that caused the above records to be output. [5]
Field
Table
Sort
Show
Criteria
or