Question 4(d) 2012 · May-June · Paper 33 · 7 marks
Reveal official mark-scheme answer

Official answer for Question 4
Part (d)
Part (d)
(i)
last item added to the stack will be the first item to leave (N.E LIFO)
Show text version of question
Question 4
Part (d)
Question 4
bits for the exponent
• two’s complement used for both the mantissa and the exponent
(i)
Consider the binary pattern:
Question 1
0
Question 1
0
Question 1
0 0 0 0
Question 1
Question 1
Question 1
What number is this in denary? Show your working.
(ii)
Explain how you can recognise that the above pattern is normalised.
(iii)
Show the binary pattern for the smallest negative number (negative sign and large
magnitude) which can be stored using a normalised 12-bit floating point representation. Mantissa: Exponent: Work out its denary value. Denary:
Question 6
Question 3
For The countries are to be organised in alphabetical order. Examiner's Use Identifier Data Type Description Country ARRAY[250] OF STRING Stores the country names Array index which points to the next Pointer ARRAY[250] OF INTEGER country in the linked list Array index pointing to the first HeadPointer INTEGER country in the linked list HeadPointer Country Pointer
Question 1
SWEDEN
Question 1
Question 2
DENMARK
Question 2
Question 3
INDIA
Question 3
Question 4
COLUMBIA
Question 4
Question 5
BANGLADESH
Question 5
Question 4
Question 6
NEPAL
Question 6
Question 7
MAURITIUS
Question 7
250 250
Part (d)
A linked list is maintained for capital cities using arrays Capital and Pointer.
For An algorithm is required to delete a value from the linked list. Examiner's Use The algorithm will use the following variables: Identifier Data Type Description Current INTEGER Array index for the current capital Previous INTEGER Array index for the previous capital The following diagram shows the first three capitals in the linked list. We are about to delete CANBERRA. The list has been searched from the HeadPointer position until the capital to be deleted, CANBERRA, is found.
Why this question appears here
98% assigned-topic match · Data representation › Floating-point representation and manipulation
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 9691_s12_qp_33.pdf
