Python Strings
Quiz
•
Computers
•
8th - 12th Grade
•
Practice Problem
•
Medium
Suman Joshi
Used 1K+ times
FREE Resource
Enhance your content in a minute
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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 QUESTION
30 sec • 1 pt
What is printed by the following statement?
print("P" not in "APCSP")
True
False
Error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is printed by the following statement?
print("A" in "APCSP")
True
False
Error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Evaluate the following expression:
"dog" < "Dog"
They are the same word
True
False
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For strings, the + operator represents
Concatenation
Addition
Appending
Recantation
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
data = "No Way!" The expression len(data) evaluates to:
7
9
8
6
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator returns True if target string is somewhere in the search string; otherwise it returns False.
==
!=
in
is
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?
Similar Resources on Wayground
19 questions
Storage Devices and Media Quiz
Quiz
•
10th Grade
10 questions
Data Engineering y BigQuery V1
Quiz
•
12th Grade
10 questions
Python web level 1
Quiz
•
8th Grade
15 questions
Chapter 3: Storage devices and media (Part 2):
Quiz
•
10th - 11th Grade
10 questions
EMPTECH L4 Q2
Quiz
•
12th Grade
10 questions
Server Administration- Quiz 1
Quiz
•
12th Grade - University
15 questions
Databases
Quiz
•
11th Grade
10 questions
💯 Quiz 1:Work with Fractions in Google Sheets
Quiz
•
8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
