Past-paper question · 2013 October-November · Paper 33 · Q1

Question 1 2013 · October-November · Paper 33 · 8 marks

Original past-paper question for 1
Reveal official mark-scheme answer

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

Mark scheme 9691_w13_ms_33.pdf →

Show text version of question

Question 1

Part (a)

Convert the following infix expressions into reverse Polish notation: For

Examiner's Use

(i)

(p + q) / 2

[1]

(ii)

6 / (3 + 5 * p)

[2]

Part (b)

What is the value of this reverse Polish expression:

p q - r s - /

for p = 8, q = 2, r = 5 and s = 3 ?

Show your working.

[2]

Question 3

Part (c)

A binary tree can be used to represent an expression or a statement. For

Examiner's Use =

A
*

3.14 ^

r 2

The diagram shows the binary tree for the infix statement:

A
= 3.14 * r ^ 2

(i)

Explain how the infix form for this statement is produced using a tree traversal.

[1]

(ii)

What is the reverse Polish notation for this statement?

[1]

(iii)

Explain how the reverse Polish notation is produced using a tree traversal.

[1]

Question 4

Topic relevance

Why this question appears here

71% assigned-topic match · Hardware › Logic gates and logic circuits

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

Keep practising this topic