Python MCQ Quiz Hub

Python MCQS - Data type in python

Choose a topic to test your knowledge and improve your Python skills

Which of the following is the data type possible in python?





✅ Correct Answer: 4

Which of the following is not the data type in python ?





✅ Correct Answer: 4

If we change one data type to another, then it is called





✅ Correct Answer: 3

What is type casting in python ?





✅ Correct Answer: 3

Which of the following is the example of the type casting ?





✅ Correct Answer: 4

What is list data type in Python ?





✅ Correct Answer: 4

Which of the following is the list in python ?





✅ Correct Answer: 4

Empty list in python is made by ?





✅ Correct Answer: 3

Which of the sequence are valid in the set data type in python ?





✅ Correct Answer: 3

In which of the following data type, duplicate items are not allowed ?





✅ Correct Answer: 2

How we can convert the given list into the set ?





✅ Correct Answer: 3

In which data type, indexing is not valid ?





✅ Correct Answer: 3

l=[1,2,3,4], then l[3] is ?





✅ Correct Answer: 4

l=[1,2,3,4], then l[-2] is ?





✅ Correct Answer: 3

l=[9,3,7,6,1,2,0], then l[100] is





✅ Correct Answer: 4

If we try to access the item outside the list index, then what type of error it may give ?





✅ Correct Answer: 2

Which of the following can convert the string to float number ?





✅ Correct Answer: 4

x=3.123, then int(x) will give





✅ Correct Answer: 4

l=[1,2,3,4,8,1.2], which type of data type is this ?





✅ Correct Answer: 2

which of the following function are used to convert the string into the list ?





✅ Correct Answer: 3