New ! Computer Science MCQ Practise Tests



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

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

     Multiple Choice Question

    15 x 1 = 15
  1. Which of the following is used to handle array of characters in python?

    (a)

    Functions

    (b)

    Composition

    (c)

    String

    (d)

    Arguments

  2. String are enclosed with

    (a)

    "

    (b)

    " "

    (c)

    '''''' ''''''

    (d)

    ''' '''

    (e)

    all of these

  3. Which of the following allows creation of multiline strings

    (a)

    ' '

    (b)

    " "

    (c)

    '''''' ''''''

    (d)

    none of these

    (e)

    None of these

  4. Find the output for the following print ('Greater Chennai cooperation's student')

    (a)

    Greater Chennai Corporation's student

    (b)

    Greater Chennai Corporation

    (c)

    S Student

    (d)

    Error: Invalid Syntax

  5. String index values are also called as

    (a)

    class

    (b)

    function

    (c)

    subscript

    (d)

    arguments

  6. Which of the following is used to access and manipulate the strings

    (a)

    Index value

    (b)

    Subscript

    (c)

    Argument

    (d)

    Parameters

    (e)

    a or b

  7. The positive subscript always starts with

    (a)

    0

    (b)

    1

    (c)

    -1

    (d)

    0.1

  8. The negative subscript is always begins with

    (a)

    0

    (b)

    1

    (c)

    -1

    (d)

    -1.0

  9. What is the output for the following
    >>>s1 = "how"
    >>>s1[0] = 'A'

    (a)

    How

    (b)

    A

    (c)

    Aow

    (d)

    Error

  10. Which of the following operators are useful to do string manipulation?

    (a)

    +, -

    (b)

    *, /

    (c)

    + *

    (d)

    ; "

  11. _____ is a combination of letters, numbers or special symbols enclosed with. If, " "or '" '"

    (a)

    String

    (b)

    Function

    (c)

    Parameters

    (d)

    Scope fo aviable

  12. In python _____ are immutable.

    (a)

    Characters

    (b)

    Strings

    (c)

    Numbers

    (d)

    Functions

  13. When a string is define(d) Python allocate an ______ for its each character.

    (a)

    Function

    (b)

    Arguments value

    (c)

    Index value

    (d)

    Parameter

  14. The subscript can be _____ integer numbers.

    (a)

    Positive

    (b)

    Negative

    (c)

    Floating

    (d)

    Positive or negative

  15. Python provides a function _____ to change all occurrences of a particular character in a string.

    (a)

    replace()

    (b)

    change ()

    (c)

    change all ()

    (d)

    repalceall ()

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

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

Write your Comment