New ! Computer Science MCQ Practise Tests



Strings and String Manipulations Model Question Paper 1

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 50
    5 x 1 = 5
  1. Defining strings within triple quotes allows creating:

    (a)

    Single line Strings

    (b)

    Multiline Strings

    (c)

    Double line Strings

    (d)

    Multiple Strings

  2. Strings in python:

    (a)

    Changeable

    (b)

    Mutable

    (c)

    Immutable

    (d)

    flexible

  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. 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. What is String?

  8. How will you delete a string in Python?

  9. What is slicing?

  10. Write the general format of slice operation.

  11. What has to be filled in the blank to get the following output
    (i) Welcome python
    (ii) Welcome to learn python From
    (a) print ("Welcome" ____ "Python") strl = "Welcome"
    (b) print (Strl ____ "to learn python")

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

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

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

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

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

  18. 4 x 5 = 20
  19. Explain about string operators in python with suitable example.

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

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

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

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

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

Write your Comment