This Quiz is based on the Python List, where you have to answer 15 questions and each question is compulsory. This Quiz does not show score, it is only for Testing your Knowledge. This quiz is Basic level Quiz having easy Questions on Python List.
1. Elements of a List are Enclosed in
2. Empty Lists are shown by
3. Find the Output -:
[ 1,2,3,4 ] < [ 4, 5, 6 ]
4. Find the Output -:
Object = " Lock "
list ( Object )
list ( Object )
5. Find the Output -:
list = [ 'c','o' ,'m', 'p', 'u', 't', 'e', 'r' ]
print ( list )
print ( list )
6. append Function is used to
7. In Python list is
8. What is the Output of the Following
list = [ 12 , 14 , 15 , 17 , 13 , 29 ]
print ( list . index ( 15 ) )
9. Find the Output
x = " Python "
print ( x . index ( ' t ' ))
10. Which method is used to delete a element from a list, if index is known.
11. Statement to Print ( c ) from the list
list = [ 10 , 20 , 30 , [ "a" , " b" , "c" ] , 40 , 50 ]
12. Find the Output
list = [ 10,20,30,40,50,60,70]
x=int(len(list)/2)
for i in range (x) :
list[i] , list [x+i] = list [x+i] ,list[i]
print(list)
13. Find the Output-:
str = 'book'
print ( list ( str ))
14. You can compare two lists using _____ Operators.
15. len() function is used to
For any Query Comment Below
1 Comments
nice quiz
ReplyDelete