Search Header Logo

String methods in Python

Authored by Anastasiia Maslechko

Computers

KG - Professional Development

Used 7+ times

String methods in Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

print(capitalize("ABBA"))

ABBA

aBBA

abba

Error

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

print(capitalize("plotter"))

Plotter

PLOTTER

plotter

Error

3.

FILL IN THE BLANKS QUESTION

20 sec • 1 pt

print("New Age".lower())

(a)  

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

print("TeLeGrAm".casefold())

tElEgRaM

TELEGRAM

telegram

Error

TeLeGrAm

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

print("ABACUS".count('b'))

1

2

0

Error

6

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

print("linear algebra".count("a"))

3

14

0

Error

2

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

word = "sucaba!"

print("yes" if word.endswith('a') else "ok")

yes

no

ok

error

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

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?