Past-paper question · 2012 May-June · Paper 33 · Q4(d)

Question 4(d) 2012 · May-June · Paper 33 · 7 marks

Original past-paper question for 4(D)
Original past-paper question for 4(D)
Original past-paper question for 4(D)
Original past-paper question for 4(D)
Original past-paper question for 4(D)
Reveal official mark-scheme answer Official mark-scheme answer for 4(D)Official mark-scheme answer for 4(D)

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)

[1]

Mark scheme 9691_s12_ms_33.pdf →

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.

[3]

(ii)

Explain how you can recognise that the above pattern is normalised.

[1]

(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:

[3]

Question 6

Question 3

A
linked list is to be implemented with the data structures described in the variable table.

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.

Topic relevance

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

Keep practising this topic