Python - Modify Strings - 3

Python - Modify Strings - 3

12th Grade

10 Qs

quiz-placeholder

Similar activities

Introduction to Python Programming Quiz 9E

Introduction to Python Programming Quiz 9E

10th Grade - University

13 Qs

Intro to Python Programming Quiz 9B

Intro to Python Programming Quiz 9B

10th Grade - University

14 Qs

Unit 2 Terms 2.4-2.7

Unit 2 Terms 2.4-2.7

12th Grade

12 Qs

Python - Slicing Strings - 2

Python - Slicing Strings - 2

12th Grade

10 Qs

Introductory Quiz

Introductory Quiz

9th - 12th Grade

10 Qs

Intro to Python Programming Quiz 9C

Intro to Python Programming Quiz 9C

10th Grade - University

12 Qs

String Methods Review

String Methods Review

9th Grade - University

10 Qs

Python String formatting

Python String formatting

12th Grade

10 Qs

Python - Modify Strings - 3

Python - Modify Strings - 3

Assessment

Quiz

Other

12th Grade

Hard

Created by

Amy Austin

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?