Year 7 Computer Science: String Manipulation Worksheet
Computer Science
Year 7
11 questions
~22 mins
0 views0 downloads
About This Worksheet
This worksheet focuses on understanding and manipulating strings in programming. Complete the questions to demonstrate your knowledge of string operations.
Worksheet Preview
Full preview • 11 questions
Year 7 Computer Science: String Manipulation Worksheet
Subject: Computer ScienceGrade: Year 7
Name:
Date:
TeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizz
Untitled Worksheet
Grade Year 7
A
Questions
This worksheet focuses on understanding and manipulating strings in programming. Complete the questions to demonstrate your knowledge of string operations.
Answer all questions in the spaces provided.
1.
Write a line of code that creates a string variable called 'greeting' with the value 'Hello World'.
[2 marks]2.
Given the string 'Programming', what is the length of this string? Write your answer as a number.
[2 marks]3.
Using the string 'Computer', write a code line that extracts and displays the first 4 characters.
[3 marks]4.
What will be the output of the following code? 'Python'.lower()
[2 marks]5.
Write a code snippet that replaces the word 'cats' with 'dogs' in the string 'I like cats'.
[3 marks]6.
What is the result of adding the strings 'Hello' and 'World' together? Write the combined string.
[2 marks]7.
Complete the truth table for the AND logic gate with inputs A and B and output C. Fill in the missing values.
[4 marks]| A | B | Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
8.
Draw a flowchart representing a program that checks if a number is greater than 10 and prints 'Yes' if true, 'No' otherwise.
[8 marks]Drawing / Sketch space
9.
Describe in words how you would combine two strings, 'Hello' and 'World', into one string with a space between them.
[3 marks]10.
Given the string 'Mississippi', write code to extract the substring 'sissippi'.
[3 marks]11.
Sketch a simple plan (pseudocode) for a program that asks the user for their name and then greets them with 'Hello, [name]'.
[8 marks]Drawing / Sketch space
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