New ! Computer Science MCQ Practise Tests



12th Standard Computer Science Strings and String Manipulations English Medium Free Online Test One Mark Questions 2020 - 2021

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

    Answer all the questions

    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. Which of the following operator is used for concatenation?

    (a)

    +

    (b)

    &

    (c)

    *

    (d)

    =

  3. Strings in python:

    (a)

    Changeable

    (b)

    Mutable

    (c)

    Immutable

    (d)

    flexible

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

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

    (a)

    { }

    (b)

    < >

    (c)

    ++

    (d)

    ^^

  6. Which of the following is used to handle array of characters in python?

    (a)

    Functions

    (b)

    Composition

    (c)

    String

    (d)

    Arguments

  7. A substring can be taken from the original string by using

    (a)

    {}

    (b)

    ()

    (c)

    []

    (d)

    <>

  8. The function returns the length of the string in python is

    (a)

    length ()

    (b)

    leng ()

    (c)

    len ()

    (d)

    strlrn ()

  9. What is the output for the following?
    'mammals'. find ('ma', 2, 4)

    (a)

    0

    (b)

    1

    (c)

    -1

    (d)

    3

  10. Which function returns the number of substrings occurs within the given range?

    (a)

    return ()

    (b)

    count ()

    (c)

    substring ()

    (d)

    range ()

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

Reviews & Comments about 12th Standard Computer Science Strings and String Manipulations English Medium Free Online Test One Mark Questions 2020 - 2021

Write your Comment