All papers

Computer Science · OCR H446 · Computer systems · June 2018

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

2h 30m 140 marks

Practise the past exam questions by topic

OCR H446 · Paper 1

10 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 digital coffee making machine has a CPU that uses the Little Man Computer Instruction Set.

(a)

Little Man Computer operates on a computer system based on the Von Neumann Architecture.

(a)(i)

State two features of the Von Neumann architecture.

Question 1, shown as an image

2

[2]

(a)(ii)

Describe one feature, not part of the standard Von Neumann Architecture, which contemporary CPUs may have in order to improve performance.

Figure for question 1

[2]

(b)

Part of the coffee making machine’s code asks the user to press a button to select strength. The code outputs 1 which will switch on a green light to indicate a valid selection or outputs 0 to indicate an invalid selection.

The code is shown below:

Figure for question 1
(b)(i)

Tick the appropriate boxes below to indicate which inputs will result in a green light (i.e. code outputs 1) and which with a red light.

Figure for question 1

[2]

(b)(ii)

Explain which registers and buses are used, and the values they store/carry, when the line LDA redLight is executed (after it has been fetched and decoded). You should assume the address redLight refers to memory location 11.

Figure for question 1

[6]

(b)(iii)

Write code in a high‑level language or pseudocode that has the same functionality as the code in Fig. 1.

Figure for question 1

[3]

(b)(iv)

* Discuss the differences between assembly code and high‑level languages. You should refer to:

• the advantages and disadvantages of writing programs in assembly code rather than a high-level language

• when each approach might be used

• why the coffee machine was programmed in assembly code.

Figure for question 1

[9]

Question 2

A software company decides to build an operating system for OCR smart watches.

(a)

Memory management is one of the functions of an operating system.

(a)(i)

List three functions, other than memory management, of an operating system.

Question 2, shown as an image

2

3

[3]

(a)(ii)

Part of a computer’s memory is represented below (Fig. 2). The operating system divides the memory into equally sized chunks.

Figure for question 2

State the name of the type of memory management used in Fig. 2.

Figure for question 2

[1]

(a)(iii)

The operating system needs to load program C into memory but there is not enough space. Describe how the operating system would use virtual memory to load program C.

Figure for question 2

[3]

(b)
Figure for question 2
(b)(i)

Write the HTML to produce the extract from the webpage above. You can assume it will be placed within the <body> tags of a pre-existing page. You do not need to specify the font.

Figure for question 2

[5]

(b)(ii)

Explain what happens when a search engine indexes the page. You do not need to discuss ranking.

Figure for question 2

[3]

(b)(iii)

Explain why using a RISC processor rather than a CISC processor is likely to result in increased battery life.

Figure for question 2

[3]

Question 3

Figure for question 3
(a)

Describe what the SQL statement below does.

SELECT FlightNumber FROM Flight WHERE DestinationCode='JFK'

Figure for question 3

[2]

(b)

The airport cancels all its flights to Heathrow on 4th July 2018.

The SQL statement below shows all the data for flights going to Halifax. Rewrite it so it instead removes all flights to Heathrow on 4th July 2018.

SELECT * FROM Flight WHERE DestinationName='Halifax'

Figure for question 3

[3]

(c)

Tables often have primary and secondary keys.

(c)(i)

State why DestinationCode would not be a suitable primary key for the Flight table.

Figure for question 3

[1]

(c)(ii)

State why DestinationCode would be a suitable secondary key for the Flight table.

Figure for question 3

[1]

(d)

The airline wishes to ensure the database is normalised.

(d)(i)

Describe why the database can be considered to be in First Normal Form.

Figure for question 3

[2]

(d)(ii)

Describe why the database can be considered to be in Second Normal Form.

Figure for question 3

[2]

(d)(iii)

Describe why the database can not be considered to be in Third Normal form.

Figure for question 3

[2]

(e)

The airport wishes to allow airlines to be able to access the data it has on flights via the internet.

Describe one format or method the airport could use to provide the data to the airlines so they can use it in their own applications.

Figure for question 3

[2]

Question 4

The internet can be considered an example of a WAN.

(a)

Describe what is meant by the term ‘WAN’.

Figure for question 4

[2]

Answer
Mark scheme for question 4(a)
(b)

The internet uses a set of protocols referred to as the TCP/IP stack. The TCP/IP stack consists of four different layers, each with its own set of protocols.

(b)(i)

Explain why protocols are important on a network.

Figure for question 4

[2]

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

State the name of the four layers of the TCP/IP stack.

Question 4, shown as an image

2

3

4

[4]

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

Question 5

A software company is producing software that allows users with severe mobility issues to input data into a computer.

The software flashes up letters on the screen one at a time. The user sends a signal to the computer when the letter they want appears on the screen.

(a)

State the name of an input device and describe how it could be used by a user with very limited mobility in their hands and arms to send a signal to the computer.

Question 5, shown as an image

