AS Level Computer Science
H046/02 Algorithms and problem solving
JUNE 2022
Time allowed: 1 hour 15 minutes
INSTRUCTIONS
• Use black ink.
• Write your answer to each quest
...
AS Level Computer Science
H046/02 Algorithms and problem solving
JUNE 2022
Time allowed: 1 hour 15 minutes
INSTRUCTIONS
• Use black ink.
• Write your answer to each question in the space provided. If you need extra space use the lined pages at the end of this booklet. The question numbers must be clearly shown.
• Answer all the questions.
INFORMATION
• The total mark for this paper is 70.
• The marks for each question are shown in brackets [ ].
• Quality of extended response will be assessed in questions marked with an asterisk (*).
• This document has 16 pages.
ADVICE
• Read each question carefully before you start your answer.
© OCR 2022 [601/5030/0] DC (ST/CGW) 300547/6
OCR is an exempt Charity
Turn over
Answer all the questions.
1 Ruhail owns ten different function rooms which can be hired by different business customers to hold meetings. He would like a program to manage the booking process of each room.
Customers should be able to enter the date they want to hire a function room, and then a list of available rooms will be displayed. Customers can then select which room they want to hire. Customers can then enter their payment details which are then checked and then a confirmation email is sent to the customer.
(a) Complete the structure diagram below to show the different component parts of the problem.
[4]
(b) Ruhail will make use of an Integrated Development Environment (IDE).
State the purpose of an IDE.
...................................................................................................................................................
.............................................................................................................................................. [1]
(c) State two different programming constructs and give an example of how Ruhail could use each construct when creating his program code.
1 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
(d) Ruhail will test his program code to make sure that it works correctly.
State two test strategies that Ruhail could use.
1 ................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
[2]
(e) Ruhail will make use of a software development life cycle methodology.
State two software development methodologies that Ruhail could consider using.
1 ................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
[2]
(f) Ruhail has been told to make use of reusable components when creating his program code.
Explain two benefits of using reusable components when writing program code.
1 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
2 ................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
[4]
[Show More]