
String Operators in Python
Authored by Mr. So
Computers
8th Grade
Used 26+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code:
print ("Hello " + "World")
What is printed?
Hello World
Hello + World
an error message
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code:
print ("a"+"b"+"c")
What is printed?
an error message
6
abc
a+b+c
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the str() command do?
makes things strong
converts whatever is inside the parentheses to a string
converts whatever is inside the parentheses to a number
does nothing
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code:
print ("hi" * 3)
What is printed?
hi3
hi*3
hihihi
an error message
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code:
print ("hi" + str(3))
What is printed?
hi + str(3)
hi3
hi"3"
an error message
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code:
print ("I am " + 13 + " years old.")
What would be printed?
I am 13 years old
I am years old
13
an error message
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?