Past-paper question · 2018 October-November · Paper 12 · Q3(d)

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.

A
DNS finds corresponding IP address
B
Web browser sends URL to Domain Name Service (DNS)
C
DNS returns IP address to web browser

Write one of the letters A to C in the appropriate rows (2, 4 and 5) to complete the sequence.

[2]

Part (b)

Describe the purpose of an IP address.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

..............................................................................................................................................

[2]

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 ........................................................................................................................................

...........................................................................................................................................

[3]

Question 5

(ii)

Give two drawbacks of fibre-optic cable over copper cable.

1 ........................................................................................................................................

...........................................................................................................................................

2 ........................................................................................................................................

...........................................................................................................................................

[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

[7]

Question 10

Reveal official mark-scheme answer Official mark-scheme answer for 3(D)

Official answer for Question 3

Part (d)

Question 1

mark per bullet point

Question 7

✓
•
✓
Loading 2, comparing with 104 (instructions 40 and 41)
✓
•
✓
Loading 302 (instruction 43)
✓
•
✓
Comparing, and branching to 47 (instructions 44, 45)
✓
•
✓
Loading, decrementing accumulator and storing (instructions 47, 48 and
✓
49)
✓
•
✓
Incrementing Index Register (instruction 50)
✓
•
✓
Loading 303, comparing and outputting + (instructions 43–46)
✓
•
✓
Loading, decrementing accumulator and storing, incrementing Index
✓
Register and end (instructions 47–51, 41, 42 and 54)
✓
9608/12
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2018
✓
Question
✓
Answer
✓
Marks
✓
Instruction
✓
Memory address
✓
address
✓
IX
✓
OUTPUT
✓
ACC
✓
100
✓
101
✓
102
✓
103
✓
104
✓
105

Question 2

✓
302
✓
303
✓
303
✓
0
✓
303

Question 1

Mark scheme 9608_w18_ms_12.pdf →

Topic relevance

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

Keep practising this topic