New ! Computer Science MCQ Practise Tests



12th Standard Computer Science Lists, Tuples, Sets and Dictionary 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. Pick odd one in connection with collection data type

    (a)

    List

    (b)

    Tuple

    (c)

    Dictionary

    (d)

    Loop

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

    (a)

    count()

    (b)

    find()

    (c)

    len()

    (d)

    index()

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

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

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

  6. Which of the following is an ordered collection of values?

    (a)

    Set

    (b)

    Tuples

    (c)

    List

    (d)

    Dictionary

  7. Which of the following can be used to access an element in a list?

    (a)

    Subscript

    (b)

    Function

    (c)

    Integer

    (d)

    Identifier

  8. How many ways to delete and element from a list?

    (a)

    2

    (b)

    3

    (c)

    4

    (d)

    None of these

  9. Write the output for the following.
    Tu = {1, 2, 4, 4, 5, 6}
    print (Tu (4))

    (a)

    4,5,6

    (b)

    6

    (c)

    5,6

    (d)

    4,4,5,6

  10. Which of the following can be used to access a particular element in a dictionary?

    (a)

    { }

    (b)

    [ ]

    (c)

    ( )

    (d)

    < >

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

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

Write your Comment