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

Question 4(b) 2012 · May-June · Paper 33 · 10 marks

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

Official answer for Question 4

Part (b)

Part (b)

(i)

c 5 + b c – /1

Mark scheme 9691_s12_ms_33.pdf →

Show text version of question

Question 4

Part (b)

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 (b)

The following pseudocode uses the linked list to output all country names which are

For alphabetically before a requested country. Examiner's Use For example, the user inputs NEPAL – the pseudocode outputs all the values which are alphabetically before NEPAL. Fill in the gaps in the pseudocode. INPUT RequestedValue IF THEN //special case – the list is empty ... OUTPUT “Linked list is empty” ELSE Current ← HeadPointer REPEAT IF Country[Current] < RequestedValue THEN OUTPUT Country[Current] Current ← ELSE NoMoreValues ← TRUE ENDIF UNTIL NoMoreValues = TRUE

[3]

Question 8

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