New ! Computer Science MCQ Practise Tests



Strings and String Manipulations - Two Marks Study Materials

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00: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. What it means "String in phython are immutable"?

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

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

  12. What is meant by stride?

  13. Differentiate lower () and is lower ().

  14. Differentiate upper () and is upper ().

  15. What is the use of title () function? Give example.

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

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

Write your Comment