Skip to main content
O-LevelComputer ScienceProgramming2210/22 · Oct/Nov 2023 · Q75 Marks

The string operation SUBSTRING(Quote, Start, Number) returns a string from Quote beginning at position Start that is Number characters long. The first character in Quote is in position 1. Write pseudocode statements to: • store the string "Learning Never Exhausts The Mind" in Quote • extract and display the words "The Mind" from the string • output the original string in lower case.

  1. The string operation SUBSTRING(Quote, Start, Number) returns a string from Quote beginning at position Start that is Number characters long. The first character in Quote is in position 1. Write pseudocode statements to: • store the string "Learning Never Exhausts The Mind" in Quote • extract and display the words "The Mind" from the string • output the original string in lower case.[5]

Mark scheme

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

  1. [5] One mark per mark point, max five
  2. MP1 storing string in Quote
  3. MP2 correct assignment for Start // sending correct start value
  4. MP3 correct assignment for Number // sending correct number of characters
  5. MP4 use of SUBSTRING function with first parameter as Quote, or equivalent, plus two other parameters
  6. MP5 correct use of LCASE function
  7. MP6 two correct outputs
  8. For example: Quote ← "Learning Never Exhausts The Mind" Start ← 25 Number ← 8 OUTPUT SUBSTRING (Quote, Start, Number) OUTPUT LCASE (Quote)

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, O-Level Computer Science (syllabus 2210). Structured question, 5 marks.
Source
O-Level Computer Science, Oct/Nov 2023 Paper 2 Variant 2, question 7.

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