How it would be used:

[2]

(b)

Rather than displaying the whole alphabet, once the first letter has been entered, the program only shows letters that could be possible according to words in its dictionary. All possible words are stored in a tree data structure.

The program is tested on a sample dictionary of four words, represented as a tree in Fig. 3:

Figure for question 5
(b)(i)

Annotate Fig. 3 to show how the word BELTS would be removed from the tree.

[2]

(b)(ii)

Annotate Fig. 3 to show how the words BEACH and BONE would be added to the tree.

Figure for question 5

[2]

(c)

The developer decides she wants to make the software program open source.

Explain the benefits to the users of the software being open source.

Figure for question 5

[2]

Question 6

6* “Technology is changing too quickly for the law to keep up.”

Discuss to what extent you agree with the statement above. In your discussion you should explain which laws regulate the use of technology and how advancements in technology have made the laws difficult to enforce/implement.

maths symbol

[12]

Question 7

A taxi firm is investigating replacing its drivers with self-driving cars.

(a)

Explain why the self-driving system will use a real-time operating system.

Figure for question 7

[3]

(b)

The code for the self-driving system has been written using an object-oriented programming language.

It recognises obstacles in the road and then classifies them. The class for Obstacle is shown below.

Figure for question 7
(b)(i)

Write a line of code to create an object called bollard of type Obstacle which is not moving and is 7.8 metres away in a direction of 8 degrees.

Figure for question 7

[2]

(b)(ii)

Describe an example of encapsulation in the class definition code above.

Figure for question 7

[2]

(b)(iii)

Describe the advantages of using encapsulation.

Figure for question 7

[2]

(c)

The self-driving program recognises people as a special type of obstacle and the class Person should inherit the methods and attributes of Obstacle. People are treated like other obstacles except:

• when the updateDistance method is called, if the person is more than 2 metres away but is 5 metres (or less) away, the method Controls.beepHorn() is called.

• when the person is 2 metres away (or closer), the method Controls.applyBrakes() is called as well as Controls.beepHorn().

Complete the class Person.

Figure for question 7 Figure for question 7 Figure for question 7

[5]

(d)

Give one advantage and one disadvantage to the customers of the taxi using self-driving cars rather than drivers.

Advantage

Figure for question 7

Disadvantage

Figure for question 7

[2]

Question 8

A student writes a program to apply a symmetric encryption algorithm to work on messages of up to 25 ASCII characters.

(a)

Describe what is meant by the term ‘ASCII’.

Figure for question 8

[2]

(b)

The encryption algorithm works in the following way. A message of up to 25 characters (spaces and punctuation are not included) is placed in a 5×5 array. Any leftover spaces are filled with random letters. The message I LOVE COMPUTER SCIENCE becomes:

ILOVE
COMPU
TERSC
IENCE
TOWRM

The key is a sequence of ten numbers. In this example we will use 1 2 3 4 5 1 2 3 4 5. The first 5 numbers state how many spaces the rows 0 to 4 must be rotated right.

A key with the first 5 digits 1 2 3 4 5 would result in

EILOV
PUCOM
RSCTE
ENCEI
TOWRM

The next 5 digits state how many spaces down the columns 0 to 4 should be rotated.

Applying the last 5 digits 1 2 3 4 5 to the grid above would give

TNCOV
EOCTM
PIWEE
RULRI
ESCOM

Part of the pseudocode for the algorithm is written below.

Figure for question 8

Show the result of running the algorithm on the grid and key below.

KEY: 3 3 3 3 3 1 1 1 1 1

TOPSE
CRETM
ESSAG
EYRPL
UOGGQ

Grid after only the rows are shifted:

Figure for question 8

Grid after columns have also been shifted:

Figure for question 8

[2]

(d)

*Modern encryption is much stronger than the method described in the first part of this question. Discuss the impact of modern encryption on society. You should refer to:

• The importance of asymmetric encryption and how it differs from symmetric encryption.

• Different circumstances in which symmetric and asymmetric encryption may be used.

Figure for question 8

[9]

Question 9

(c)

Convert the binary number shown below to hexadecimal.

0011011100001111

Figure for question 9

[2]

(d)

The number below is represented in floating point format with a 5-bit mantissa in two’s complement followed by a 3-bit exponent in two’s complement. Calculate the denary value of the number, showing your working.

01001 010

Figure for question 9

[3]

(e)

The numbers below are represented in floating point format with a 5-bit mantissa in two’s complement followed by a 4-bit exponent in two’s complement. Normalise the numbers shown below, showing your working.

00011 0010

Figure for question 9

11100 0110

maths symbol

[4]

(f)

Show the byte below after having an AND applied with the masking byte.

Byte10111001
AND11111111
Result

[1]

(g)

Show the byte below after having an OR applied with the masking byte.

Byte10111001
OR11111111
Result

[1]

The paper as printed

Spotted a mistake on this page?Report a problem