New ! Computer Science MCQ Practise Tests



Lists, Tuples, Sets and Dictionary 1 Mark Book Back Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:12:00 Hrs
Total Marks : 12

    Multiple Choice Question 

    12 x 1 = 12
  1. Pick odd one in connection with collection data type

    (a)

    List

    (b)

    Tuple

    (c)

    Dictionary

    (d)

    Loop

  2. Let list1=[2,4,6,8,10], then print(List1[-2]) will result in

    (a)

    10

    (b)

    8

    (c)

    4

    (d)

    6

  3. Which of the following function is used to count the number of elements in a list?

    (a)

    count()

    (b)

    find()

    (c)

    len()

    (d)

    index()

  4. If List=[10,20,30,40,50] then List[2]=35 will result

    (a)

    [35,10,20,30,40,50]

    (b)

    [10,20,30,40,50,35]

    (c)

    [10,20,35,40,50]

    (d)

    [10,35,30,40,50]

  5. If List=[17,23,41,10] then List.append(32) will result

    (a)

    [32,17,23,41,10]

    (b)

    [17,23,41,10,32]

    (c)

    [10,17,23,32,41]

    (d)

    [41,32,23,17,10]

  6. Which of the following Python function can be used to add more than one element within an existing list?

    (a)

    append()

    (b)

    append_more()

    (c)

    extend()

    (d)

    more()

  7. What will be the result of the following Python code?
    S=[x**2 for x in range(5)]
    print(S)

    (a)

    [0,1,2,4,5]

    (b)

    [0,1,4,9,16]

    (c)

    [0,1,4,9,16,25]

    (d)

    [1,4,9,16,25]

  8. What is the use of type() function in python?

    (a)

    To create a Tuple

    (b)

    To know the type of an element in tuple.

    (c)

    To know the data type of python object

    (d)

    To create a list.

  9. Which of the following statement is not correct?

    (a)

    A list is mutable

    (b)

    A tuple is immutable.

    (c)

    The append() function is used to add an element.

    (d)

    The extend() function is used in tuple to add elements in a list.

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

  11. Which of the following set operation includes all the elements that are in two sets but not the one that are common to two sets?

    (a)

    Symmetric difference

    (b)

    Difference

    (c)

    Intersection

    (d)

    Union

  12. The keys in Python, dictionary is specified by

    (a)

    =

    (b)

    ;

    (c)

    +

    (d)

    ":"

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

Reviews & Comments about 12th Standard Computer Science English Medium - Lists, Tuples, Sets and Dictionary 1 Mark Book Back Question Paper and Answer Key 2022 - 2023

Write your Comment