Strings and String Manipulations Model Question Paper

12th Standard EM

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 40
    5 x 1 = 5
  1. Strings in python:

    (a)

    Changeable

    (b)

    Mutable

    (c)

    Immutable

    (d)

    flexible

  2. Which of the following is the slicing operator?

    (a)

    { }

    (b)

    [ ]

    (c)

    < >

    (d)

    ( )

  3. Which of the following is used as placeholders or replacement fields which get replaced along with format( ) function?

    (a)

    { }

    (b)

    < >

    (c)

    ++

    (d)

    ^^

  4. String index values are also called as

    (a)

    class

    (b)

    function

    (c)

    subscript

    (d)

    arguments

  5. Which of the following is used to access and manipulate the strings

    (a)

    Index value

    (b)

    Subscript

    (c)

    Argument

    (d)

    Parameters

    (e)

    a or b

  6. 5 x 2 = 10
  7. Do you modify a string in Python?

  8. What is slicing?

  9. Write the general format of slice operation.

  10. What is meant by stride?

  11. Write a note on the function center ().

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

  14. Write a program to accept a string and print it in reverse order.

  15. Write the output of the following statements.
    (i) print (len ("Corporation"))
    (ii) print ("school", Capitalize ())
    (iii) print ("Welcome" center (15, '*'))

  16. Write the output of the following statements.
    (i) 'Python 2.3' . isalpha ()
    (ii) 'Python Program' . is alnum ()
    (iii) 'Python' . isupper ()

  17. Why 'in' and 'not in' operators are called membership operator? Explain with example.

  18. 2 x 5 = 10
  19. Write a python program to check whether the given string is palindrome or not.

  20. 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 Computer Science - Strings and String Manipulations Model Question Paper

Write your Comment