Strings and String Manipulations Three and Five Marks Questions

12th Standard EM

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:45:00 Hrs
Total Marks : 35
    5 x 3 = 15
  1. Write a Python program to display the given pattern
    C O M P U T E R
    C O M P U T E
    C O M P U T
    C O M P U
    C O M P
    C O M
    C O
    C

  2. Write a short about the followings with suitable example:
    (a) capitalize( )
    (b) swapcase( )

  3. What will be the output of the given python program?
    str1 = "welcome"
    str2 = "to school"
    str3=str1[:2]+str2[len(str2)-2:]
    print(str3)

  4. What is the use of format( )? Give an example.

  5. Write a note about count( ) function in python.

  6. 4 x 5 = 20
  7. Explain about string operators in python with suitable example.

  8. Write a python program to check whether the given string is palindrome or not.

  9. Write a python program to print the following pattern
    *
    **
    ***
    ****
    *****

  10. Write a python program to display the number of vowels and consonants in the given string.

*****************************************

TN 12th Standard EM Computer Science free Online practice tests

Reviews & Comments about 12th Standard Computer Science - Strings and String Manipulations Three and Five Marks Questions

Write your Comment