New ! Computer Science MCQ Practise Tests



Lists, Tuples, Sets and Dictionary 3 Mark Creative Question Paper With Answer Key

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:30:00 Hrs
Total Marks : 45

     3 Marks

    15 x 3 = 45
  1. Write a program that creates a list of numbers from 1 to 20 that are divisible by 4.

  2. Write a program to swap two values using tuple assignment.

  3. How will you create a set using list or tuple? Give an example.

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

  5. Fill up the following program to get the output TECM.
    list = ['T', 'E', 'C', 'M']
    i=0
    (i) while _________:
    (ii) ________ (MySubject[i], ________)
    (iii) ____ i = i + 

  6. How will you change the list elements in Python? Give an example.

  7. What is the output for the following code?

  8. What is the output of the following code?
    (i) list = [34, 45, 48]
    print (list.append (80))
    (ii) list = [34, 45, 48]
    print (list.extend (80, 90))
    (iii) list = [34, 98, 47, 55]
    list.insert (3, 90)
    print (list)

  9. Read the following program and write the output according to the print statement mentioned
    list = ['T', 'H', 'N', 'M']
    del list [1]
    (i) print (list)
    del list [1:3]
    (ii) print (list)
    del list
    (iii) print (list)

  10. Write the syntax of remove (), pop and clear ().

  11. Read the following and write the output given by the print function mentione(d)
    list = [12, 89, 34, 79, 80]
    (I) print (list. remove (34))
    (Ii) print (list. pop (1))
    (iii) print (list. clear ())

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

  13. Write the output for the following.
    list = [36, 12, 12]
    (I) print (list. count (12))
    (ii) print (list. index (12))
    (iii) print (list. reverse ())

  14. Write a program to define a list of countries that are a member of BRICS. Check whether a county is member of BRICS or not.

  15. Differentiate list and tuple.

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

Reviews & Comments about 12th StandardComputer Science English Medium - Lists, Tuples, Sets and Dictionary 3 Mark Creative Question Paper and Answer Key 2022 - 2023

Write your Comment