New ! Computer Science MCQ Practise Tests



Lists, Tuples, Sets and Dictionary Model Question Paper 1

12th Standard

    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. 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()

  3. The keys in Python, dictionary is specified by

    (a)

    =

    (b)

    ;

    (c)

    +

    (d)

    ":"

  4. In list, the negative index number begin with

    (a)

    0

    (b)

    1

    (c)

    -1

    (d)

    0.1

  5. Which of the following operator can be used to alter the range of elements in the list?

    (a)

    = =

    (b)

    ::

    (c)

    =

  6. 5 x 2 = 10
  7. Write the syntax of creating a Tuple with n number of elements.

  8. What is set in Python?

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

  10. What is nested list? Give example.

  11. Differentiate append () and extend () function.

  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 change the list elements in Python? Give an example.

  16. What is the output for the following code?

  17. Explain the concept of list comprehension with an example programs.

  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 you access elements of a list using for loop? Explain with an example.

  22. Explain with an example how will you return multiple values in tuples.

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

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

Write your Comment