Python Strings

Python Strings

Assessment

Assessment

Created by

Suman Joshi

Computers

8th - 12th Grade

1K plays

Medium

Improve your activity

Higher order questions

Match

Reorder

Categorization

Quizizz AI

actions

Add similar questions

Add answer explanations

Translate quiz

Tag questions with standards

More options

14 questions

Show answers

1.

Multiple Choice

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

30 sec

1 pt

What is printed by the following statement?

print("P" not in "APCSP")

True

False

Error

3.

Multiple Choice

30 sec

1 pt

What is printed by the following statement?

print("A" in "APCSP")

True

False

Error

4.

Multiple Choice

30 sec

1 pt

Evaluate the following expression:

"dog" < "Dog"

They are the same word

True

False

5.

Multiple Choice

30 sec

1 pt

For strings, the + operator represents

Concatenation

Addition

Appending

Recantation

6.

Multiple Choice

30 sec

1 pt

data = "No Way!" The expression len(data) evaluates to:

7

9

8

6

cartoon woman

Explore this activity with a free account

Find a similar activity

Create activity tailored to your needs using

Quizizz AI
Input Output and Storage Devices

16 questions

Input Output and Storage Devices

assessment

1st - 4th Grade

Principles of Programming Languages

100 questions

Principles of Programming Languages

assessment

University

Java Programming

23 questions

Java Programming

lesson

2nd Grade

Revision Test

45 questions

Revision Test

assessment

4th - 5th Grade

Android

10 questions

Android

assessment

2nd - 5th Grade

Input and Output Device

10 questions

Input and Output Device

assessment

1st - 2nd Grade

Algorithms and Flowcharts

10 questions

Algorithms and Flowcharts

assessment

3rd - 5th Grade

Windows Basics

10 questions

Windows Basics

assessment

5th Grade