Skip to main content
A-LevelComputer ScienceProgramming9618/22 · May/June 2021 · Q111 Marks

Refer to the insert for the list of pseudocode functions and operators.

  1. (a)(i)Complete the following table by giving the appropriate data type in each case. Variable Example data value Data type Name "Catherine" Index 100 Modified FALSE Holiday 25/12/2020[4]
  2. (a)(ii)Evaluate each expression in the following table by using the initial data values shown in part (a)(i). Expression Evaluates to Modified OR Index > 100 LENGTH("Student: " & Name) INT(Index + 2.9) MID(Name, 1, 3)[4]
  3. (b)Each pseudocode statement in the following table contains an example of selection, assignment or iteration. Put one tick ('✓') in the appropriate column for each statement. Statement Selection Assignment Iteration Index ← Index + 1 IF Modified = TRUE THEN ENDWHILE[3]

Mark scheme

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

  1. [1] (a)(i) STRING
  2. [1] (a)(i) INTEGER
  3. [1] (a)(i) BOOLEAN
  4. [1] (a)(i) DATE
  5. [1] (a)(ii) FALSE
  6. [1] (a)(ii) 18
  7. [1] (a)(ii) 102
  8. [1] (a)(ii) "Cat"
  9. [1] (b) Index ← Index + 1: Assignment ✓
  10. [1] (b) IF Modified = TRUE THEN: Selection ✓
  11. [1] (b) ENDWHILE: Iteration ✓

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, 11 marks.
Source
A-Level Computer Science, May/June 2021 Paper 2 Variant 2, question 1.

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