Question 3(d) 2018 · October-November · Paper 12 · 16 marks
Question 3
Part (d)
Question 3
DNS looks up the URL in table
4 ......................................
5 ......................................
Three statements A, B and C are used to complete the sequence.
Write one of the letters A to C in the appropriate rows (2, 4 and 5) to complete the sequence.
Part (b)
Describe the purpose of an IP address.
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
..............................................................................................................................................
Part (c)
A telecommunications operator has installed fibre-optic cables in Gopal’s neighbourhood.
(i)
Give three benefits of fibre-optic cable over copper cable.
1 ........................................................................................................................................
...........................................................................................................................................
2 ........................................................................................................................................
...........................................................................................................................................
3 ........................................................................................................................................
...........................................................................................................................................
Question 5
(ii)
Give two drawbacks of fibre-optic cable over copper cable.
1 ........................................................................................................................................
...........................................................................................................................................
2 ........................................................................................................................................
...........................................................................................................................................
Question 6
3 The following table shows assembly language instructions for a processor which has one general purpose register, the Accumulator (ACC) and an Index Register (IX).
Instruction Explanation Op code Operand
LDD <address> Direct addressing. Load the contents of the location at the given address to ACC. LDX <address> Indexed addressing. Form the address from <address> + the contents of the Index Register. Copy the contents of this calculated address to ACC. LDR #n Immediate addressing. Load the number n to IX. STO <address> Store contents of ACC at the given address. ADD <address> Add the contents of the given address to ACC. INC <register> Add 1 to the contents of the register (ACC or IX). DEC <register> Subtract 1 from the contents of the register (ACC or IX). CMP <address> Compare contents of ACC with contents of <address>. JPE <address> Following compare instruction, jump to <address> if the compare was True. JPN <address> Following compare instruction, jump to <address> if the compare was False. JMP <address> Jump to the given address. OUT Output to the screen the character whose ASCII value is stored in ACC. END Return control to the operating system.
Part (d)
The current contents of the main memory, Index Register (IX) and selected values from the
ASCII character set are:
Address Instruction ASCII code table (selected codes only) 40 LDD 100 ASCII code Character 41 CMP 104 300 / 42 JPE 54 301 * 43 LDX 100 302 - 44 CMP 105 303 + 45 JPN 47 304 ^ 46 OUT 305 = 47 LDD 100 48 DEC ACC 49 STO 100 50 INC IX 51 JMP 41
Question 52
Question 53
54 END
…
100 2 101 302 102 303 103 303 104 0 105 303
IX 1
This is a copy of the instruction set.
Instruction Explanation Op code Operand
LDD <address> Direct addressing. Load the contents of the location at the given address to ACC. LDX <address> Indexed addressing. Form the address from <address> + the contents of the Index Register. Copy the contents of this calculated address to ACC. LDR #n Immediate addressing. Load the number n to IX. STO <address> Store contents of ACC at the given address. ADD <address> Add the contents of the given address to ACC. INC <register> Add 1 to the contents of the register (ACC or IX). DEC <register> Subtract 1 from the contents of the register (ACC or IX). CMP <address> Compare contents of ACC with contents of <address>. JPE <address> Following a compare instruction, jump to <address> if the compare was True. JPN <address> Following a compare instruction, jump to <address> if the compare was False. JMP <address> Jump to the given address. OUT Output to the screen the character whose ASCII value is stored in ACC. END Return control to the operating system.
Question 9
Complete the trace table for the given assembly language program.
Instruction Memory address address ACC IX OUTPUT
Question 40
Question 10
Reveal official mark-scheme answer
Official answer for Question 3
Part (d)
Question 1
mark per bullet point
Question 7
Question 2
Question 1
Why this question appears here
99% assigned-topic match · Processor fundamentals › Assembly language
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9608_w18_qp_12.pdf
