
Strings in python - Test
Flashcard
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Wayground Content
Used 2+ times
FREE Resource
Student preview

50 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What letter will be printed on the screen after running this code:
Back
t
2.
FLASHCARD QUESTION
Front
Which of the operator can be used in Strings?
Back
Both of the above
3.
FLASHCARD QUESTION
Front
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'"")
Back
print('Hello World")
4.
FLASHCARD QUESTION
Front
What is printed by the following statement? print("P" not in "APCSP")
Back
False
5.
FLASHCARD QUESTION
Front
What is printed by the following statement? print("A" in "APCSP")
Back
True
6.
FLASHCARD QUESTION
Front
For strings, the + operator represents
Back
Concatenation
7.
FLASHCARD QUESTION
Front
What does the expression len(data) evaluate to when data = "No Way!"?
Back
7
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?