Python - Modify Strings - 3

Python - Modify Strings - 3

12th Grade

10 Qs

quiz-placeholder

Similar activities

H&T 2.01 Objective

H&T 2.01 Objective

10th - 12th Grade

14 Qs

Media and Information Literacy Module 1 Pre-Test

Media and Information Literacy Module 1 Pre-Test

12th Grade

10 Qs

 Kinds of Quantitative Research, Kinds of Variables

Kinds of Quantitative Research, Kinds of Variables

12th Grade

10 Qs

Football Quiz

Football Quiz

KG - Professional Development

15 Qs

Tour guiding: LO1

Tour guiding: LO1

12th Grade

12 Qs

Criminal Justice & Court Systems Final Assessment Review

Criminal Justice & Court Systems Final Assessment Review

10th - 12th Grade

10 Qs

ONLINE PLATFORMS

ONLINE PLATFORMS

11th - 12th Grade

10 Qs

Friendship Bracelet Vocab Review

Friendship Bracelet Vocab Review

9th - 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?