grd10 - 2022-23 - T2 - Mock - P2
grd10 - 2022-23 - T2 - Mock - P2
grd10 - 2022-23 - T2 - Mock - P2
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.
75
This document consists of 11 printed pages including the cover page
© AIS 2023
Ahmadhiyya International School Examinations [Turn over
MOCK EXAM 2022-23
- 2 of 11 -
1. Explain the following: [5]
2D Array:
Constant:
Flowchart:
Simple conditional
If...then...else...end if
statement
4. Write an algorithm using Repeat...Until loop to input the number of chess moves each played
by 30 players. Make sure you validate the input, and re-input the value till it is correct. No
negative values are allowed. Finally output the lowest number of moves. [5]
3, 5, 1, 0, 3, 7, 0, 0, 3, 5, 0, 3, 3, 7, 1, 1, –1, 0, 0, 0
b. Complete the truth table for the above logic circuit. [5]
T C W X
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
1 1 0
1 1 1
a. Suggest the data type for each of the fields listed below. [5]
c. Give two validation checks that could be used while entering stock data. [2]
d. The following results were output when a query was run by applying a criteria in 4G field
Complete the SQL statement that caused the above records to be output. [4]
SELECT ..............................................................................................................................
FROM .................................................................................................................................
WHERE ..............................................................................................................................
ORDER ..............................................................................................................................
e. Complete the SQL statement to display Brand, Model and stock of mobiles with OLED
technology. [4]
SELECT ..............................................................................................................................
FROM .................................................................................................................................
WHERE ..............................................................................................................................
b. Suggest one way you could minimise the lines in the program. [2]
c. What would be the output if the user input the option as “m”? [1]
d. What would be the output if the user input the option as “x”? [1]
[15]