New ! Computer Science MCQ Practise Tests



12th Standard Computer Science Strings and String Manipulations English Medium Free Online Test One Mark Questions with Answer Key 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. 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

  2. Defining strings within triple quotes allows creating:

    (a)

    Single line Strings

    (b)

    Multiline Strings

    (c)

    Double line Strings

    (d)

    Multiple Strings

  3. Which of the following is the slicing operator?

    (a)

    { }

    (b)

    [ ]

    (c)

    < >

    (d)

    ( )

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

    (a)

    %e

    (b)

    %E

    (c)

    %g

    (d)

    %n

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

  6. The negative subscript is always begins with

    (a)

    0

    (b)

    1

    (c)

    -1

    (d)

    -1.0

  7. The _____ operator is used to display a string in multiple number of time.

    (a)

    *

    (b)

    * *

    (c)

    * =

    (d)

    + +

  8. The _____ function is a powerful function used for formatting strings.

    (a)

    format ()

    (b)

    string ()

    (c)

    Slice ()

    (d)

    format string () 

  9. What is the output from the following statement?
    str1 = "welcome"
    print (str1[:: 3]

    (a)

    come

    (b)

    orne

    (c)

    wce

    (d)

    wel

  10. The function used to search the first occurrence of the substring In the given string is

    (a)

    search ()

    (b)

    find ()

    (c)

    find string ()

    (d)

    searchstring ()

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

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

Write your Comment