Python - Modify Strings - 3

Python - Modify Strings - 3

12th Grade

10 Qs

quiz-placeholder

Similar activities

Python String formatting

Python String formatting

12th Grade

10 Qs

bài kiểm tra

bài kiểm tra

11th - 12th Grade

10 Qs

Musical Istruments

Musical Istruments

KG - 12th Grade

10 Qs

Nha Pct Ekg

Nha Pct Ekg

12th Grade

15 Qs

Quiz No.5: String and Number Manipulation

Quiz No.5: String and Number Manipulation

11th Grade - University

15 Qs

Philippines Quiz

Philippines Quiz

2nd - 12th Grade

13 Qs

ElectricalRECAP

ElectricalRECAP

10th Grade - University

10 Qs

Java Lesson 3

Java Lesson 3

5th Grade - University

5 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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?