Lists, Tuples, Sets and Dictionary Model Questions

12th Standard EM

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

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

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

  3. The keys in Python, dictionary is specified by

    (a)

    "="

    (b)

    ";"

    (c)

    "+"

    (d)

    ":"

  4. Which of the following is not datatype in Python?

    (a)

    List

    (b)

    Tuples

    (c)

    String

    (d)

    Set

  5. If python sets - 1 as the index value for the last element is called

    (a)

    Oppositive indexing

    (b)

    Tuple indexing

    (c)

    Reverse index

    (d)

    List indexing

  6. 5 x 2 = 10
  7. How will you access the list elements in reverse order?

  8. What is set in Python?

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

  10. Write the syntax of creating list. Give example.

  11. What is nested list? Give example.

  12. 5 x 3 = 15
  13. List out the set operations supported by python.

  14. What are the difference between List and Dictionary?

  15. How will you find the length of a list? Explain with an example.

  16. What is the output for the following code?

  17. Write a note on the following function used in list.

  18. 4 x 5 = 20
  19. What the different ways to insert an element in a list. Explain with suitable example.

  20. Explain the different set operations supported by python with suitable example.

  21. How will access all elements of a list? Explain with an example

  22. Write a python program to read marks of six subjects and to print the marks scored in each subject and show the total marks.

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

TN 12th Standard EM Computer Science free Online practice tests

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

Write your Comment