Software & Programming Q
Software & Programming Q
Explain the need for the Current Instruction Register (CIR) and describe how the data which it
holds is used.
[6]
[1]
3. Intensive Care Units in hospitals are for patients in need of round the clock monitoring and
support. Computerised systems can be used to monitor patients’ vital signs (temperature,
heart rate, blood pressure and breathing). They can then alert medical professionals to any
significant changes.
[1]
ii. Explain why a real-time operating system would be suitable for Intensive Care Units.
© OCR 2017. You may photocopy this page. Page 1 of 58 Created in ExamBuilder
[2]
4(a). The following assembly code in Fig. 1 is written for the Little Man Computer instruction set.
[1]
[1]
ii. Name the register in which the result of this line is stored.
[1]
[1]
ii. Using pseudocode write a program for a procedural language that takes in two inputs
and gives the same output as the program in Fig. 1.
© OCR 2017. You may photocopy this page. Page 2 of 58 Created in ExamBuilder
[2]
5. Burger House is a fast food restaurant which wants to encourage healthy eating amongst its
younger diners.
a.
i. Shown below in Fig.2 is the Burger House children’s menu.
Children receive a free toy when they select a meal (i.e. one burger, one side
dish and one dessert) made up of only healthy options.
• Let g be a Boolean value for if a child has chosen a grilled chicken burger.
• Let s be a Boolean value for if a child has chosen salad.
• Let c be a Boolean value for if a child has chosen carrot sticks.
• Let f be a Boolean value for if a child has chosen fruit salad.
• Let t be a Boolean value for whether a child receives a toy.
© OCR 2017. You may photocopy this page. Page 3 of 58 Created in ExamBuilder
t
=
[3]
b.
ii. Burger House wants to add this logic into its till system.
Complete the code below assuming that g,s,c,f and t are Boolean variables with
the same meaning as part (i).
[2]
[2]
ii. Explain why it is usually the case that JavaScript is interpreted rather than compiled.
[2]
© OCR 2017. You may photocopy this page. Page 4 of 58 Created in ExamBuilder
(b). Laser Tag is a game where teams of players move round an arena shooting each other with
infrared guns. Players wear sensors that keep track of how many times they have been hit by
the laser. This is known as being ‘tagged’.
At the end of each match players upload their score to a computer. The computer stores the
scores in the order they are received in a 2D array called . The array stores the team
as an integer (1 for green, 2 for red) and their score. An extract of the array called is
shown below. The first entry shows a green team member scored 45 points and the next
shows a red team member scored 30 points.
1 45
2 30
2 46
1 31
1 10
1 32
2 2
Once all the players have uploaded their scores the computer adds up the scores for each
team.
Using pseudocode write a program for a procedural language that works out and outputs the
total score for each team. You may assume that there are always 20 players.
[6]
7(a). A software company decides to release a duplicate file finder which it has named “De-
Duplicator”. Duplicate files are files that are exactly the same (bit for bit identical). Space is
often wasted on computers by having multiple versions of the same file. Duplicate file finders
are programs that find and identify duplicate files on a hard drive so that they can be removed.
© OCR 2017. You may photocopy this page. Page 5 of 58 Created in ExamBuilder
[2]
(b). * The software team that produces De-Duplicator decides to make a new version that can
detect duplicated images the previous version could not. The software team must decide which
methodology they will use for the project. Some members of the team suggest extreme
programming whilst others would prefer to use the waterfall lifecycle.
Discuss the two methodologies and justify which you would recommend.
© OCR 2017. You may photocopy this page. Page 6 of 58 Created in ExamBuilder
[12]
[1]
(b). Livid Lizards is a computer game in which players get to fire lizards from a cannon to knock
down walls. Players get to pick different types of lizards, each with qualities and special
powers.
The game is coded using an object-oriented language. Below is the code for the lizard class:
[2]
© OCR 2017. You may photocopy this page. Page 7 of 58 Created in ExamBuilder
[3]
ii. Explain one way the game’s developers might use inheritance for Livid Lizards.
[3]
(d). The game uses a 2D graphics library. Explain why a linker would need to be used after
compilation.
[3]
9(a). The program, as shown in Fig.2 below, is written in assembly code using the Little Man
Computer instruction set. It is supposed to take in two numbers and output the higher.
© OCR 2017. You may photocopy this page. Page 8 of 58 Created in ExamBuilder
State what type of translator program would be needed to convert the code above into machine
code.
[1]
(b). Explain how you would correct the program so it outputs the higher of the two numbers
entered.
[2]
(c). The program does not work correctly. Describe what the program actually does, using the
numbers 4 and 9 being entered as an example.
[2]
(d). Programs can also be written in high level languages. In pseudocode write a procedural
program that takes in two numbers and outputs the higher of them.
© OCR 2017. You may photocopy this page. Page 9 of 58 Created in ExamBuilder
[4]
10(a). A gaming company decides to release a new video games console. The console will use a
modified version of an operating system called Linux.
Describe two functions an operating system might be expected to carry out on the console.
[4]
Explain how Linux being open-source would benefit the games company.
[2]
(c). Explain two reasons why games designed for other companies’ consoles may not work on this
machine.
© OCR 2017. You may photocopy this page. Page 10 of 58 Created in ExamBuilder
1
[4]
11(a). A company releases a utility called RAMStore. The utility creates a virtual storage drive from
an area of the computer's RAM.
[2]
(b). 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.
[4]
© OCR 2017. You may photocopy this page. Page 11 of 58 Created in ExamBuilder
12. Below are extracts from the ASCII and EBCDIC character sets.
ASCII
EBCDIC
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 12 of 58 Created in ExamBuilder
endfunction
[5]
13(a). The following is a program written using the Little Man Computer instruction set.
[2]
[1]
© OCR 2017. You may photocopy this page. Page 13 of 58 Created in ExamBuilder
[3]
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 14 of 58 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]
e.g.
© OCR 2017. You may photocopy this page. Page 15 of 58 Created in ExamBuilder
ii. Identify what type of data structure is.
[1]
The following code is used to check if the tags are well formed.
[1]
[2]
© OCR 2017. You may photocopy this page. Page 16 of 58 Created in ExamBuilder
15(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.
[6]
© OCR 2017. You may photocopy this page. Page 17 of 58 Created in ExamBuilder
(d). The developers follow the waterfall lifecycle.
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.
[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 18 of 58 Created in ExamBuilder
[9]
16(a). The owner of a small shop has bought some new stock-handling software and is setting up a
computer system in order to run it.
State the purpose of each of the following types of utility software and describe how the owner
would use them.
File handlers
© OCR 2017. You may photocopy this page. Page 19 of 58 Created in ExamBuilder
[3]
[3]
[3]
17. Beryl has to write a program that explains patterns in crystals, using the following information.
All the patterns in crystals have two lengths, x and y, and an angle A.
© OCR 2017. You may photocopy this page. Page 20 of 58 Created in ExamBuilder
Beryl's flow chart contains variables.
[2]
[1]
© OCR 2017. You may photocopy this page. Page 21 of 58 Created in ExamBuilder
18. José works for a company that provides loans to its customers. When customers take out a
loan they decide how much money to borrow and for how many years.
The interest rate is currently 10% but it may change in the future.
José writes the following program to calculate the monthly payment for a loan.
Identify the constant, and explain why a constant has been used.
Constant:
Explanation:
[3]
19(a). A company organises a word guessing game to be played using text messages. Players have
to guess a six letter word and send it to the company's computer. The program which
processes the message contains several subroutines.
© OCR 2017. You may photocopy this page. Page 22 of 58 Created in ExamBuilder
The subroutine ReceiveMessage is a procedure.
State whether each of the following subroutines, which are called within ReceiveMessage, is a
function or a procedure.
NotInDictionary:
CheckAnswer:
SendMessage:
[3]
[2]
© OCR 2017. You may photocopy this page. Page 23 of 58 Created in ExamBuilder
[4]
20(a). An operating system uses scheduling. One method of scheduling is first come, first served.
i. Explain why the first come, first served scheduling method may not be efficient.
[2]
[2]
[4]
© OCR 2017. You may photocopy this page. Page 24 of 58 Created in ExamBuilder
(b). Explain why memory management is necessary.
[3]
Describe paging.
[3]
Explain the need for intermediate code and its purpose in a virtual machine.
The quality of written communication will be assessed in your answer to this question.
[8]
© OCR 2017. You may photocopy this page. Page 25 of 58 Created in ExamBuilder
(b). State three benefits of using library routines when a program is written.
© OCR 2017. You may photocopy this page. Page 26 of 58 Created in ExamBuilder
2
[3]
22. i. Give the name of the computer architecture that uses the fetch-execute cycle with a
single control unit.
[1]
ii. Registers used during the fetch-execute cycle include the current instruction register
(CIR), memory address register (MAR), memory data register (MDR) and program
counter (PC).
Place ticks in the table to show which statements are correct during processing.
iv.
[4
23(a). When writing a program, programmers may use low-level or high-level languages.
Explain why a low-level language is more suitable for programming a processor to control a
washing machine.
© OCR 2017. You may photocopy this page. Page 27 of 58 Created in ExamBuilder
[3]
(b). Place ticks in the table to show which statements apply to the modes of addressing shown for
a low-level instruction in the form ADD 123.
Addressing mode
None
Immediate Direct Relative of
these
123 is the address of the
data to use
ADD is an operand
The data to use in a
calculation is 123
The address 123 holds a
value which is the
address of the data to
use
[4]
(c). Caz is studying low-level languages. She has lost some of her notes on modes of addressing,
but has the following part of an example.
Name and explain two modes of addressing that this example could show.
[4]
© OCR 2017. You may photocopy this page. Page 28 of 58 Created in ExamBuilder
24(a). An assembler may be used to produce machine code from assembly language.
Describe machine code and assembly language, making clear the differences between them,
and describe the tasks done by an assembler.
The quality of written communication will be assessed in your answer to this question.
[8]
© OCR 2017. You may photocopy this page. Page 29 of 58 Created in ExamBuilder
(b). Describe what happens during syntax analysis, when code is compiled.
[5]
© OCR 2017. You may photocopy this page. Page 30 of 58 Created in ExamBuilder
3
[6]
26(a). Memory management in a computer for main memory can use either paging or segmentation.
[2]
[2]
[2]
[3]
[3]
27. A variable can be declared as global or local and is said to have scope.
[2]
ii. Explain what is meant by ‘scope’ in relation to global and local variables.
© OCR 2017. You may photocopy this page. Page 32 of 58 Created in ExamBuilder
[2]
28. See And Believe is a company that specialises in computer-generated imagery (CGI) for films.
Producing CGI requires lots of processing power and so the company has a large number of
high-performance computers.
Explain why See And Believe would use a distributed operating system.
[3]
29(a). A burglar alarm runs on a processor with the Little Man Computer (LMC) instruction set.
[2]
(b). A numeric PIN code entered into the burglar alarm is compared with the code stored at the
memory location passcode.
If the codes match, the program jumps to the part of the program labelled deactivate.
If the codes do not match, the program jumps to the part of the program labelled alarm.
Write the LMC code to meet the requirements above. (You don't have to write the code for
labels deactivate and alarm, as you can assume this has already been written elsewhere.)
© OCR 2017. You may photocopy this page. Page 33 of 58 Created in ExamBuilder
[4]
30(a). A programmer spends her spare time contributing to an open source application that converts
video files from a range of formats to one which uses lossy compression.
[2]
(b). The coding team are looking at writing a new closed source version of the application that
converts audio and image files in addition to video. They intend to sell copies of the program
when it is complete. They investigate three programming languages they could use, including:
* Discuss the benefits and drawbacks of the three options above and justify which option you
would recommend.
© OCR 2017. You may photocopy this page. Page 34 of 58 Created in ExamBuilder
[9]
31. A professional photographer, Sarah, takes and edits photographs for magazines.
Sarah carries around a digital camera and laptop to use on shoots. She keeps extra
peripherals in her office that she can use when editing and finalising photographs.
[1]
ii. Explain why Sarah needs both system and application software.
© OCR 2017. You may photocopy this page. Page 35 of 58 Created in ExamBuilder
[2]
[2]
ii. Explain how an operating system may overcome the problem of physical memory being
full.
[4]
© OCR 2017. You may photocopy this page. Page 36 of 58 Created in ExamBuilder
[1]
[5]
33(a). Mobile Treasure Hunt is a game played on a mobile phone. The game shows the user's
position on a map of their local area. Treasure randomly appears on the map and users must
move to the appropriate area to collect the treasure before it disappears.
© OCR 2017. You may photocopy this page. Page 37 of 58 Created in ExamBuilder
Describe what is meant by the term ‘inheritance’, referring to the code in Fig. 2.1.
[3]
© OCR 2017. You may photocopy this page. Page 38 of 58 Created in ExamBuilder
Identify all attributes and methods in the TreasureChest class.
Methods:
......................................................................................................................................................
Attributes:
...................................................................................................................................................
[2]
34(a). A Little Man Computer (LMC) assembly language program is stored in memory as shown in
Fig. 3.1.
© OCR 2017. You may photocopy this page. Page 39 of 58 Created in ExamBuilder
In this variant of LMC the symbols & and # are used to denote different modes of addressing.
Given that the output is 17, state the addressing mode represented by each symbol.
i. &
..........................................................................................................................................
[1]
ii. #
..........................................................................................................................................
[1]
[2]
© OCR 2017. You may photocopy this page. Page 40 of 58 Created in ExamBuilder
Mark scheme
Question Answer/Indicative content Marks Guidance
• Holds the instruction while it is being decoded / executed These need to be fairly precise as it is a technical questio
• Contents are split into two parts…
• Operation code is first part of instruction… Note: ‘Instruction’ in the first mark point may be referred t
• …operation code is decoded (so that CU knows what to do)
1 • Rest of the content is address of data to be used with the operation / actual 6 Examiner's Comments
data to be used (if immediate operand is used)…
• …operand is copied to MAR if it is an address This was a very technical question and was limited in its s
• …operand is copied to MDR if it is data the fetch execute cycle which is not on the specification fo
reaching response, which many did, the points that were
by examiners. As with question 2d, this is an ideal questio
points because the answer is a sequence of stages
Total 6
Total 1
3 i The system gives a response within a guaranteed time frame (1). 1 For 1 mark.
Total 3
• It outputs 3 (1).
4 a 1 For 1 mark.
• Calculates the remainder of two numbers when the second is divided by the For 1 mark.
c i first (1). 1
Accept finds modulo / modulus.
For 2 marks.
• Code takes in two values and provides an output (1).
ii • The output is the modulus of the two inputs (1). 2 Allow follow through for second mark if output matches an
Accept MOD, % or any existing alternative.
Accept if candidate has calculated modulus using alterna
© OCR 2017. You may photocopy this page. Page 41 of 58 Created in ExamBuilder
Example:
Total 6
For 3 marks.
For 2 marks.
Accept forms.
ii 2
Total 5
© OCR 2017. You may photocopy this page. Page 42 of 58 Created in ExamBuilder
Total 10
• A utility performs a specific task (1) and is usually related to the upkeep of the
system (1).
7 a 2 Up to 2 marks for a valid description.
• Examples of a utility include a virus checker (1) / disk defragmenter (1).
AO3.3: Evaluation
The candidate provides nothing more than an unsupported assertion.
Having considered the different sides to the argument can
The information is basic and communicated in an unstructured way. The information is
© OCR 2017. You may photocopy this page. Page 43 of 58 Created in ExamBuilder
supported by limited evidence and the relationship to the evidence may not be clear. supported judgment based on the evidence included in th
0 marks
No attempt to answer the question or response is not worthy of credit. There should be no bias in marks as to which methodolog
mark band there must be a clear link between the points c
justification.
e.g.
The waterfall lifecycle establishes requirements in early s
on these. New requirements can be adopted throughout X
are likely to be static making the Waterfall model a more a
OR
Total 14
• A template (1) defining methods and attributes (1) used to make objects (1).
b 2 Up to 2 marks for a valid description.
• Inheritance is when a class takes on the methods (1) and attributes (1) of a
parent class (1).
c i • The inheriting class may override some of these methods / attributes (1) and 3 Up to 3 marks for a valid description.
may have additional extra methods and attributes of its own (1).
• The user running the program will not necessarily have the library installed on
their machine (1) therefore the relevant code needs to be included within the
d 3 Up to 3 marks for a valid explanation.
final executable (1) – it is the job of the linker to combine this code (1).
Total 12
• An assembler (1).
9 a 1 For 1 mark.
b Changing LDA NUMB to LDA NUMA (1). 2 Accept changes annotated on provided code.
Award second mark: Accept any other amendment that fixes program.
© OCR 2017. You may photocopy this page. Page 44 of 58 Created in ExamBuilder
Changing NOTA LDA NUMA to NOTA LDA NUMB (1).
• Program outputs smaller number (1) so in the case of 4 and 9 outputs 4 (1).
c 2 Up to 2 marks for a valid description.
Total 9
• Provide a user interface (1 – AO1.1) for the user to load games etc. (1 –
AO1.2).
• Control hardware (1 – AO1.1) such as graphics card, games controllers etc. (1
– AO1.2).
1 mark for each correct identification (AO1.1) up to a max
• Act as a platform from which software can be run (1 – AO1.1) such as games
10 a 4
and apps (1 – AO1.2).
1 mark for each valid description (AO1.2) up to a maximu
• Control access (1 – AO1.1) so that different users can access the system (1 –
AO1.2) and have their own data such as scores and achievements (1 –
AO1.2).
• This means that a lot of the core functionality they need is already available
(1) so the company just has to make amendments / additions specific to their
b 2 Up to 2 marks for a valid explanation.
system (1) saving time and money (1).
Total 10
– A piece of software …
– … with one purpose …
11 a 2
– usually to do with the upkeep / maintenance of a computer.
(1 per −, max 2)
© OCR 2017. You may photocopy this page. Page 45 of 58 Created in ExamBuilder
– When required the pages are moved from virtual memory back into RAM.
(1 per −)
Total 6
– Value between 193 and 201 returns respective ASCII value between 65 and 73
– Value between 209 and 217 returns respective ASCII value between 74 and 82
– Value between 226 and 233 returns respective ASCII value between 83 and 88
12 5
– Values less than 193 and greater than 233 return -1
– Values between 202 and 208, and 218 and 225 return -1.
(1 per −)
Total 5
– STA store the value in the accumulator into a given memory location
13 a – LDA loads the value in a memory location into the accumulator. 2
(1 per −)
0
– Answer contains at least 1 followed by 0
– Answer contains at least three 10s
c 3 1
– Answer contains exactly four 10s
(1 per −)
0
Total 6
© OCR 2017. You may photocopy this page. Page 46 of 58 Created in ExamBuilder
– Adds the tag name …
– Includes the opening <
– Includes the closing > and nothing further
– Tags are added to data structure.
14 a 7
– Adds all tags in the string.
– Sensible variable names used
– Correct use of indentation
(1 per −)
b i Queue 1
iii Stack 1
Total 12
– Feasibility Study
– Investigation / Requirements Elicitation
– Analysis
– Design
– Implementation / Coding
d i – Testing 3
– Installation
– Documentation
– Evaluation
– Maintenance
(1 per −, max 3)
© OCR 2017. You may photocopy this page. Page 47 of 58 Created in ExamBuilder
– … And the base requirements of an OS are unlikely to change.
(1 per −, max 2)
If a change does occur in the requirements the lifecycle cannot respond easily, often at
iii 1
the cost of time and money.
There is a line of reasoning presented with some structure. The information presented is
Encapsulation means that objects only interact in the way
in the most part relevant and supported by some evidence.
changed to attributes having unforeseen consequences. T
fewer issues as the team combines their code.
Mark Band 1–Low Level (1–3 marks)
AO3.3: Evaluation
© OCR 2017. You may photocopy this page. Page 48 of 58 Created in ExamBuilder
0 marks Having considered the different sides to the argument can
No attempt to answer the question or response is not worthy of credit. supported judgment based on the evidence included in th
Total 24
Purpose
Maximum of 2 marks from Uses
−Manages data storage / organises data storage
Uses
Examiner's Comments
16 a − Used for the deletion / sorting / moving / copying / creation of files / folders 3
− Manage the storage of software
Most candidates correctly described how file handlers wo
− Manage the storage of stock files
stated the purpose, most stating that they ‘organise files’
− To access files
Examiner's Comments
b Uses 3
− To configure hardware
Some candidates gained credit for stating appropriate us
− e.g. would be used to install a new keyboard; mouse; printer
purpose was generally too vague. Many stating that they
(accept any examples sensible within context)
‘allow communication between the operating system and
Purpose
−Automatically makes a copy of files Maximum of 2 marks from Purpose, 2 from Uses
−Storing them in a different location / medium
− in case of loss / corruption (of original) Examiner's Comments
c 3
Total 9
cao
• x, y, A
ii 1 Examiner's Comments
Those candidates that did not achieve the mark used the
Total 3
cao
• Constant: InterestRate
• Defined at the start….
Examiner's Comments
• …where it can be changed if necessary / cannot be changed during execution
18 3
• Makes reading the algorithm more understandable
Again, candidates dropped marks due to using the wrong
including all or part of the line “CONST InterestRate=10”.
(1 mark for identifying the constant, plus any other 2)
clearly that a constant cannot be changed during the exe
Total 3
© OCR 2017. You may photocopy this page. Page 49 of 58 Created in ExamBuilder
• NotInDictionary: Function
• CheckAnswer: Function
19 a 3 Examiner's Comments
• SendMessage: Procedure
• When comparing characters, upper and lowercase characters don't match Examiner's Comments
b • Because they have different character codes 2
On the whole this was answered poorly. The candidates e
the value for a given character was different for uppercas
values which were compared and not the ‘character’.
Total 9
Examiner's Comments
Once a job starts it prevents other jobs from being processed
20 a i 2
A job using a slow resource (eg printer) wastes processor time
This question seemed to baffle a lot of candidates who de
priorities instead. Those who answered the question prop
mark, there were relatively few who got full marks for this.
© OCR 2017. You may photocopy this page. Page 50 of 58 Created in ExamBuilder
cao
Partitioning memory
Examiner's Comments
Pages are fixed size
c 3
Pages are physical divisions
A lot of candidates had problems with this question and a
Used for virtual memory
concerning saving to secondary memory. Very few menti
that this should be fairly standard when referring to pagin
Total 14
Candidate has explained 1 of the terms in detail or explained both terms superficially.
Candidate has used some technical terminology in the response.
There may be spelling errors or grammatical errors, but they are not obtrusive.
Candidate has listed some relevant points but failed to explain the terms in any detail.
There is a lack of cohesion in the response.
Candidate has failed to use correct technical terms in the response. For descriptions “in detail”, 3 or more relevant points are
Spelling and grammatical errors affect the readability of the response.
Examiner's Comments
21 a Points may include: 8
Intermediate code: This was the first of two banded response questions. In g
Is simplified code that… level of competence, however, a few diverged into talking
…is between high level & machine code checking which was not what was required.
…is produced by compiler
…runs on any computer
…allows portability between machines
Allows sections of code to be written in different languages…
…by different programmers
…suitable for specific tasks
Error free
Virtual machine:
A theoretical computer which provides…
…an environment in which a translator is available
Uses an interpreter to run the intermediate code
Points in the context of
A translator is used to convert code from one language to another…
…from source code to object code
Mention of types of translator: compilers, interpreters, assemblers
© OCR 2017. You may photocopy this page. Page 51 of 58 Created in ExamBuilder
Excellently answered, very few candidates had any proble
candidates gained at least two out of the three marks.
Total 11
cao
Examiner's Comments
ii 4
Again generally well answered, although a small percenta
unaware that you could put more than one tick per row. D
got them used to this, candidates should be reminded to
Total 5
Examiner's Comments
b 4
Most candidates were able to get some marks on this alth
proportion of candidates who put the last tick in the empty
have anything in it yet.
Relative addressing…
Examiner's Comments
…uses offset 3 to calculate real address from base address 11
c 4
Indexed addressing…
Another question that was expected to differentiate betwe
…modifies address 3 by adding number 11 from index register
generally managed to get three or four marks on this que
or two marks by addressing modes but the difference was
Total 11
© OCR 2017. You may photocopy this page. Page 52 of 58 Created in ExamBuilder
Mark band 6-8. High level response.
Candidate has described all 3 terms highlighting the differences between machine code
and assembly language.
Candidate has used appropriate technical terminology throughout.
There are few, if any, spelling errors or grammatical errors.
Mark band 3-5. Medium level response.
Candidate has described two terms adequately.
Candidate has used some technical terminology in the response.
There may be spelling errors or grammatical errors, but they are not obtrusive.
Mark band 0-2. Low level response.
Candidate has listed some relevant points but failed to give any detail.
There is a lack of cohesion in the response.
Candidate has failed to use correct technical terms in the response.
Spelling and grammatical errors affect the readability of the response.
Machine code:
• Binary notation
• Instructions operate on bytes of data
• Dependent on architecture
• Harder to program
24 a 8
Assembly language:
Assembler tasks:
Examiner's Comments
b 5
• Statements / tokens are checked… Examiner's Comments
• … against the rules / grammar of the language
© OCR 2017. You may photocopy this page. Page 53 of 58 Created in ExamBuilder
• valid example given Again the Principal Examiner was looking for more techn
it was apparent from the range of answers given that this
understanding of the subject.
3 Marks from this section
Total 13
Total 6
© OCR 2017. You may photocopy this page. Page 54 of 58 Created in ExamBuilder
• Multilevel Feedback Queues
Examiner's Comments
Total 12
Total 4
Any 2 from:
Examiner's Comments
28 3
Few candidates gained full marks on this question. Many
1 from:
characteristics of a network operating system rather than
appropriately related their explanation to the scenario.
• Meaning all the computers can work on producing the same special effect.
(AO2.1)
Total 3
Examiner's Comments
• The program flow jumps to a (designated) label / another point in the program
29 a • If the value in the accumulator is positive. 2 Many candidates failed to gain credit on this question due
their response, which is essential at this level of study. So
answers such as: ‘the code branches if the result is positi
demonstrate understanding that it is the value in the accu
whether it is positive or not.
© OCR 2017. You may photocopy this page. Page 55 of 58 Created in ExamBuilder
• incorrect PIN resulting in a jump to alarm BRZ deactivate
BRA alarm
Examiner's Comments
Total 6
© OCR 2017. You may photocopy this page. Page 56 of 58 Created in ExamBuilder
Compiled code will run quicker than the other options. Th
nature of the task.
Easier to get access to lower level features (such as GPU
Compiled code is not human readable helping to preserve
JavaScript
Most people have web browsers so by far most compatib
The slow speed may be frustrating…
…though as no user interaction is needed this may be a t
Source code is visible (though can be obfuscated) meani
amended.
AO3: Evaluation
Candidate has used the points above to justify their choic
Examiner's Comments
Total 11
Examiner's Comments
Total 3
Paging is fixed size / physical divisions (1) Segmentation is dividing memory logically
32 a i 2
(i.e. will be variable size). (1)
Uses virtual memory (1) which is an allocated area of a hard drive/secondary storage
ii device.(1) Pages that aren’t needed are moved to VM (1) and moved back to physical 4
memory when required (1)
ii If the interrupt is of a lower/equal priority to the current process then the current process 5
continues (1)
If it is of a higher priority the CPU finishes its current Fetch-Decode−Execute cycle (1).
© OCR 2017. You may photocopy this page. Page 57 of 58 Created in ExamBuilder
The contents of the CPU’s registers are copied to a stack (1) in memory (1). The
location of the appropriate interrupt service routine is loaded into the program counter
(1) When the ISR is complete, the previous contents are popped from the stack and
loaded back into the registers (1).
Total 12
When a class has the attributes and methods of its parent class. (1) It may also have
33 a methods and attributes of its own (1) 3
TreasureChest inherits from the class Treasure (1)
Total 5
ii # indirect addressing 1
b A program that translates assembly code (1) into machine code/object code (1) 2
Total 4
© OCR 2017. You may photocopy this page. Page 58 of 58 Created in ExamBuilder