New ! Computer Science MCQ Practise Tests



12th Standard English Medium Computer Science Subject Strings and String Manipulations Book Back 1 Mark Questions with Solution Part - I

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 is the output of the following python code?
    str1="TamilNadu"
    print(str1[::-1])

    (a)

    Tamilnadu

    (b)

    Tmlau

    (c)

    udanlimaT

    (d)

    udaNlimaT

  2. What will be the output of the following code?
    str1 = "Chennai Schools"
    str1[7] = "-"

    (a)

    Chennai-Schools

    (b)

    Chenna-School

    (c)

    Type error

    (d)

    Chennai

  3. Which of the following operator is used for concatenation?

    (a)

    +

    (b)

    &

    (c)

    *

    (d)

    =

  4. Defining strings within triple quotes allows creating:

    (a)

    Single line Strings

    (b)

    Multiline Strings

    (c)

    Double line Strings

    (d)

    Multiple Strings

  5. Strings in python:

    (a)

    Changeable

    (b)

    Mutable

    (c)

    Immutable

    (d)

    flexible

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

Reviews & Comments about 12th Standard English Medium Computer Science Subject Strings and String Manipulations Book Back 1 Mark Questions with Solution Part - I updated Book back Questions

Write your Comment