New ! Computer Science MCQ Practise Tests



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

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 5

    1 Marks

    5 x 1 = 5
  1. Which of the following allows creation of multiline strings

    (a)

    ' '

    (b)

    " "

    (c)

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

    (d)

    none of these

    (e)

    None of these

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

    (a)

    Function

    (b)

    Arguments value

    (c)

    Index value

    (d)

    Parameter

  3. _____ is a substring of a mainstring.

    (a)

    stride

    (b)

    slice

    (c)

    concat

    (d)

    append

  4. The formatting operator ____ is used to replacing parts of strings with the data stored in variables.

    (a)

    #

    (b)

    %

    (c)

    ::

  5. What is the output from the following statement?
    str1= "python"
    print (str1[: : - 2])

    (a)

    nhy

    (b)

    Pyt

    (c)

    hy

    (d)

    on

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

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

Write your Comment