← ACARA Digital Technologies Years 5–6

Joining text together

Gluing two pieces of text end to end into one, so "sun" and "shine" make "sunshine". It joins text together; it does not add numbers, so "3" and "4" make "34".

Understanding Joining text together in ACARA Digital Technologies Years 5–6

What it does: The " " is a piece of text holding one space. Joining it between the names gives "Ava Nguyen". Both values are text, so they are glued end to end to make "102" instead of being added to make 12. Text in quotes is not added like numbers. Joining just glues the two pieces together, so you get "34". Concatenation is about gluing text together. It is not maths. The first piece comes first and the second piece is glued on the end, so "foot" then "ball" makes "football". Without the " " piece, the names would be stuck together as "MiaChen".

Common mistakes: Quote marks turn full into plain text, so the program would show the word full. Without quotes, it shows what is stored in the variable: show full. The variable is spelled wrong. The program made joined, which holds "34", but this line asks for joind, which does not exist. It should be show joined.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.

This module's key terms are also in a printable crossword (Modules 85–104) and word search (Modules 73–104).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
What do you get when you join "sun" and "shine" end to end?
sun shinesunshine
Matches
"Ava" + "Nguyen"
↓
There is no space piece, so the result is "AvaNguyen" with the names squashed together. Join a " " in the middle.
Applying
Meanings
Term
concatenation
Meaning
Gluing two pieces of text end to end into one, so "sun" and "shine" make "sunshine". It joins text together; it does not add numbers, so "3" and "4" make "34".
Practice
first = "Ava"
Testing
Gaps
print("sun" "shine")
Check Answer
Spots
3full ← first + " " + last
4show "full"

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Reef Shark' badge — Reef Ruler, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. What do you get when you join "sun" and "shine" end to end?
A. sunshine ✓
B. sun shine
Joining (concatenation) glues the text end to end. It does not add a space unless you put one in.
2. Which one joins the text "3" and "4" into "34"?
A. Joining the text "3" and "4" gives 7
B. Joining the text "3" and "4" gives "34" ✓
Text in quotes is not added like numbers. Joining just glues the two pieces together, so you get "34".
3. You join "Sam" and "Lee" to make a full name. How do you get "Sam Lee" with a space in the middle?
A. Join "Sam", then " ", then "Lee" ✓
B. Join "Sam" and "Lee" and the computer adds a space
The computer glues text exactly as given. To get a space, you must join a piece of text that holds a space, like " ".
4. Which statement about joining text is true?
A. Joining adds two pieces of text like numbers
B. Joining glues two pieces of text end to end ✓
Concatenation is about gluing text together. It is not maths.
5. What do you get when you join "foot" and "ball"?
A. football ✓
B. ballfoot
The first piece comes first and the second piece is glued on the end, so "foot" then "ball" makes "football".

Match the Pairs

"sun" + "shine" → Joins the two pieces of text end to end to make "sunshine"
"3" + "4" → Joins the text to make "34", not 7
To join a first and last name with a gap between them, join a space in the middle → "Ava" + " " + "Nguyen"
Joining is not adding: joining the text "10" and "2" glues them together as "102" → "10" + "2"
"Ava" + "Nguyen" → There is no space piece, so the result is "AvaNguyen" with the names squashed together. Join a " " in the middle.
"sun" + shine → The word shine is missing its quote marks, so it is not text and cannot be joined. It should be "shine".

Key Term

concatenation
Gluing two pieces of text end to end into one, so "sun" and "shine" make "sunshine". It joins text together; it does not add numbers, so "3" and "4" make "34".

Fill in the Blanks

1. print("sun" + "shine")
Hint: Type the operator that glues two pieces of text end to end.
2. first = "Mia" last = "Lee" print(first + " " + last)
Hint: Type the variable name that holds the family name, so the full name is joined.
3. print("3" + "4")
Hint: Type the function that shows the joined text on the screen. The text "3" and "4" join to make 34.
4. space = " " print("sun" + space + "set")
Hint: Type the variable name that holds the single space, so there is a gap between the two words.
5. a = "3" b = "4" print(a + b)
Hint: Type the variable that holds the second piece of text, so the two texts are joined (not added).

Spot the Error

Question 1
A first ← "Mia"
B last ← "Lee"
C full ← first + " " + last
D show "full"
Line D — Quote marks turn full into plain text, so the program would show the word full. Without quotes, it shows what is stored in the variable: show full.
Question 2
A a ← "3"
B b ← "4"
C joined ← a + b
D show joind
Line D — The variable is spelled wrong. The program made joined, which holds "34", but this line asks for joind, which does not exist. It should be show joined.
Question 3
A part1 ← sun
B part2 ← "shine"
C word ← part1 + part2
D show word
Line A — Text must be inside quote marks. Without them, sun looks like a variable name. It should be part1 ← "sun".
Question 4
A a ← "ice"
B b ← "cream
C food ← a + b
D show food
Line B — The closing quote mark is missing, so the computer cannot tell where the text ends. It should be b ← "cream".
Question 5
A first ← "Mia"
B full ← first + "Lee"
C show full
Line B — There is no space between the names, so it would show MiaLee. Join a space too: first + " " + "Lee".

Student with a class code? Join your class →