June 2017 AS Paper 1 (With MS)
June 2017 AS Paper 1 (With MS)
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, unless your teacher tells you otherwise.
• 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).
[2]
[1]
Give a Little Man Computer instruction that will copy the contents of the accumulator into memory when
executed.
[1]
[1]
(ii) Give the name of two Little Man Computer instructions that may change the contents of the Program Counter
when executed.
[1]
Discuss what measures can be taken to improve Dan’s computer’s performance. You should explain what these
measures are, why they improve the performance and justify whether you would recommend them.
3(a). The following JavaScript has been found to crash certain web browsers.
1 [2]
2 [1]
4 [1]
[2]
Parcels that have a volume of less than 0.3 m3 and weigh less than 4 kg cost £5 to send.
All other parcels cost £20 per m3 or £2 per kg, whichever is greater.
Examples
Parcel A weighs 2.5 kg, has a volume of 0.1 m3 and costs £5 to send.
Parcel B weighs 6 kg, has a volume of 0.2 m3 and costs £12 to send.
Parcel C weighs 6 kg, has a volume of 0.8 m3 and costs £16 to send.
The function getCost takes in the volume and weight of a parcel and returns the cost.
getCost(2.5,0.1) returns 5
getCost(6,0.2) returns 12
getCost(6,0.8) returns 16
Complete the pseudo-code below so that the function getCost returns the correct cost.
(b). Details of customers sending parcels are stored in a database. The database contains a table called parcel
and a table called customer.
Draw an entity relationship diagram showing the parcel and customer tables.
[2]
(i) Describe one advantage of the digital camera using flash storage rather than magnetic.
[2]
(ii) Explain whether lossless or lossy compression would be most appropriate to store the photographs. Justify
your response.
[3]
[1]
[1]
[1]
(c). The two values below are stored using unsigned binary. Calculate the subtraction of 01110010 from 11000011.
Show your working.
[2]
[3]
[1]
(b). Explain the difference in the function of OR and XOR gates.
[2]
(c). A circuit contains the logic gates shown below.
1 1 1 1
1 1 1 0
1 1 0 1
1 1 0 0
1 0 1 1
1 0 0 1
1 0 0 0
0 1 1 1
0 1 1 0
0 1 0 1
0 1 0 0
0 0 1 1
0 0 1 0
0 0 0 1
0 0 0 0
[4]
≡ Output
[2]
[3]
(b). The fridge uses the ASCII character set. Give one disadvantage of the fridge using ASCII rather than Unicode.
[1]
When the fridge receives a message it takes the string and stores it in a queue called words.
For example REMEMBER TO TAKE CHARLIE TO THE DENTIST THIS AFTERNOON becomes a queue:
words=["REMEMBER","TO","TAKE","CHARLIE","TO","THE","DENTIST", "THIS","AFTERNOON"]
The display has four lines; each can show a maximum of 20 characters including spaces.
Examples
The contents of the display are stored in a 2D array of characters called display.
The procedure updateDisplay receives the queue words which holds the message and writes the message
to the display.
(c). Write the procedure updateDisplay. Credit will be given for the readability of your code.
1 a i -Small piece of memory / used for storing 2 Accept ‘location’ for MP1
data (1)
-Within the processor (1)
AO1.1
Examiner’s Comment
Most candidates described a register as
‘a memory location’ with many going on to
add ‘in the processor’ therefore achieving
full marks.
(Max 1)
Examiner’s Comment
A number of different correct responses
were offered here. Most candidates
achieved the mark.
AO1.1
Examiner’s Comment
Well answered in the main, demonstrating
an improvement in candidate
understanding of LMC instruction set.
c i -The location of the next instruction (to be 1 Do not accept ‘Line number’
fetched).
AO1.2
Examiner’s Comment
Some candidates are omitting to state that
the PC holds the ‘memory location
address’ of the ‘next’ location to be
accessed; both were needed to achieve
the mark.
- BRA
(1 per -, max 2)
Examiner’s Comment
Candidates tended to achieve either both
or none of the marks in this question.
Either the mnemonic or the full name of the
instruction gained credit.
Total 7
AO3.3: Evaluation
Examiner’s Comment
Candidates were assessed on the quality
of their extended response in this question.
Most candidates could cite some methods
for improving performance but not all
managed to then appropriately apply these
to the question. Many candidates did
recommend one or more measures
although some cases needed to include
justification. This resulted in some very
good responses and marks awarded
spanning the range of marks available.
Total 9
3 a 1. Creates / declares / defines a variable 4 For point 1 accept ‘blank value’ for empty
(called total) (1) and assigns it an empty / string
blank (string). (1)
AO3.3 For point 4 accept add instead of
2. A loop that iterates 200,000 times. (1) concatenates only if it is clear it is building
a string and not adding a numeric value.
3. - Accept ‘append’.
Total 6
Examiner’s Comment
Candidates were asked to complete a
function in this question. Although many
students demonstrated reasonable logic in
solving this problem, some functions
designed resulted in output, rather than
returned values from the function and
therefore did not gain full marks.
AO2.2
(1)
Examiner’s Comment
Most candidates gained both available
marks on this question.
(Mark in pairs)
Examiner’s Comment
Many candidates gave a reason for the
advantage without stating the actual
advantage e.g. ‘flash storage has no
moving parts’ without going on to say,
therefore the advantage is ‘less likely to be
damaged / lose data’.
Total 11
5 a 6F 1
AO2.1
Examiner’s Comment
Very well answered by the majority of
candidates.
b i 11101101 1
AO2.1
ii 10010011 1
AO2.1
Examiner’s Comment
Very well answered by the majority of
candidates.
01101 001
Total 8
b OR gate outputs true if at least one of its 2 Accept appropriate, correctly labelled, truth
inputs is true (1) tables. One mark for each truth table.
c i 4
AO2.2
Examiner’s Comment
This question was well received by
candidates with most achieving full marks.
∨ (C ∨ D) (1 Mark)
Examiner’s Comment
Boolean expressions were in the main
correct. All standard notations was credited
provided it was used consistently.
Total 9
Examiner’s Comment
Most candidates achieve zero to two marks
on this question. Explanations generally
contained errors or omissions.
A fundamental explanation would suffice
for full marks e.g. ‘Transmission Control
Protocol / Internet Protocol is a set of rules
used for communicating across the
internet’.
Examiner’s Comment
Candidates found this question challenging
although there were many excellent
solutions. Not all candidates noted in the
question that ‘Credit will be given for the
readability of your code’. In many cases
where candidates had attempted a solution
which contained errors they were still able
to gain marks for appropriate indentation
and the use of sensible variable names.
Total 11
Mark Band 2 – Mid Level (3) Using server side processing to amend the
(4–6 marks) content shown.
The candidate demonstrates reasonable
knowledge and understanding of a range Writing web pages to facilitate screen
of technical and design measures that readers (such as giving hyperlinks
make a website accessible; the material is meaningful names and not just "click
generally accurate but at times here").
underdeveloped. The candidate is able to
apply their knowledge and understanding Using tables for tabular data (as they are
directly to the context provided although intended) and not layout (again to aid
one or two opportunities are missed. screen readers).
Evidence/ examples are for the most part
implicitly relevant to the explanation. Ensuring that all content can be accessed
The candidate provides a reasonable with the keyboard alone in a logical way.
discussion, the majority of which is
focused. Evaluative comments are for the Avoiding CAPTCHA.
most part appropriate, although one or two
opportunities for development are missed. AO2.1: Application
There is a line of reasoning presented with
some structure. The information presented The selected knowledge / examples should
is in the most part relevant and supported be directly related to the specific question.
by some evidence. The example below is not prescriptive or
exhaustive:
Mark Band 1 – Low Level -By having multiple external style sheets
(1–3 marks) the look of the page can be switched.
The candidate demonstrates a basic This might include changing the layout for
knowledge of how a website can be made smaller devices or increasing font size and
accessible. Limited understanding shown contrast of colours for people who are
of how these design or technical issues visually impaired.
behind it; the material is basic and contains
some inaccuracies. The candidate makes -JavaScript may be used to allow users to
a limited attempt to apply acquired switch style sheets without having to reload
knowledge and understanding to the the page
context provided. The candidate provides a
limited discussion which is narrow in focus. -Choosing colours is important as to
Judgments if made are weak and people with colour blindness might for
unsubstantiated. example not be able to see green text on
The information is basic and a red background.
communicated in an unstructured way.
The information is supported by limited -Designers also need to have an
evidence and the relationship to the awareness of the cultural meanings of
evidence may not be clear. colours.
AO3.3: Evaluation
Examiner’s Comment
Candidates were assessed on the quality
of their extended response in this question.
Most candidates could cite some design
measures which could be applied to aid
accessibility. Few candidates described
neither technical measures nor the
technicality of implementing the design
features.
Fewer candidates effectively evaluated the
effect of their suggested measures. This
resulted in few candidates achieving in the
high mark band on this question.
Total 9