Types of Programming
Types of Programming
Total 6
2 Mark Band 3–High Level (7–9 marks) 9 AO1 Knowledge and Understanding
The candidate demonstrates a thorough knowledge and The following is indicative of possible factors / evidence
understanding of Object Oriented Programming and has that candidates may refer to but is not prescriptive or
discussed inheritance, polymorphism and encapsulation; exhaustive:
the material is generally accurate and detailed.
OOP involve solutions being constructed by means of
The candidate is able to apply their knowledge and objects that interact with each other. OOP uses classes
understanding directly and consistently to the context as templates to construct objects. An object has attributes
provided. Evidence / examples will be explicitly relevant (variables associated with it) and methods (subroutines
to the explanation. that form the actions an object can carry out).
The candidate provides a thorough discussion which is Inheritance is where a class retains the methods and
well balanced. Evaluative comments are consistently attributes of its parent class as well as having its own.
relevant and well-considered.
Encapsulation is the process of keeping an object's
There is a well-developed line of reasoning which is clear attributes private so they can only be accessed and
and logically structured. The information presented is changed via public methods.
relevant and substantiated.
Polymorphism means that objects of different types can
Mark Band 2–Mid Level (4–6 marks) be treated in the same way.
The candidate demonstrates reasonable knowledge and Procedural programming breaks a solution down into
understanding of a range of Object Oriented subroutines. These subroutines are re built and combined
Programming and has discussed at least two of: to form a program.
inheritance, polymorphism and encapsulation; the
material is generally accurate but at times
The candidate is able to apply their knowledge and The selected knowledge / examples should be directly
understanding directly to the context provided although related to the specific question. Examples may include
one or two opportunities are missed. but are not limited to:
Evidence / examples are for the most part implicitly
relevant to the explanation. Breaking a problem down into objects naturally lends
itself to teams as different team members can work on
The candidate provides a sound discussion, the majority different objects.
of which is focused. Evaluative comments are for the
most part appropriate, although one or two opportunities Inheritance means that one class can be coded and that
for development are missed. code used as the base for similar objects. This will save
the team time as they are able to build on work already
There is a line of reasoning presented with some done.
structure. The information presented is in the most part
relevant and supported by some evidence. Encapsulation means that objects only interact in the way
intended and prevents unexpected changed to attributes
Mark Band 1–Low Level (1–3 marks) having unforeseen consequences. This means there are
likely to be fewer issues as the team combines their code.
The candidate demonstrates a basic knowledge of Object
Oriented Programming with limited understanding shown; Polymorphism means that code can be written that is
the material is basic and contains some inaccuracies. For able to handle different objects in the same way. This
3 marks they have described at least one of inheritance, reduces the volume of code the team need to produce.
polymorphism or encapsulation. The candidate makes a
limited attempt to apply acquired knowledge and Procedural programming can be divided between a team
understanding to the context provided. with different team members tackling different
subroutines.
Total 9
Binary notation
Instructions operate on bytes of data
Dependent on architecture
Harder to program
Assembly language:
Assembler tasks:
Total 8
Total 6
ii Sequence of letters 3
Easy for a person to remember
Example:
Examiner's Comments
Total 5
c Methods: (constructor/new), changeName, pickLock (1) 2 Do not penalise for not including constructor.
Attributes: value, weight, name, locked (1) Only give method mark if both other methods are listed
Only give attributes mark if all four attributes are listed.
Total 8
Examiner’s Comments
Surprisingly few candidates gained full marks on this
question. Many responses did not use appropriate
assembly language terminology e.g. label, memory
location.
Examiner’s Comments
Very few candidates did not gain full marks on this
question.
b i LDA (1) 1
SUB (1)
ADD (1) (AO1.2)
INP (1)
(Max 1)
Examiner’s Comments
Most candidates identified correctly, an instruction which
changed the value in the Accumulator but fewer correctly
identified an instruction which changed the value in the
Program Counter.
ii BRA (1) 1
BRP (1)
BRZ (1) (AO1.2)
(Max 1)
Examiner’s Comments
Most candidates identified correctly, an instruction which
changed the value in the Accumulator but fewer correctly
identified an instruction which changed the value in the
Program Counter.
iii 20 1
(AO2.1)
Examiner’s Comments
Candidates invariably gave both correct output values.
iv 40 1
(AO2.1)
Examiner’s Comments
Candidates invariably gave both correct output values.
v Rounds up (the number input)… (1) 2 Rounds to multiple of ten gets one mark.
Total 12
Total 12
9 –Immediate addressing… 2
–…operand is the value to be used. Examiner’s Comments
–Indirect Addressing… AO1.1
–…operand is the memory location holding a value Many candidates correctly cited another mode of
representing the memory location to be used. addressing outlined in the specification but descriptions
– Indexed Addressing… invariably lacked clarity, with the exception of Immediate
– …Operand is added to contents of Index Register to Addressing.
get memory location of value needed.
(1 mark for naming addressing mode, 1 mark for correct
description)
Total 2