l=[1,2,3,4], then l[-2] is ?
1.1
2.2
3.3
4.4
Answer:3
Posted Date:-2019-06-04 11:47:55
1.l=[]
2.l=list()
3.Both of the above
4.None of the above
Answer 31.list.set()
2.set.list()
3.set(list)
4.None of the above
Answer 31.Type conversion
2.Type casting
3.Both of the above
4.None of the above
Answer 31.List is not defined
2.List index out of range
3.List index out of bound
4.No error
Answer 21.list
2.string
3.dictionary
4.None of the above
Answer 31.list
2.set
3.dictionary
4.None of the above
Answer 21.set
2.list
3.tuple
4.integer
Answer 21.1
2.2
3.3
4.4
Answer 41.1
2.2
3.3
4.4
Answer 31.2
2.9
3.6
4.Error
Answer 41.collection of integer number
2.collection of string
3.collection of same data type
4.collection of different data type
Answer 41.declaration of data type
2.destroy data type
3.Change data type property
4.None of the above
Answer 31.str(float,x)
2.float(str,int)
3.int(float(str))
4.float(str)
Answer 41.map()
2.convertor()
3.split()
4.lambda
Answer 31.List
2.Tuple
3.Set
4.Class
Answer 41.int
2.list
3.dictionary
4.All of the above
Answer 41.int(2)
2.str(2)
3.str(list)
4.All of the above
Answer 41.l=[]
2.l=list()
3.l=[1,2,3]
4.All
Answer 41.1,1,1,1,1,1
2.2,3,4,5,6,1,2
3.1,2,3,4,5,6
4.None of the above
Answer 31.3.1
2.0
3.1
4.3
Answer 4