New ! Computer Science MCQ Practise Tests



Strings and String Manipulations 2 Mark Creative Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 30

    2 Marks

    15 x 2 = 30
  1. How will you manipulate the strings?

  2. What it means "String in phython are immutable"?

  3. Write a python a program to print your name 10 times.

  4. Write the output for the following if strl = "THIRIKKURAL"
    (i) print (strl [0])
    (ii) print (strl [0:5])
    (ill) print (strl [:5])
    (iv) Print (strl [6:])

  5. Write the general format of slice operation.

  6. 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")

  7. Write a program to print the following output
    C
    CO
    COM
    COM
    COMP
    COMPU
    COM PUT
    COMPUTE
    COMPUTER

  8. What is meant by stride?

  9. if strl = "Welcome to learn python", then write the output for the following.
    (i) print (strl [10 : 16])
    (ii) print (strl [10 : 16: 4])
    (iii) print (strl [10: 16: 2])
    (iv) print (strl [: : 3])

  10. Write the output for the following statement
    strl = "Welcome to learn python"
    print (strl [: : - 2])

  11. What is the use of formatting operator?

  12. Match the following.

      Escape sequence   Description
    i) \a (1) Backspace
    ii) \b (2) Horizontal tab
    iii) \n (3) Bell
    iv) \t (4) Line feed
  13. Write a note on the function center ().

  14. What is the use of find () function? Explain with an example.

  15. Write the output for the following statement.
    (i) print ("save earth".title ())
    (ii) print ("Save Earth".swapcase ())

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

Reviews & Comments about 12th Standard Computer Science English Medium - Strings and String Manipulations 2 Mark Creative Question Paper and Answer Key 2022 - 2023

Write your Comment