New ! Computer Science MCQ Practise Tests



12th Standard English Medium Computer Science Subject Strings and String Manipulations Creative 3 Mark Questions with Solution Part - II

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 15

    3 Marks

    5 x 3 = 15
  1. Write the syntax and example of using string characters.

  2. Write the description for the following escape sequence.
    (i) \r
    (ii) \000
    (iii) \v

  3. Write the output of the following statements.
    strl = 'mammals'
    (i) std. find ('ma')
    (ii) std. find ('ma', 2)
    (iii) std. find ('ma', 2, 4)
    (iv) std. find ('ma', 2, 5)

  4. Write the output for the following statement.
    (i) print ("PYTHON" . lower ())
    (ii) print ("PYTHON" . islower ())
    (iii) print ("PYTHON" . isupper ())
    (iv) print ("PYTHON" . upper ())

  5. Write the out put for the following statement.
    strl = "Raja Raja Chozhan"
    (i) print (strl. count ('Raja'))
    (ii) print (strl. count ('R'))
    (iii) print (strl. count ('A'))
    (iv) print (strl. count ('a'))
    (v) print (strl. count ('a', 0, 5))
    (vi) print (strl. count ('a', 11))

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

Reviews & Comments about 12th Standard English Medium Computer Science Subject Strings and String Manipulations Creative 3 Mark Questions with Solution Part - II

Write your Comment