New ! Computer Science MCQ Practise Tests



Lists, Tuples, Sets and Dictionary Two Marks Questions

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 00:45:00 Hrs
Total Marks : 30
    15 x 2 = 30
  1. What is List in Python?

  2. How will you access the list elements in reverse order?

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

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

  5. Write the syntax of creating a Tuple with n number of elements.

  6. What is set in Python?

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

  8. What is nested list? Give example.

  9. How will you insert elements in a list? Write the syntax.

  10. Write the syntax of append () and extend () function.

  11. Write the syntax of deleting elements from the list.

  12. How will you delete the elements from the list if the index value is not known?

  13. Write a python program to print the following output [36,49,64,81,100]

  14. Write a python program to generate the squares of even numbers between 1 and 10 using the concept of list comprehensions.

  15. What is the use of tuple () function? Give example.

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

Reviews & Comments about 12th Computer Science - Lists, Tuples, Sets and Dictionary Two Marks Questions

Write your Comment