The number 5 compared with the text "5"

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

The number 5 compared with the text "5"

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which one is the NUMBER 5 and not text?
A 5
B "5"
2. Which one is TEXT?
A 7
B "7"
3. What is 5 + 5 when both are numbers?
A 10
B 55
4. What do you get when you join the text "5" and the text "5" together?
A "55"
B 10
5. In a spreadsheet, which way does a number like 5 line up in its cell?
A To the left
B To the right

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
15 + 5 Aphone = "0412345678"
2"5" + "5" BQuote marks make these text, so they are joined to make "55", not added to make 10.
3Quote marks around a digit turn it into text, so it is no longer a number. CAdds two numbers together to give the number 10.
4A phone number should be stored as text, because you never add phone numbers together. DText lines up on the left in a spreadsheet. Only numbers line up on the right.
5"5" + "5" gives 10 EJoins two pieces of text together to make the text "55".
6A spreadsheet cell holds the text "5", so it lines up on the right like a number. F"5"

Definitions

"5"

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
print(5 _ 5)
2.
print("5" + "5") # shows __
3.
phone = "0412345678" # A phone number is ____
4.
A1: 5 aligns right A2: "5" aligns ____
5.
print(5 + 5) # shows __

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A a = "5"
B b = "5"
C joined = a + b
D print(joined - 1)
Question 2
A name = "Sam"
B age = 11
C print(name)
D phone = 0412345678
Question 3
A x = 5
B y = 5
C total = "5" + "5"
D print(total)
Question 4
A count = 5
B total = count + "5"
C print(total)
Question 5
A A1: 5
B A2: 5
C A3: =A1&A2
D A4: shows 10

Answer Key

The number 5 compared with the text "5"
Section A: Quick Questions
Q1
A — 5
Q2
B — "7"
Q3
A — 10
Q4
A — "55"
Q5
B — To the right
Section B: Match the Pairs
Q1
5 + 5 → Adds two numbers together to give the number 10.
Q2
"5" + "5" → Joins two pieces of text together to make the text "55".
Q3
Quote marks around a digit turn it into text, so it is no longer a number. → "5"
Q4
A phone number should be stored as text, because you never add phone numbers together. → phone = "0412345678"
Q5
"5" + "5" gives 10 → Quote marks make these text, so they are joined to make "55", not added to make 10.
Q6
A spreadsheet cell holds the text "5", so it lines up on the right like a number. → Text lines up on the left in a spreadsheet. Only numbers line up on the right.
Section C: Definitions
Q1
"5" — Text, not a number. Quote marks turn the digit 5 into text, so 5 + 5 makes 10 but "5" and "5" joined make "55". Phone numbers are text too.
Section D: Fill in the Blanks
Q1
print(5 + 5)
Q2
print("5" + "5") # shows 55
Q3
phone = "0412345678" # A phone number is text
Q4
A1: 5 aligns right A2: "5" aligns left
Q5
print(5 + 5) # shows 10
Section E: Spot the Error
Q1
D — joined holds the text "55" because a and b are text in quote marks. You cannot subtract from text. The line should just be print(joined).
Q2
D — A phone number is text, so it needs quote marks. Without them the computer treats it as a number and drops the leading 0. It should be phone = "0412345678".
Q3
C — Quote marks make "5" text, so adding them joins them into "55" instead of making 10. The line should be total = x + y to add the numbers.
Q4
B — count is a number, but "5" in quote marks is text. You cannot add a number and text. The line should be total = count + 5.
Q5
C — The & sign joins things together, so it would show 55. To add the numbers and get 10, use A3: =A1+A2.