Past-paper question · 2015 October-November · Paper 42 · Q4(a)

Question 4(a) 2015 · October-November · Paper 42 · 5 marks

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

Official answer for Question 4

Part (a)

Part (a)

FUNCTION Hash(Key : STRING) RETURNS INTEGER

✓
DECLARE Number : INTEGER
✓
Number ASCII(LEFTSTRING(Key,1))
✓
// Number ASCII(Key[1])
✓
Number Number – 64
✓
RETURN Number
✓
// Result Number // Hash Number
✓
ENDFUNCTION
✓
Key can be a different identifier but must be the same in both places
[5]

Mark scheme 9608_w15_ms_42.pdf →

Show text version of question

Question 4

Part (a)

Question 4

Question 5

Question 6

Question 7

Question 8

Question 9

Question 3

(i)

Complete the GANTT chart by adding activities M and N.

[2]

(ii)

State the earliest completion date. Week number ...............................................................................................................

[1]

Part (a)

More facts are to be included.

Ali and Meena are the parents of Ahmed. Write the additional clauses to record this. 15 ............................................................................................................................................ 16 .......................................................................................................................................

[2]
Topic relevance

Why this question appears here

92% 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 9608_w15_qp_42.pdf

Keep practising this topic