Tutorpip← About this lessonABCWith the answer keyDownload PDF
Coding · Ages 10+ · Set C
Strings
Scan to mark
on screen
C
Name
Date
Start Finish
Goal: 15 min
Score/ 12
Remember: A string is text in quotes. Plus joins strings end to end.

Questions

1
Which idea about strings is true?
🧵text in quotes is called a string➖strings can be taken away with a minus🪄plus adds a space between strings by itself
2
Which line shows fifty-five?
🔤print("5" + "5")🔤print("robot".upper())🔤print("Zara" - "Bo")
3
Which line shows Zara and Bo with a space between?
🔤print("Zara" - "Bo")🔤print("5" + "5")🔤print("Zara" + " " + "Bo")
4
🪄Is it true that plus adds a space between strings by itself?
YesNo
5
Which line joins Zara and Bo with no space?
🔤print("Zara" - "Bo")🔤print("robot".upper())🔤print("Zara" + "Bo")
6
Which line has a bug?
🔤print(5 + 5)🔤print("Zara" - "Bo")🔤print("Zara" + "Bo")
7
Which idea about strings is true?
🔗plus joins two strings end to end🔡len counts only the letters, not the spaces💭a number in quotes is still a number
8
Which line counts the letters in the word robot?
🔤print("Zara" - "Bo")🔤print("robot".upper())🔤print(len("robot"))
9
Which line shows the word ROBOT in capitals?
🔤print("Zara" + "Bo")🔤print("robot".upper())🔤print(5 + 5)
10
Which idea about strings is true?
🪄plus adds a space between strings by itself🔡len counts only the letters, not the spaces📏len tells how many characters a string has
11
Which line shows ha three times?
🔤print(len("Zara Bo"))🔤print("ha" * 3)🔤print(5 + 5)
12
Which idea about strings is not true?
💭a number in quotes is still a number📏len tells how many characters a string has␣a space is a character too
Scan the code at the top to mark this sheet on screenTake a photo of your answers or type them. It is marked for you automatically, and your score is kept.