Search Header Logo

String methods 4

Authored by Srividya Subramani

Computers

11th Grade

Used 4+ times

String methods  4
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If S= "Have a Wonderful Day",


print(S.index("a")) gives

2

1

1,5,18

-1

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If S="Good Will",

print(S.find("D")) gives

3

4

-1

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If S="Good Will",

print(S.index("D")) gives

3

4

-1

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If S="Fabulous XI A",

print(S.split('u')) gives

["Fabu","lou","s XI A"]

["Fab","lo","s XI A"]

Error

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If S="Determination",

print(len(S[::-2])) gives

Error

7

13

6

6.

OPEN ENDED QUESTION

2 mins • Ungraded

Vaishnavi is a software Engineer. She is working on an application which creates a login id for the customers. She has to ensure that the id contains only small letter alphabets. Help her by identifying an appropriate method for the same. (Just write the method. no need to write the entire code)

Evaluate responses using AI:

OFF

7.

OPEN ENDED QUESTION

3 mins • Ungraded

Manasa works for Mount Avenue School. She is developing a gaming educational software for the students. She has to store the names of the students in a database. Help her to identify the method to ensure that First_Name field contains only alphabets

Evaluate responses using AI:

OFF

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?