JavaScript isn't enabled in your browser, so this file can't be opened. Enable and reload.
XII COMPUTER SCIENCE EM TEST 9
9. LISTS, TUPLES, SETS AND DICTIONARY
one mark questions :
Prepared by S. Saminathan, GHSS- MUKHASAPARUR, CUDDALORE DT
https://sites.google.com/view/tn-computer-science/home
Sign in to Google
to save your progress.
Learn more
* Indicates required question
Register No
*
Your answer
Name
*
Your answer
School
*
GHSS MUKHASAPARUR
OTHERS
1. Pick odd one in connection with collection data type
*
1 point
dictionary
tuple
Loop
list
2. Let list1=[2,4,6,8,10], then print(List1[-2]) will result in
*
1 point
10
8
6
4
Other:
3. Which of the following function is used to count the number of elements in a list?
*
1 point
count( )
find( )
len( )
index( )
4. If List=[10,20,30,40,50] then List[2]=35 will result
*
1 point
[35,10,20,30,40,50]
[10,20,30,40,50,35]
[10,20,35,40,50]
[10,35,30,40,50]
5. If List=[17,23,41,10] then List.append(32) will result
*
1 point
[32,17,23,41,10]
[17,23,41,10,32]
[10,17,23,32,41]
[41,32,23,17,10]
6. Which of the following Python function can be used to add more than one element within an existing list?
*
1 point
Append( )
more( )
append_more( )
extend( )
7. What will be the result of the following Python code?
S=[x**2 for x in range(5)]
print(S)
*
1 point
[0,1,2,4,5]
[0,1,4,9,16]
[0,1,4,9,16,25]
[1,4,9,16,25]
8. What is the use of type() function in python?
*
1 point
To create a list.
To know the type of an element in tuple.
To create a Tuple.
To know the data type of python object.
9. Which of the following statement is not correct?
*
1 point
A list is mutable
A tuple is immutable.
The append() function is used to add an element.
The extend() function is used in tuple to add elements in a list.
10. Let setA={3,6,9}, setB={1,3,9}. What will be the result of the following snippet?
print(setA|setB)
*
1 point
{3,6,9,1,3,9}
{3,9}
{1}
{1,3,6,9}
11. Which of the following set operation includes all the elements that are in two sets but not the one that are common to two sets?
*
1 point
Symmetric difference
Difference
Intersection
Union
12. The keys in Python, dictionary is specified by
*
1 point
=
;
+
:
13. list is an ordered collection of values enclosed within ......
*
1 point
[ ]
( )
{ }
\
14. ......is the beginning index value of a list.
*
1 point
0 (Zero)
1 (One)
2 (Two)
-1
15. The ...........is a function used to generate a series of value in Python.
*
1 point
set ()
if ()
range( )
insert()
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google.
Report Abuse
-
Terms of Service
-
Privacy Policy
Forms