New ! Computer Science MCQ Practise Tests



12th Standard Computer Science Lists, Tuples, Sets and Dictionary 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. Let list1=[2,4,6,8,10], then print(List1[-2]) will result in

    (a)

    10

    (b)

    8

    (c)

    4

    (d)

    6

  2. Let setA={3,6,9}, setB={1,3,9}. What will be the result of the following snippet?
    print(setA|setB)

    (a)

    {3,6,9,1,3,9}

    (b)

    {3,9}

    (c)

    {1}

    (d)

    {1,3,6,9}

  3. What is the output from the following?
    li = ['T', 'E', 'C', 'M']
    for i in li:
    print (li [1])

    (a)

    T

    (b)

    E

    (c)

    C

    (d)

    M

  4. Which of the following function used to include an element in a list at a desired position?

    (a)

    append ()

    (b)

    extend ()

    (c)

    insert ()

    (d)

    format ()

  5. Which function is used to convert the result of range () function in to list?

    (a)

    convert ()

    (b)

    range ()

    (c)

    list ()

    (d)

    listrange ()

  6. Using sort (), the default sorting is

    (a)

    ascending

    (b)

    descending

    (c)

    no sorting

    (d)

    criteria sorting

  7. What is the output for the following?
    (a, b) = (34)

    (a)

    a = 34

    (b)

    b = 34

    (c)

    a = 34, b = 34

    (d)

    Error

  8. Write the output for the following
    A = {1, 2, 4, 5}
    B = {1, 6, 7, 5}
    print (A + B)

    (a)

    {1, 2, 4, 5, 6, 7}

    (b)

    [2,4]

    (c)

    {2,4}

    (d)

    (2,4)

  9. In python, _________________ is an integer number which can be positive or negative.

    (a)

    Identifier

    (b)

    Keyword

    (c)

    Operators

    (d)

    Index value

  10. __________ represents an abstraction of the sequence of numbers

    (a)

    Dictionary

    (b)

    List

    (c)

    Set

    (d)

    Tuple

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

Reviews & Comments about 12th Standard Computer Science Lists, Tuples, Sets and Dictionary English Medium Free Online Test One Mark Questions with Answer Key 2020 - 2021

Write your Comment