Past-paper question · 2024 May-June · Paper 23 · Q7(a)

Question 7(a) 2024 · May-June · Paper 23 · 4 marks

Question 7

Part (a)

The string operation SUBSTRING(FullText, X, Y) returns a string from FullText beginning at position X that is Y characters long. The first character in FullText is in position 1.

Write the pseudocode statements to:

  • store the string “IGCSE Computer Science at Cambridge” in FullText
  • extract and display the words “Computer Science” from the string and store it in a suitable
  • variable

  • output the original string in upper case.

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

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

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

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

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

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

[4]
Reveal official mark-scheme answer Official mark-scheme answer for 7(A)

Official answer for Question 7

Part (a)

✓
One mark per mark point

Question 4

✓
MP1
✓
Assignment of given string to FullText
✓
MP2
✓
Correct use of SUBSTRING and assignment of reduced string to own variable
✓
MP3
✓
Correct use of UCASE
✓
MP4
✓
Output of both strings
✓
Example:
✓
FullText "IGCSE Computer Science at Cambridge"
✓
PartText SUBSTRING(FullText, 7, 16)
✓
OUTPUT PartText, UCASE(FullText)

Mark scheme 0478_s24_ms_23.pdf →

Topic relevance

Why this question appears here

98% 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_s24_qp_23.pdf

Keep practising this topic