Python Strings
Assessment
•
Suman Joshi
•
Computers
•
8th - 12th Grade
•
1K plays
•
Medium
Improve your activity
Higher order questions
Match
•
Reorder
•
Categorization
actions
Add similar questions
Add answer explanations
Translate quiz
Tag questions with standards
More options
14 questions
Show answers
1.
Multiple Choice
Python accepts single ('), double (") and triple (''' or """) quotes to denote strings. Which of the following is NOT acceptable Python syntax?
print('Hello World')
print("Hello World")
print('Hello World")
print(""'Hello World'"")
2.
Multiple Choice
What is printed by the following statement?
print("P" not in "APCSP")
True
False
Error
3.
Multiple Choice
What is printed by the following statement?
print("A" in "APCSP")
True
False
Error
4.
Multiple Choice
Evaluate the following expression:
"dog" < "Dog"
They are the same word
True
False
5.
Multiple Choice
For strings, the + operator represents
Concatenation
Addition
Appending
Recantation
6.
Multiple Choice
data = "No Way!" The expression len(data) evaluates to:
7
9
8
6
Explore this activity with a free account
Find a similar activity
Create activity tailored to your needs using
Input Output and Storage Devices
•
1st - 4th Grade
Principles of Programming Languages
•
University
Java Programming
•
2nd Grade
Revision Test
•
4th - 5th Grade
Android
•
2nd - 5th Grade
Input and Output Device
•
1st - 2nd Grade
Algorithms and Flowcharts
•
3rd - 5th Grade
Windows Basics
•
5th Grade