All papers

Computer Science · OCR H446 · Computer systems · June 2022

OCR A Level Computer Science Computer systems June 2022 question paper H446/01

2h 30m 140 marks

Practise the past exam questions by topic

OCR H446 · Paper 1

6 questions
Report a problem
What is wrong?

Goes to whoever maintains the question split. No account needed and nothing is published on this page.

Question 1

A charity uses a desktop computer to record financial donations that it receives. The computer contains a single core, 2.4GHz processor with 2MB cache.

(a)

The processor uses the Von Neumann architecture.

(a)(i)

Describe what is meant by the term ‘Von Neumann architecture’.

[2]

(a)(ii)

Give one way that the Harvard architecture differs from the Von Neumann architecture.

[1]

(b)

The charity is concerned that the performance of the computer is not sufficient and wishes to replace the processor.

Give two features of a replacement processor that would increase the typical performance of the computer.

[2]

(c)

Fig. 1 shows assembly code written using the Little Man Computer (LMC). The program calculates and outputs the total amount that is donated to the charity in any particular day. Depending on the amount, an additional bonus may be added to each amount donated.

Figure for question 1
(c)(i)

The program shown in Fig. 1 is run once using three different inputs. Therefore, while the program is running once, it will output the updated total three times.

Give the total values that are output when the values 10, 50 and 120 are input into this program.

[3]

(c)(ii)

Write LMC code that will reset the value of the memory location labelled total to zero and then stop the program.

[4]

(c)(iii)

This program is run on a processor that allows pipelining.

Define the term ‘pipelining’.

[3]

(c)(iv)

Explain one benefit to the charity of using a processor that allows pipelining.

[2]

(d)

The processor contains registers including the accumulator and the program counter. The contents of these registers are modified during the Fetch-Decode-Execute cycle.

(d)(i)

Describe how the accumulator is used during the Fetch-Decode-Execute cycle.

[2]

(d)(ii)

Describe how the program counter is used during the Fetch-Decode-Execute cycle.

[2]

(d)(iii)

State the name of three other registers that are used during the Fetch-Decode-Execute cycle.

[3]

(e)

* The charity has several desktop computers in their office that use a CISC processor. They are considering buying mobile devices for their staff to use when they are not in the office.

Discuss whether these mobile devices should use the same CISC processors that are used in their desktop computers or if they should use a RISC processor instead.

You should include the following in your answer:

• the difference between each processor type

• the suitability of each processor type for mobile devices.

[12]

Question 2

A video streaming service uses a relational database. An extract of the data from two tables from this database is shown in Fig. 2.

Membership contains data about current memberships that customers hold and package contains data about different streaming packages available.

Figure for question 2
(a)(i)

State what is meant by the term ‘primary key’.

[1]

(a)(ii)

Identify the foreign key used in the database and the table name where this is a foreign key.

[2]

(a)(iii)

Identify the data type of the CostPerMonth(£) field.

[1]

(a)(iv)

Give the name of the field that could be stored using a Boolean data type.

[1]

(b)

The Adverts field indicates if customers will be shown adverts. true indicates that customers will be shown adverts, and false indicates that adverts are not shown.

Write Structured Query Language (SQL) to return the Username and FirstName fields for all customers who see adverts.

[5]

(c)

When new customers join the streaming service, their name, email address and contact details are captured so that they can be entered into the database.

(c)(i)

Identify one method of capturing a new customer’s personal data, describing why this method is suitable.

[3]

(c)(ii)

Sometimes the company may need to move or backup its data they hold about customers.

Identify two methods of exchanging data with other computer systems.

[2]

(d)

The database supports ACID transactions. ACID stands for Atomicity, Consistency, Isolation and Durability.

(d)(i)

Describe what is meant by a transaction being durable.

[2]

(d)(ii)

Give one way that durability can be achieved for a completed transaction.

[1]

(d)(iii)

Explain how record locking can be used to ensure that the ACID principle of isolation is achieved when carrying out multiple transactions.

[3]

(d)(iv)

Give one disadvantage of using record locking.

[1]

(e)

The Copyright Designs and Patents Act 1988 applies to all videos that are streamed.

Explain how this act applies to the videos.

[2]

(f)

All videos that are streamed are compressed. Customers have the option to choose from watching the videos with lossy compression or lossless compression.

Explain how this choice will impact the customer.

[5]

(g)

A program is written using an object-oriented programming paradigm and uses a class called video to organise the videos that are streamed to customers.

