New ! Computer Science MCQ Practise Tests



Strings and String Manipulations Model Question Paper

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:30:00 Hrs
Total Marks : 50
    7 x 1 = 7
  1. What will be the output of the following code?
    str1 = "Chennai Schools"
    str1[7] = "-"

    (a)

    Chennai-Schools

    (b)

    Chenna-School

    (c)

    Type error

    (d)

    Chennai

  2. Which of the following is the slicing operator?

    (a)

    { }

    (b)

    [ ]

    (c)

    < >

    (d)

    ( )

  3. Which of the following formatting character is used to print exponential notation in upper case?

    (a)

    %e

    (b)

    %E

    (c)

    %g

    (d)

    %n

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

    (a)

    { }

    (b)

    < >

    (c)

    ++

    (d)

    ^^

  5. The subscript of a string may be:

    (a)

    Positive

    (b)

    Negative

    (c)

    Both (a) and (b)

    (d)

    Either (a) or (b)

  6. String are enclosed with

    (a)

    "

    (b)

    " "

    (c)

    '''''' ''''''

    (d)

    ''' '''

    (e)

    all of these

  7. The negative subscript is always begins with

    (a)

    0

    (b)

    1

    (c)

    -1

    (d)

    -1.0

  8. 5 x 1 = 5
  9. %i

  10. (1)

    signed decimal integer

  11. %X

  12. (2)

    hexadecimal integer

  13. \a

  14. (3)

    Bell

  15. \f

  16. (4)

    Form feed

  17. \t

  18. (5)

    line feed

    4 x 2 = 8
  19. What is String?

  20. How will you delete a string in Python?

  21. What is slicing?

  22. How will you manipulate the strings?

  23. 5 x 3 = 15
  24. Write a short about the followings with suitable example:
    (a) capitalize( )
    (b) swapcase( )

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

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

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

  28. Write the syntax and example of using string characters.

  29. 3 x 5 = 15
  30. Explain about string operators in python with suitable example.

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

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

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

Reviews & Comments about 12th Standard Computer Science - Strings and String Manipulations Model Question Paper

Write your Comment