Python Strings

Quiz
•
Computers
•
8th - 12th Grade
•
Medium

Suman Joshi
Used 1K+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
19 questions
Programming Techniques Survey

Quiz
•
8th - 12th Grade
10 questions
Class VIII_Basic Python Programming Quiz

Quiz
•
8th Grade
10 questions
CodeTigers Python 101

Quiz
•
KG - Professional Dev...
9 questions
Basic Python Coding

Quiz
•
6th - 12th Grade
14 questions
year 8 lesson 2 quiz - python

Quiz
•
8th - 10th Grade
17 questions
Python - Quiz

Quiz
•
9th - 11th Grade
13 questions
Python

Quiz
•
7th - 8th Grade
11 questions
Python for Class 7

Quiz
•
7th - 8th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
10 questions
Networking Devices and Their Functions

Interactive video
•
5th - 8th Grade
15 questions
1.1 Network Fundamentals Quiz

Quiz
•
10th Grade