Past-paper question · 2015 May-June · Paper 33 · Q5(d)

Question 5(d) 2015 · May-June · Paper 33 · 6 marks

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

The answer for this question is in the official mark scheme: open the mark scheme.

Mark scheme 9691_s15_ms_33.pdf →

Show text version of question

Question 5

Part (d)

Question 5

(i)

A
BNF rule may be recursive.

What is meant by a recursive rule? ........................................................................................................................................... .......................................................................................................................................[1]

(ii)

For each statement below, state whether it is TRUE or FALSE. Statement TRUE or FALSE None of the given rules are recursive Rule 4 is recursive Rule 5 is recursive

[1]

Question 7

Part (d)

Removal of a value is implemented with a procedure Pop.

Write pseudocode for the procedure Pop. PROCEDURE Pop ............................................................................................................................................................ ............................................................................................................................................................ ............................................................................................................................................................ ............................................................................................................................................................ ............................................................................................................................................................ ............................................................................................................................................................ ............................................................................................................................................................ ENDPROCEDURE

[4]

Question 5

A
computer system stores integers in a single byte using two’s complement representation.
Topic relevance

Why this question appears here

98% assigned-topic match · Computational thinking and problem-solving › Recursion

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

Keep practising this topic