New ! Computer Science MCQ Practise Tests



Lists, Tuples, Sets and Dictionary Model Question Paper

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:30:00 Hrs
Total Marks : 50
    7 x 1 = 7
  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. 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]

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

  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. The keys in Python, dictionary is specified by

    (a)

    =

    (b)

    ;

    (c)

    +

    (d)

    ":"

  7. In li = [10,23,41,75], the negative index value of 41 is

    (a)

    2

    (b)

    -1

    (c)

    -2

    (d)

    -3

  8. 4 x 1 = 4
  9. ^

  10. (1)

    Symmetric difference

  11. |

  12. (2)

    Union

  13. &

  14. (3)

    Intersection

  15. -

  16. (4)

    Difference

    7 x 2 = 14
  17. What is List in Python?

  18. What will be the value of x in following python code?
    List 1 = [2, 4, 6[1, 3, 5]]
    x = len (List 1)

  19. Differentiate del with remove( ) function of List.

  20. What is set in Python?

  21. Name the four collections of data types in python programming language.

  22. What is nested list? Give example.

  23. Write a program to print all elements in the list using reverse, indexing.

  24. 5 x 3 = 15
  25. What are the advantages of Tuples over a list?

  26. Write a shot note about sort( ).

  27. What will be the output of the following code?
    list = [2**x for x in range(5)]
    print (list)

  28. List out the set operations supported by python.

  29. What are the difference between List and Dictionary?

  30. 2 x 5 = 10
  31. What the different ways to insert an element in a list. Explain with suitable example.

  32. What is nested tuple? Explain with an example.

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

Reviews & Comments about 12th Computer Science - Lists, Tuples, Sets and Dictionary Model Question Paper

Write your Comment