String methods - Revision

String methods - Revision

11th Grade

25 Qs

quiz-placeholder

Similar activities

C++

C++

9th Grade - University

20 Qs

Python Middle Schooler

Python Middle Schooler

8th - 12th Grade

25 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

2.3 Robust Programs MCQs L2

2.3 Robust Programs MCQs L2

10th - 11th Grade

20 Qs

About My School Project - Quiz

About My School Project - Quiz

8th - 12th Grade

21 Qs

CodeHS AP CSP Unit 3 Review

CodeHS AP CSP Unit 3 Review

11th - 12th Grade

22 Qs

Python Strings & Lists

Python Strings & Lists

11th - 12th Grade

20 Qs

XI-UNIT 4 Python: Programming Methodology

XI-UNIT 4 Python: Programming Methodology

11th Grade

30 Qs

String methods - Revision

String methods - Revision

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Srividya Subramani

Used 7+ times

FREE Resource

25 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

Surya 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

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

isupper()

islower()

upper()

lower()

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?