Skip to main content
A-LevelComputer ScienceProgramming9618/21 · May/June 2023 · Q27 Marks

A program contains an algorithm to output a string of a specified length containing identical characters.

  1. (a)The algorithm is described as follows: 1. prompt and input a character and store in MyChar 2. prompt and input an integer and store in MyCount 3. generate a string consisting of MyChar repeated MyCount times 4. output the string. Draw a program flowchart to represent the algorithm. START END[4]
  2. (b)A different part of the program uses the variable StartDate. Write pseudocode statements to declare StartDate and assign to it the date corresponding to 15/11/2005. Declaration Assignment[3]

This question uses a diagram from the original paper, which isn't shown here. Open the full paper from the past papers archive to see it.

Mark scheme

Marking points from the official mark scheme (May/June 2023). The mark or mark type is shown in brackets.

  1. [4] One mark per point: 1 Both prompts 2 Both inputs using correct identifiers as given in question, MyChar and MyCount 3 Initialise MyString to empty string and subsequent output after loop 4 Loop MyCount iterations including decrement MyCount 5 Use of Concatenate or equivalent pseudocode statement inside loop Max 4 Marks
  2. [3] One mark for declaration: DECLARE StartDate : DATE One mark for each underlined part of assignment: StartDate ← SETDATE (15, 11, 2005)

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
Programming, A-Level Computer Science (syllabus 9618). Structured question, 7 marks.
Source
A-Level Computer Science, May/June 2023 Paper 2 Variant 1, question 2.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep