Past-paper question · 2023 October-November · Paper 22 · Q7

Question 7 2023 · October-November · Paper 22 · 5 marks

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

Official answer for Question 7

✓
One mark per mark point, max five

Question 5

✓
MP1
✓
storing string in Quote
✓
MP2
✓
correct assignment for Start // sending correct start value
✓
MP3
✓
correct assignment for Number // sending correct number of
✓
characters
✓
MP4
✓
use of SUBSTRING function with first parameter as Quote, or
✓
equivalent, plus two other parameters
✓
MP5
✓
correct use of LCASE function
✓
MP6
✓
two correct outputs
✓
For example:
✓
Quote "Learning Never Exhausts The Mind"
✓
Start 25
✓
Number 8
✓
OUTPUT SUBSTRING(Quote, Start, Number)
✓
OUTPUT LCASE(Quote)
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_w23_ms_22.pdf →

Show text version of question

Question 7

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]
Topic relevance

Why this question appears here

99% assigned-topic match · Programming › Programming concepts

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 0478_w23_qp_22.pdf

Keep practising this topic