Past-paper question · 2014 May-June · Paper 32 · Q7(c)

Question 7(c) 2014 · May-June · Paper 32 · 12 marks

Original past-paper question for 7(C)
Original past-paper question for 7(C)
Original past-paper question for 7(C)
Original past-paper question for 7(C)
Reveal official mark-scheme answer Official mark-scheme answer for 7(C)

Official answer for Question 7

Part (c)

Part (c)

✓
The flight simulator is a physical entity // by example e.g. actuators //
✓
specialist hardware will be needed
✓
Weather forecasting has to produce results faster than real-time // flight
✓
simulator operates in real-time
✓
Flight simulator requires continual user input to operate
[1]

Mark scheme 9691_s14_ms_32.pdf →

Show text version of question

Question 7

Part (c)

Question 7

2000

[4]

Part (d)

(i)

How many comparisons will be made to locate LION in the current tree?

[1]

(ii)

An algorithm is designed in pseudocode. It will search the binary tree for a particular

animal.

The algorithm uses the variables below:

Variable Data type Description

SearchAnimal STRING Animal to search for

Current INTEGER The array subscript for the item currently considered

IsFound BOOLEAN Flag set to TRUE when SearchAnimal is found

Question 10

Complete the algorithm below:

//binary tree search

INPUT

IsFound ← FALSE

Current ← RootPtr

REPEAT

IF

THEN

//found

OUTPUT 'Found'

IsFound ← TRUE

ELSE

IF SearchAnimal > Data[Current]

THEN

// move right

ELSE

Current ← LeftPtr[Current]

ENDIF

ENDIF

UNTIL OR Current = 0

IF

THEN

OUTPUT SearchAnimal ' not found'

ENDIF

[5]

Question 11

Part (c)

Byte 5 and Byte 6 together represent a 16-bit colour code used in a drawing program.

Byte 5 Byte 6

The drawing program displays a colour code as a hexadecimal number.

State the hexadecimal number for this code.

[2]

Question 12

Topic relevance

Why this question appears here

91% assigned-topic match · Data types and structures › Data types and records

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

Keep practising this topic