Past-paper question · 2014 October-November · Paper 13 · Q5(b)(ii)

Question 5(b)(ii) 2014 · October-November · Paper 13 · 4 marks

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

Official answer for Question 5

Part (b)

(ii)

(ii)

Each correct answer (shown in bold (red)) = 1 mark

✓
DECLARE BinaryNumber [2, 8] :
✓
array
✓
OF INTEGER
✓
PlaceValue ← 128
✓
FOR index ← 1 TO 8
✓
INPUT BinaryNumber [ 2 , Index
✓
]
✓
BinaryNumber [ 1 , Index ] ← PlaceValue
✓
PlaceValue ← PlaceValue / 2
✓
ENDFOR
[4]
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge International AS/A Level – October/November 2014
✓
9691

Question 13

Mark scheme 9691_w14_ms_13.pdf →

Show text version of question

Question 5

Part (b)

(ii)

Question 5

The table below represents a data structure. It is called BinaryNumber and stores:

  • the place values for a binary integer, in the locations represented by the first row of the table
  • the bits of a binary number, in the locations represented by the second row of the table

0 1 1 0 1 0 1 1

(ii)

The pseudocode below stores values in the data structure as follows:

  • it initialises the place values in the locations represented by the first row
  • it stores input data in the locations represented by the second row

Complete the missing parts.

DECLARE BinaryNumber[2,8] : ………………… OF INTEGER

PlaceValue 128

FOR Index 1 TO …………………

INPUT BinaryNumber[2, …………………]

BinaryNumber[…………………,Index] PlaceValue

PlaceValue PlaceValue / 2

ENDFOR

[4]

Question 8

Topic relevance

Why this question appears here

71% assigned-topic match · Data types and structures › Arrays

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

Keep practising this topic