Search Header Logo

Python Strings

Authored by T. Arman

Computers

11th Grade

Used 4+ times

Python Strings
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Strings in python are surrounded by either single quotation marks, or double quotation marks.

True

False

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

You can display a string literal with the type() function.

True

False

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

This method returns the string in upper case.

upper()

lower()

strip()

replace()

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

This method returns the string in lower case.

upper()

lower()

strip()

replace()

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

This method removes any whitespace from the beginning or the end.

upper()

lower()

strip()

replace()

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

This method replaces a string with another string.

upper()

lower()

strip()

replace()

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

This method returns a list where the text between the specified separator becomes the list items.

upper()

lower()

split()

replace()

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?