Empty list in python is made by ?
1.l=[]
2.l=list()
3.Both of the above
4.None of the above
How we can convert the given list into the set ?
1.list.set()
2.set.list()
3.set(list)
4.None of the above
If we change one data type to another, then it is called
1.Type conversion
2.Type casting
3.Both of the above
4.None of the above
If we try to access the item outside the list index, then what type of error it may give ?
1.List is not defined
2.List index out of range
3.List index out of bound
4.No error
In which data type, indexing is not valid ?
1.list
2.string
3.dictionary
4.None of the above
In which of the following data type, duplicate items are not allowed ?
1.list
2.set
3.dictionary
4.None of the above
l=[1,2,3,4,8,1.2], which type of data type is this ?
1.set
2.list
3.tuple
4.integer
l=[1,2,3,4], then l[3] is ?
1.1
2.2
3.3
4.4
l=[1,2,3,4], then l[-2] is ?
1.1
2.2
3.3
4.4
l=[9,3,7,6,1,2,0], then l[100] is
1.2
2.9
3.6
4.Error
What is list data type in Python ?
1.collection of integer number
2.collection of string
3.collection of same data type
4.collection of different data type
What is type casting in python ?
1.declaration of data type
2.destroy data type
3.Change data type property
4.None of the above
Which of the following can convert the string to float number ?
1.str(float,x)
2.float(str,int)
3.int(float(str))
4.float(str)
which of the following function are used to convert the string into the list ?
1.map()
2.convertor()
3.split()
4.lambda
Which of the following is not the data type in python ?
1.List
2.Tuple
3.Set
4.Class
Which of the following is the data type possible in python?
1.int
2.list
3.dictionary
4.All of the above
Which of the following is the example of the type casting ?
1.int(2)
2.str(2)
3.str(list)
4.All of the above
Which of the following is the list in python ?
1.l=[]
2.l=list()
3.l=[1,2,3]
4.All
Which of the sequence are valid in the set data type in python ?
1.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
x=3.123, then int(x) will give
1.3.1
2.0
3.1
4.3