Past-paper question · 2015 October-November · Paper 23 · Q4

Question 4 2015 · October-November · Paper 23 · 13 marks

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

Official answer for Question 4

✓
Start and Stop/End to
✓
Score
✓
[MAX 6]
✓
[Total: 6]
✓
Either Yes or No labelled
✓
Either Yes or No labelled
✓
[MAX 6]
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge International AS/A Level – October/November 2015
✓
9608

Question 23

Mark scheme 9608_w15_ms_23.pdf →

Show text version of question

Question 4

FALSE FALSE

[4]

Question 5

Part (b)

The selection statement (lines 03 – 08) could have been written with more simplified logic.

Rewrite this section of the algorithm in pseudocode.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...............................................................................................................................................[3]

Question 6

4 A program is to be written to calculate the discount given on purchases.

A
purchase may qualify for a discount depending on the amount spent. The purchase price

(Purchase), the discount rate (DiscountRate) and amount paid (Paid) is calculated as shown in the following pseudocode algorithm.

INPUT Purchase

IF Purchase > 1000 THEN DiscountRate 0.10 ← ELSE IF Purchase > 500 THEN DiscountRate 0.05 ← ELSE DiscountRate 0 ← ENDIF ENDIF

Paid ← Purchase * (1 - DiscountRate) OUTPUT Paid

The algorithm is also to be documented with a program flowchart.

Complete the flowchart by:

  • filling in the flowchart boxes
  • labelling, where appropriate, lines of the flowchart

Question 7

[6]

Question 8

Topic relevance

Why this question appears here

72% assigned-topic match · Algorithm design and problem-solving › Algorithms

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

Keep practising this topic