New ! Computer Science MCQ Practise Tests



Strings and String Manipulations Two Marks Question

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:45:00 Hrs
Total Marks : 30
    15 x 2 = 30
  1. What is String?

  2. Do you modify a string in Python?

  3. How will you delete a string in Python?

  4. What will be the output of the following python code?
    str1 = “School”
    print(str1*3)

  5. What is slicing?

  6. How will you manipulate the strings?

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

  8. 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:])

  9. Write the general format of slice operation.

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

  11. What is meant by stride?

  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. What is the use of find () function? Explain with an example.

  14. Differentiate lower () and is lower ().

  15. Differentiate upper () and is upper ().

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

Reviews & Comments about 12th Computer Science - Strings and String Manipulations Two Marks Question

Write your Comment