New ! Computer Science MCQ Practise Tests



12th Standard English Medium Computer Science Subject Lists, Tuples, Sets and Dictionary Book Back 1 Mark Questions with Solution Part - II

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 5

    1 Marks

    5 x 1 = 5
  1. 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.

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

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

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

  5. The keys in Python, dictionary is specified by

    (a)

    =

    (b)

    ;

    (c)

    +

    (d)

    ":"

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

Reviews & Comments about 12th Standard English Medium Computer Science Subject Lists, Tuples, Sets and Dictionary Book Back 1 Mark Questions with Solution Part - II

Write your Comment