Search Header Logo

String methods - Revision

Authored by Srividya Subramani

Computers

11th Grade

Used 8+ times

String methods - Revision
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

S="God Bless You"

print(S[:2:-2])

'uYseBdG'

'uoY sselB '

'uoY sselB d'

'uYseB'

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

print(len("Class XI A") )gives

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print("es S" in "Cochin Refineries School") gives

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

"apple">"Apple" gives

True

False

Error

Invalid operator

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a valid String operator?

>

<

/

*

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Daya is working in a company "Redefined". He has two fields which accept the first name and last name of the employees and merge them into a single String with space in between. Help him by suggesting an appropriate method

add()

remove()

join()

concatenate()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Gokul wants to convert the user names for mail id into small letter. Which String method should he use?

isupper()

islower()

upper()

lower()

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?