0% found this document useful (0 votes)
49 views1 page

Test 12 Class Strings 15 Marks 30 Mins

The document provides instructions for 9 string manipulation tasks to be completed in Python with specified point values and a 30 minute time limit.

Uploaded by

Taru Goel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views1 page

Test 12 Class Strings 15 Marks 30 Mins

The document provides instructions for 9 string manipulation tasks to be completed in Python with specified point values and a 30 minute time limit.

Uploaded by

Taru Goel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

TEST

TH
12 CLASS STRINGS

15 MARKS 30
MINS

1. WAP to input a string and print it in reverse order. 3


2. WAP to print the 3rd occurrence of letter ‘a’ in string “taj mahal”. 1
3. WAP to print the number of substring in a string, when both
entered by the user. 3
4. Find the position of “tu” in string “institute”. 1
5. WAP to replace vowels with space in a string. 1
6. In s=”stubborn”, what s[-7:-1] prints? 1
7. If str1=”torment”, then print the replica of the string 3 times.1
8. What the statement, ‘ab’ not in ‘abnormal’ prints? 1
9. WAP to print “python” like this – 3
P
Py
Pyt
Pyth
Pytho
Python

You might also like