Question 10 2024 · October-November · Paper 22 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 10
Question 6
Show text version of question
Question 10
The function LENGTH(X) calculates the length of a string X
Write the pseudocode statements to:
- allow a line of text to be input to an appropriate variable
- store this line of text in a text file called Main.txt
- calculate the length of the line of text and output the text in lower case along with its length
- store the lower-case line of text in a text file called Lowercase.txt
Make sure that any variables used are declared and that both text files are closed after they have been used.
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
..........................................................................................................................................................
....................................................................................................................................................
Question 10
, ,
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_w24_qp_22.pdf
