New ! Computer Science MCQ Practise Tests



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

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 45

    3 Marks 

    15 x 3 = 45
  1. How the positive and negative subscript values are assigned? Give example.

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

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

  4. Write the usage of the following format string characters.
    (i) % c
    (ii) % d (or) % i
    (iii) % s

  5. Fill in the blanks.

      Format character Usage
    i) ________ Unsigned decimal integer
    ii) %0 _______
    iii) _______ Hexadecimal integer
    iv) %i _______
  6. Write the formats string characters for the following
    (i) Exponential notation
    (ii) Floating point numbers
    (iii) Short numbers in exponential notation

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

  8. Write the output of the following statements.
    (i) print (len ("Corporation"))
    (ii) print ("school", Capitalize ())
    (iii) print ("Welcome" center (15, '*'))

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

  10. Write the output of the following statements.
    (i) 'Python 2.3' . isalpha ()
    (ii) 'Python Program' . is alnum ()
    (iii) 'Python' . isupper ()

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

  12. Write a note on
    (i) isalnum ()
    (ii) isalpha ()
    (iii) isdigit ()

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

  14. With an example program explain about membership operators?

  15. What is string? How will you create a string?

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

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

Write your Comment