Year 10 Computer Science: String Manipulation Worksheet

Computer Science
Year 10
11 questions
~22 mins
0 views0 downloads

About This Worksheet

This worksheet focuses on understanding and manipulating strings using programming concepts. Complete the questions to demonstrate your knowledge of string operations.

Worksheet Preview

Full preview • 11 questions

Year 10 Computer Science: String Manipulation Worksheet

Subject: Computer ScienceGrade: Year 10
Name:
Date:
TeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizz

Untitled Worksheet

Grade Year 10
A

Questions

This worksheet focuses on understanding and manipulating strings using programming concepts. Complete the questions to demonstrate your knowledge of string operations.

Answer all questions in the spaces provided.
1.
Write a short program or pseudocode to concatenate the string "Hello" with the string "World" and display the result.
[4 marks]
2.
Given the string "Programming", find the character at the 5th position (assuming the first position is 1).
[3 marks]
3.
Describe how you would extract the substring "gram" from the string "Programming" in your chosen programming language.
[4 marks]
4.
Write a program or pseudocode to convert the string "hello" to uppercase.
[3 marks]
5.
Given the string "DataScience", write a line of code that replaces "Science" with "Analysis".
[4 marks]
6.
Describe what the following pseudocode does: FOR i FROM 0 TO LENGTH OF string - 1 PRINT character at position i END FOR
[4 marks]
7.
Sketch a simple flowchart that shows the logic for checking if a string contains the letter 'a'.
[6 marks]
Drawing / Sketch space
8.
Complete the truth table for the logical AND gate with inputs A and B: | A | B | Output | |---|---|---------|
[5 marks]
ABOutput
00
01
10
11
9.
Draw a flowchart that starts with inputting a string, then checks if the string length is greater than 5, and finally outputs an appropriate message.
[8 marks]
Drawing / Sketch space
10.
Explain how you would reverse a string in your chosen programming language.
[3 marks]
11.
Write pseudocode to convert all vowels in a string to the uppercase letter 'A'.
[6 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