Question 1 2013 · October-November · Paper 33 · 8 marks
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
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
(ii)
6 / (3 + 5 * p)
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.
Question 3
Part (c)
A binary tree can be used to represent an expression or a statement. For
Examiner's Use =
3.14 ^
r 2
The diagram shows the binary tree for the infix statement:
(i)
Explain how the infix form for this statement is produced using a tree traversal.
(ii)
What is the reverse Polish notation for this statement?
(iii)
Explain how the reverse Polish notation is produced using a tree traversal.
Question 4
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
