Year 8 Programming: String Manipulation Worksheet
Computer Science
Year 8
11 questions
~22 mins
0 views0 downloads
About This Worksheet
This worksheet focuses on understanding and manipulating strings in programming. Complete each question to demonstrate your knowledge.
Worksheet Preview
Full preview • 11 questions
Year 8 Programming: String Manipulation Worksheet
Subject: Computer ScienceGrade: Year 8
Name:
Date:
TeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizz
Untitled Worksheet
Grade Year 8
A
Questions
This worksheet focuses on understanding and manipulating strings in programming. Complete each question to demonstrate your knowledge.
Answer all questions in the spaces provided.
1.
Write a short program in pseudocode that takes a string input and prints the same string with all vowels removed.
[8 marks]2.
Given the string 'Programming', what is the result of extracting the substring from position 0 to 4 (inclusive)?
[2 marks]3.
Write a function in pseudocode that takes a string and returns the string with its characters in reverse order.
[6 marks]4.
Explain what the following code does: 'str = 'Hello'; str = str + ' World';'
[3 marks]5.
Complete the following sentence: In string manipulation, the method that finds the position of the first occurrence of a specific character or substring is called __________.
[2 marks]6.
Describe how you would check if a string contains the word 'Python' in pseudocode.
[4 marks]7.
Draw a flowchart illustrating the logic for checking if a given string is a palindrome (reads the same forwards and backwards). Label the start, decision, and end points clearly.
[2 marks]Drawing / Sketch space
8.
Write pseudocode to replace all occurrences of the letter 'a' in a string with '@'.
[5 marks]9.
What will be the output of the string operation: 'Hello'.substring(1,4)?
[2 marks]10.
Sketch a simple diagram to illustrate how concatenating two strings works in programming. Label the two input strings and the resulting combined string.
[2 marks]Drawing / Sketch space
11.
Explain the difference between the 'length' property of a string and the 'substring' method.
[4 marks]Quick Actions
What is Remix?
Create a new worksheet based on this one. Change the grade level, topic, number of questions, or difficulty - then generate a fresh version.
- • Change grade level (Grade 6 → Grade 7)
- • Swap topics (Harry Potter → Macbeth)
- • Add more questions (10 → 15)
- • Adjust difficulty
Details
- Created
- 1/2/2026
- Updated
- 1/2/2026
- Type
- worksheet