Python - Modify Strings - 3

Python - Modify Strings - 3

12th Grade

10 Qs

quiz-placeholder

Similar activities

Rugby law: 8 Scoring

Rugby law: 8 Scoring

9th - 12th Grade

13 Qs

CPSA Technology Game

CPSA Technology Game

6th - 12th Grade

11 Qs

Devising

Devising

10th Grade - Professional Development

10 Qs

Minecraft

Minecraft

KG - 12th Grade

13 Qs

Undertale

Undertale

1st - 12th Grade

10 Qs

Table Appointments "LINEN"

Table Appointments "LINEN"

12th Grade - University

10 Qs

Word of the Week

Word of the Week

10th - 12th Grade

10 Qs

Python - Modify Strings - 3

Python - Modify Strings - 3

Assessment

Quiz

Other

12th Grade

Practice Problem

Hard

Created by

Amy Austin

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is used to return a string in upper case?

capitalize()

makeUpper()

toUpperCase()

upper()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method removes whitespace from the beginning or the end of a string?

removeSpaces()

cut()

strip()

trim()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you replace a string with another string in Python?

change()

replaceString()

replace()

swap()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method splits a string into a list?

break()

cut()

split()

divide()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method returns the string in lower case?

lower()

toLowerCase()

smaller()

makeLower()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid string method in Python?

strip()

splice()

split()

replace()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you concatenate strings in Python?

Using the join() method

Using the + operator

Using the concat() method

Using the append() method

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?