New ! Computer Science MCQ Practise Tests



Strings and String Manipulations One Mark Questions

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:30:00 Hrs
Total Marks : 15
    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 is the slicing operator?

    (a)

    { }

    (b)

    [ ]

    (c)

    < >

    (d)

    ( )

  4. Which of the following allows creation of multiline strings

    (a)

    ' '

    (b)

    " "

    (c)

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

    (d)

    none of these

    (e)

    None of these

  5. 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

  6. String index values are also called as

    (a)

    class

    (b)

    function

    (c)

    subscript

    (d)

    arguments

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

  8. The positive subscript always starts with

    (a)

    0

    (b)

    1

    (c)

    -1

    (d)

    0.1

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

    (a)

    +, -

    (b)

    *, /

    (c)

    + *

    (d)

    ; "

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

    (a)

    String

    (b)

    Function

    (c)

    Parameters

    (d)

    Scope fo aviable

  11. 5 x 1 = 5
  12. %i

  13. (1)

    Form feed

  14. %X

  15. (2)

    hexadecimal integer

  16. %E

  17. (3)

    signed decimal integer

  18. \a

  19. (4)

    Bell

  20. \f

  21. (5)

    exponential notation

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

Reviews & Comments about 12th Standard Computer Science Unit 8 Strings and String Manipulations One Mark Question and Answer

Write your Comment