The class video has these attributes:

• name

• number of views

• star rating.

The constructor method will set the name attribute to the name that is passed in as a parameter. The constructor will also initially set the number of views to 0 and the star rating to 3.

(g)(i)

Write program code or pseudocode to declare the class video and initialise the required attributes as private.

You should include both the attribute definitions and the constructor method in your answer.

[7]

(g)(ii)

A public method called updateviews() will update the number of views after a video has been viewed. This method is defined inside the video class.

Write program code or pseudocode for the method updateviews() to increase the number of views by one.

[2]

Question 3

(a)(i)

Convert the hexadecimal value B7E to a binary number.

[1]

(a)(ii)

110010101 is a binary number that is represented using sign and magnitude.

Convert this binary number to a denary number.

[1]

(a)(iii)

Complete this binary subtraction. Both numbers are 8-bit integer values represented using two’s complement.

Show the result in the same format and show your working.

0110 1101 – 0011 0100

[3]

(b)

The normalised floating point number 1010 1110 is stored using 4 bits for the mantissa and 4 bits for the exponent, both in two’s complement.

Give the denary version of this number, showing your working.

[4]

(c)

Table 3 here shows floating point numbers that are stored using 6 bits for the mantissa and 3 bits for the exponent, both in two’s complement.

Tick (✓) one box in each row to state whether each number is normalised or not normalised.

Figure for question 3

[4]

Question 4

4* Amit is studying Computer Science at university. He has been asked to write an assignment on Artificial Intelligence (AI).

Discuss the extent to which you think computer systems will inherit the biases and discrimination of their programmers as the use of AI increases.

You should include the following in your answer:

• the meaning of AI

• examples of when AI may be affected by bias

• the measures that can be taken to prevent people being affected by bias in AI.

[9]

Answer
Mark scheme for question 4

Question 5

A programmer creates this function shown in Fig. 5 using a high-level language.

Figure for question 5
(a)(i)

State the value output by the line print(mystery(10,20))

[1]

(a)(ii)

State the value output by the line print(mystery(0,70))

[1]

(a)(iii)

State the value output by the line print(mystery(45,55))

[1]

(b)

Before the code in Fig. 5 can be executed, a translator must be used.

(b)(ii)

Explain two differences between a compiler and an interpreter.

[4]

(c)

For each statement shown in Table 5, tick (✓) one box in each row to indicate which stage of compilation each action takes place at.

Figure for question 5

[5]

(d)

Describe the purpose of code optimisation.

[2]

(e)

The programmer creates another function to count and return how many capital letters are in a string that is passed into the function as a parameter.

The asc() function takes in a character and returns its ASCII value. For example asc("A") returns 65. Capital letters have ASCII values between 65 and 90 inclusive.

(e)(ii)

Give one similarity between ASCII and Unicode.

[1]

(e)(iii)

Give two differences between ASCII and Unicode.

[2]

(f)

* The programmer has been asked by a client to create a complex computer program. Compare the spiral model and waterfall lifecycle methodologies for this task.

You should include the following in your answer:

• how both methodologies could be used to develop a complex computer program

• the benefits of each methodology for this task

• the drawbacks of each methodology for this task.

[9]

Question 6

Anika’s computer runs a multi-tasking operating system. She has access to a printer and a broadband internet connection through a wireless connection. The operating system uses scheduling algorithms such as first come first served and round-robin.

(a)(i)

Explain why the computer’s operating system uses a first come first served algorithm when sending documents to the printer.

[2]

Answer
Mark scheme for question 6(a)(i)
(a)(ii)

Explain why the computer’s operating system uses a round-robin algorithm for allocating processor time.

[3]

Answer
Mark scheme for question 6(a)(ii)
(a)(iii)

Describe one other scheduling algorithm.

[2]

Answer
Mark scheme for question 6(a)(iii)
(b)

Anika uses an encrypted messaging program to communicate with her friends. The computer uses the TCP/IP stack.

(b)(i)

Explain what happens at the application layer of the TCP/IP stack when using this program.

[5]

Answer
Mark scheme for question 6(b)(i)
(b)(ii)

Explain what happens at the link layer (sometimes referred to as the “network interface layer”, “network access layer” or simply the “network layer”) of the TCP/IP stack when using this program.

[2]

Answer
Mark scheme for question 6(b)(ii)

The paper as printed

Spotted a mistake on this page?Report a problem