Python String Methods

Python String Methods

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What are strings in Python?

Back

characters (text)

2.

FLASHCARD QUESTION

Front

What is one way to print the statement below:
It’s a Wonderful Life!
Options:
print( “It’s a Wonderful Life!’ ),
print ( ‘It’s a Wonderful Life!’ ),
print ( It’s a Wonderful Life! ),
print ( “It’s a Wonderful Life!” )

Back

print ( “It’s a Wonderful Life!” )

3.

FLASHCARD QUESTION

Front

What will print out as a result of this code? Options: Quint, quint, QUINT, QuInT

Media Image

Back

QUINT

4.

FLASHCARD QUESTION

Front

In the code that you see, am I using the upper method on a string or an a variable?

Media Image

Back

string

5.

FLASHCARD QUESTION

Front

What is the outcome of running this code? Options: LOVELACE, Ada, ADA lovelace, LOVELACE, none of the above

Media Image

Back

LOVELACE, Ada

6.

FLASHCARD QUESTION

Front

What character begins a comment?

Back

#

7.

FLASHCARD QUESTION

Front

How do you combine two strings?

Back

string1 + string2

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?