New ! Computer Science MCQ Practise Tests



12th Standard Computer Science English Medium Lists, Tuples, Sets and Dictionaries Reduced Syllabus Important Questions With Answer Key 2021

12th Standard

    Reg.No. :
  •  
  •  
  •  
  •  
  •  
  •  

Computer Science

Time : 01:00:00 Hrs
Total Marks : 100

      Multiple Choice Questions


    15 x 1 = 15
  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. Which of the following is not datatype in Python?

    (a)

    List

    (b)

    Tuples

    (c)

    String

    (d)

    Set

  4. Which of the following is an ordered collection of values?

    (a)

    Set

    (b)

    Tuples

    (c)

    List

    (d)

    Dictionary

  5. Which of the following datatype enclosed with [ ]?

    (a)

    Tuples

    (b)

    List

    (c)

    Dictionary

    (d)

    Set

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

  7. Which function is used to set the upper limit in a loop to read all elements of a list?

    (a)

    upper ()

    (b)

    limit

    (c)

    len ()

    (d)

    loop ()

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

    (a)

    = =

    (b)

    ::

    (c)

    =

  9. Which of the following function used to include an element in a list at a desired position?

    (a)

    append ()

    (b)

    extend ()

    (c)

    insert ()

    (d)

    format ()

  10. How many ways to delete and element from a list?

    (a)

    2

    (b)

    3

    (c)

    4

    (d)

    None of these

  11. Which of the following function is used to delete only are element from a list?

    (a)

    pop ()

    (b)

    del

    (c)

    delete ()

    (d)

    clear ()

  12. Which function is used to convert the result of range () function in to list?

    (a)

    convert ()

    (b)

    range ()

    (c)

    list ()

    (d)

    listrange ()

  13. Which of the following can be defined with or without()?

    (a)

    list

    (b)

    set

    (c)

    dictionary

    (d)

    none of these

  14. Tuples are enclosed with ________________

    (a)

    [ ]

    (b)

    { }

    (c)

    ( )

    (d)

    < >

  15. In Python, a ____________ is a mixed collection of elements but it stores a key along with its element?

    (a)

    Dictionary

    (b)

    Set

    (c)

    Tuple

    (d)

    List

    1. 2 Marks


    10 x 2 = 20
  16. What is List in Python?

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

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

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

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

  21. Write the syntax of using for keyword to access all elements in the list. Pg 136 x 9.

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

  23. Write the output
    tup = (10)
    type (tup)
    tup1 = (10,)
    type (tup)

  24. Give an example of joining two tuples.

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

    1. 3 Marks


    10 x 3 = 30
  26. What are the difference between list and Tuples?

  27. Explain the difference between del and clear( ) in dictionary with an example.

  28. What are the difference between List and Dictionary?

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

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

  31. Differentiate list and tuple.

  32. Explain with an example how will you create a tuple with a single element.

  33. Write a note on Tuple assignment.

  34. How will delete an entire tuple? Give an example.

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

    1. 5 Marks


    7 x 5 = 35
  36. What the different ways to insert an element in a list. Explain with suitable example.

  37. What is nested tuple? Explain with an example.

  38. Explain the detail about some important list function with an example.
    (i) copy ()
    (ii) count ()
    (iii) index ()
    (iv) reverse ()

  39. Write a program to create a list of numbers in the range 1 to 10. Then delete all the even numbers from the list and print the final list.

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

  41. Write a program that has a list of positive and negative numbers. Create a new tuple that has only positive numbers from the list.

  42. Write a program that has a list of positive and negative numbers. Create a new tuple that has only negative numbers from the list.

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

Reviews & Comments about 12th Standard Computer Science English Medium Lists, Tuples, Sets and Dictionaries Reduced Syllabus Important Questions With Answer Key 2021

Write your Comment