Past-paper question · 2016 May-June · Paper 21 · Q1(e)

Question 1(e) 2016 · May-June · Paper 21 · 3 marks

Original past-paper question for 1(E)
Original past-paper question for 1(E)
Original past-paper question for 1(E)
Original past-paper question for 1(E)
Original past-paper question for 1(E)
Reveal official mark-scheme answer Official mark-scheme answer for 1(E)Official mark-scheme answer for 1(E)

Official answer for Question 1

Part (e)

Part (e)

–

✓
constant declaration

Max[3]

✓
–
✓
meaningful identifiers/variable names
✓
–
✓
modules // procedure calls
✓
–
✓
use of parameters
✓
–
✓
indentation
✓
–
✓
capitalised variable names/identifiers // upper case key words
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge International AS Level – May/June 2016
✓
9691

Question 21

Mark scheme 9691_s16_ms_21.pdf →

Show text version of question

Question 1

Part (e)

Question 1

Zara wants to write a program to print a set of name labels for a group of students.

Each label will show the name surrounded by a border. There is one gap line above and below the name line. This gap line only has the border symbol at the start and end. There are two spaces between the border symbol and the name.

Here is a label example:

@@@@@@@@@@ @ @ @ FRED @ @ @ @@@@@@@@@@

The user will choose the border symbol for the set of labels.

Zara writes pseudocode for her program:

INPUT Symbol REPEAT INPUT Name LabelWidth ← LENGTH(Name) + 6 CALL PrintTop2Lines(Symbol, LabelWidth) CALL PrintNameLine(Symbol, Name) CALL PrintBottom2Lines(Symbol, LabelWidth) UNTIL Name = "NoName"

Part (e)

The pseudocode Zara wrote in part

Part (c)

has some features that make it easier to read and

understand.

State three such features.

1 ...............................................................................................................................................

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

2 ...............................................................................................................................................

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

3 ...............................................................................................................................................

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

[3]

Question 6

Topic relevance

Why this question appears here

72% assigned-topic match · Programming › Programming basics

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

Keep practising this topic