h446_01-computer-systems-practice-paper-a
h446_01-computer-systems-practice-paper-a
Candidate Candidate
forename surname
INSTRUCTIONS TO CANDIDATES
• Write your name, centre number and candidate number in the boxes above. Please write clearly and in capital letters.
• Use black ink. HB pencil may be used for graphs and diagrams only.
• Answer all the questions.
• Read each question carefully. Make sure you know what you have to do before starting your answer.
• Where space is provided below the question, please write your answer there.
• You may use additional paper, or a specific Answer sheet if one is provided, but you must clearly show your candidate number, centre number
and question number(s).
© OCR 2017. You may photocopy this page. Page 1 of 21 Created in ExamBuilder
Answer all the questions.
1(a). A company releases a utility called RAMStore. The utility creates a virtual storage drive from
an area of the computer's RAM.
[2]
[1]
(c). The utility periodically copies what is in the RAM drive to secondary storage, such as a hard
disk. Explain why this is necessary.
[2]
(d). It is important that enough RAM is left for the operating system to use. Describe a technique
that allows operating systems to overcome a lack of available RAM.
© OCR 2017. You may photocopy this page. Page 2 of 21 Created in ExamBuilder
[4]
2. * Modern computers tend to have magnetic or solid state (flash) hard drives. Discuss which
hard drive you would recommend for a keen video games player to use on their desktop PC.
© OCR 2017. You may photocopy this page. Page 3 of 21 Created in ExamBuilder
[9]
i. Denary:
[1]
ii. Hexadecimal:
[1]
(b). An AND operation with the mask 10101010 is applied to the binary number 01010101. Show
the result.
[1]
(c). An OR operation with the mask 10101010 is applied to the binary number 01010101. Show
the result.
[1]
© OCR 2017. You may photocopy this page. Page 4 of 21 Created in ExamBuilder
(d). 00001100 is shifted two places to the left.
[1]
[1]
[1]
[1]
(f). A computer represents floating point binary numbers using a 6-bit mantissa and 4-bit
exponent, both using two's complement.
© OCR 2017. You may photocopy this page. Page 5 of 21 Created in ExamBuilder
Add the following three numbers together and give the answer in the format described. You
must show your working.
[6]
4(a). Below are extracts from the ASCII and EBCDIC character sets.
ASCII
EBCDIC
Explain, referring to ASCII and EBCDIC, what would happen if computers were to use different
character sets when communicating.
© OCR 2017. You may photocopy this page. Page 6 of 21 Created in ExamBuilder
[2]
(b). Write a function that given the denary value of an EBCDIC uppercase letter, returns the denary
value of an ASCII uppercase letter. If a value is entered that doesn't correspond to an
uppercase EBCDIC letter the function should return −1.
e.g.
© OCR 2017. You may photocopy this page. Page 7 of 21 Created in ExamBuilder
endfunction
[5]
5(a). The following is a program written using the Little Man Computer instruction set.
[2]
[1]
© OCR 2017. You may photocopy this page. Page 8 of 21 Created in ExamBuilder
[3]
(d). Explain the buses and registers used when the line SUB one is executed.
[5]
(e). Explain, giving an example, how pipelining in a CPU could speed up the execution of this
program.
[3]
(f). Describe one issue the line BRP start may cause for a CPU using pipelining.
© OCR 2017. You may photocopy this page. Page 9 of 21 Created in ExamBuilder
[2]
(g). Pipelining is one factor that affects the performance of a CPU. Identify one other factor.
[1]
The first thing the program does is add every tag in a piece of text to the data structure
.
The string type variable holds the code that is to have its tags added.
© OCR 2017. You may photocopy this page. Page 10 of 21 Created in ExamBuilder
[7]
(b). Part of the program checks that the HTML tags are well formed.
Well formed HTML has tags that are nested but never overlapping.
e.g.
is well formed.
Tags are removed from in the same order they were added.
[1]
© OCR 2017. You may photocopy this page. Page 11 of 21 Created in ExamBuilder
is given a closing tag and gives the corresponding opening tag.
e.g.
[1]
The following code is used to check if the tags are well formed.
[1]
[2]
© OCR 2017. You may photocopy this page. Page 12 of 21 Created in ExamBuilder
7(a). An XOR gate is shown below. Complete the truth table for XOR.
A B Q
1 1
1 0
0 1
0 0
[2]
A B Cin S Cout
1 1 1
1 1 0
1 0 1
1 0 0
0 1 1
0 1 0
0 0 1
© OCR 2017. You may photocopy this page. Page 13 of 21 Created in ExamBuilder
0 0 0
ii.
iii. [4]
iv. Explain what the circuit does. You should refer to A, B, C in, S and Cout in your answer.
[4]
[1]
[2]
© OCR 2017. You may photocopy this page. Page 14 of 21 Created in ExamBuilder
[2]
(b).
Give one advantage and one disadvantage of indexing the field Artist.
Advantage
Disadvantage
[2]
(c). Users can build up playlists of their songs. Another table is created called Playlist.
Explain why a third table which we shall call PlayListEntry is needed. You should use an
ER diagram to illustrate your answer.
[4]
(d). A band called RandomBits removes their permission for their songs to be streamed.
The company removes all the songs belonging to RandomBits from their service.
[1]
ii. Write an SQL statement that will remove all songs by RandomBits from the table Song.
© OCR 2017. You may photocopy this page. Page 15 of 21 Created in ExamBuilder
[2]
iii. When the songs have been removed, explain what must happen to the table
PlayListEntry if the database is to retain its referential integrity. (You are not
expected to write the SQL to do this).
[1]
© OCR 2017. You may photocopy this page. Page 16 of 21 Created in ExamBuilder
[12]
10(a). A software development company is building an operating system for a mobile phone that is in
the process of being designed.
[1]
[2]
(c). One of the developers is responsible for writing the code for what happens when the CPU
receives an interrupt. Outline what the code must do.
© OCR 2017. You may photocopy this page. Page 17 of 21 Created in ExamBuilder
[6]
ii.
iii.
3 [3
iv. Justify why the waterfall lifecycle is suited to the development of the operating system.
[2]
v. Give one disadvantage of using the waterfall lifecycle to develop the operating system.
© OCR 2017. You may photocopy this page. Page 18 of 21 Created in ExamBuilder
[1]
(e). * The code is written using an object-oriented programming (OOP) language. Discuss the
advantages and disadvantages to the team of developers of using OOP over procedural
programming. You should refer to inheritance, encapsulation and polymorphism in your
answer.
© OCR 2017. You may photocopy this page. Page 19 of 21 Created in ExamBuilder
[9]
the site's owner wants to add the photo UKstamps.jpg in place of the comment
[2]
(b). Where the comment is, the site's owner wants to add the text:
Find out more about UK stamps as a link to the UK Stamp Collectors Guild website which has
the URL:
http:/ukstampcollectorsguild.co.uk
© OCR 2017. You may photocopy this page. Page 20 of 21 Created in ExamBuilder
[2]
(c). The site uses styling set out as attributes in tags rather than a linked CSS file.
[1]
[1]
(d). The site needs a light green (web colour lightGreen) background.
Explain what change needs to be made to the current page in order to do this.
[3]
(e). The site's owner notices that his site doesn't come up high in the results from a search engine
that uses the PageRank algorithm. State what would affect his site's ranking.
[2]