New ! Computer Science MCQ Practise Tests



Strings and String Manipulations 1 Mark Book Back Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:10:00 Hrs
Total Marks : 10

    Multiple Choice Question 

    10 x 1 = 10
  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

  6. Which of the following is the slicing operator?

    (a)

    { }

    (b)

    [ ]

    (c)

    < >

    (d)

    ( )

  7. What is stride?

    (a)

    index value of slide operation

    (b)

    first argument of slice operation

    (c)

    second argument of slice operation

    (d)

    third argument of slice operation

  8. Which of the following formatting character is used to print exponential notation in upper case?

    (a)

    %e

    (b)

    %E

    (c)

    %g

    (d)

    %n

  9. Which of the following is used as placeholders or replacement fields which get replaced along with format( ) function?

    (a)

    { }

    (b)

    < >

    (c)

    ++

    (d)

    ^^

  10. The subscript of a string may be:

    (a)

    Positive

    (b)

    Negative

    (c)

    Both (a) and (b)

    (d)

    Either (a) or (b)

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

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

Write your Comment