Computer Science
H446/02: Algorithms and programming
*9903986995*
A Level
INSTRUCTIONS
• Use black ink. You can use an HB pencil, but only for graphs and diagrams.
• 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 140.
• 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 32 pages.
ADVICE
• Read each question carefully before you start your answer.
© OCR 2024 [601/4911/5] DC (PQ/CGW) 325009/6
OCR is an exempt Charity
Turn over
Section A
1 A student has written this pseudocode algorithm:
01 a = 12
02 do
03 b = input("Enter a number")
04 until b >= 0 and b <= 100
05 for c = 1 to a
06 print(c * a)
07 next c
(a) The program uses variables.
, 2
(i) Describe what is meant by a variable.
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
............. [2]
(ii) Give the identifiers of all the variables used in this program.
........................................................................................................................................
............. [1]
(b) The student has used a do loop on line 02.
Describe the difference between a do loop and a while loop.
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
[2] (c) Rewrite lines 05 to 07 to use a while loop instead of a for loop.
You should write your answer using either program code or pseudocode.
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
© OCR 2024
, 3
........................................................................................................................................
..................
........................................................................................................................................
............. [4]
© OCR 2024 Turn over
, 4
2* A company runs a Virtual Learning Environment (VLE). Schools can register students
to use the VLE. The students get their own account and the school can view and
monitor their students who are registered. There are currently over 10 000 schools
registered, each with up to 1000 students.
The students can watch videos, take quizzes and communicate using forums and
online chat tools.
The company gathers a large amount of data and wants to use data mining to help
them decide how to improve the VLE in the future.
Discuss how the company can use data mining to decide how to improve the VLE.
You should include the following in your answer:
• the characteristics of data mining
• the benefits of data mining in this scenario • the
drawbacks of data mining in this scenario.
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
........................................................................................................................................
..................
© OCR 2024