New ! Computer Science MCQ Practise Tests



Lists, Tuples, Sets and Dictionary - Two Marks Study Materials

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00: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 a program to print all elements in the list using reverse, indexing.

  8. Write a program to display element in a list ("Physics' ,"Chemistry", "Biology") using loop to get the output
    Physics
    Chemistry
    Biology

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

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

  11. State the working of pop () and clear () function.

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

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

  14. What is output for the following code?
    list = ['T', 'L', 'A', 'S', 'L']
    list.sort (reverse = false)
    print (list)

  15. What is Tuple in python?

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

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

Write your Comment