Computer Science - Informatics Practices Class XI/XII Python Module Solved Test Part 7
Q1. Write a function in python that takes a list of words and returns the
word of longest length.
Q2. Write a function in python that takes a list of words and returns the
word which are starting from capital alphabet.
Q3. Write a function in python that takes a list of words and returns all the
words with last character in upper case.
Q4. Write a function in python that takes a string and convert all lower case
alphabet to upper case and vice-versa.
Q5. Write a function in python that takes a string and replace all vowels by
symbol "?".
Q6. Write a function in python that takes a string and count the characters
in upper case.
Q7. Write a function in python that takes a string and count the number of
vowels.
Q8. Write a function in python that takes a string and count the number of
spaces.
Q9. Write a function in python that takes a string and count the number of
digits in a string.
Q10. Write a function in python that takes a string and sub string and check
whether a sub string is a part of string or not.
Solutions
Ans1:
Ans 5: