Python Quiz #5 – String Manipulation Level #1

Python basic Quiz. 5 Questions. Difficulty Level: Easy to Moderate. Concept: Python String Manipulations.

Hello Everyone! Welcome to the Short Quiz on Python String manipulations.

This Quiz contains of 5 simple questions. After completing the Quiz, immediately you will get the results displayed with correct answers.

If you would like to learn more on the concept, you can find our tutorial page Python Strings and String Manipulation.

Please feel free to provide your feedback in the comments box in bottom of the page.

Happy Programming!

Welcome to your Python Basic Quiz #5 - String Manipulation Level #1

The questions in this Quiz are based on the below strings.

string1 = "Once upon a time a girl named Cinderella lived with her stepmother and two stepsisters"
string2 = "Cinderella"

From "string1", we need to extract the string "girl named Cinderella". Which of the below codes will not do return "girl named Cinderella"?

From String1, to get the total number of occurances of character "e", the below code has been written. What will be the result?


From String2, we need to get the characters as given below. Which of the below code will not result the below expected result?

Expected Output: Cneel

Select all that apply.

From the "string2", we need to extract the word "ella". Which of below code will give the expected result?

Select all that apply.

From the "string2", we need to check whether the string "in" existing or not. Which of below code will give the expected result?

Select all that apply.

Asha Ponraj
Asha Ponraj

Data science and Machine Learning enthusiast | Software Developer | Blog Writter

Articles: 86

Leave a Reply

Your email address will not be published. Required fields are marked *