Python MCQ Quiz Hub

Python MCQS - Data type in python

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

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




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




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




4. What is type casting in python ?




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




6. What is list data type in Python ?




7. Which of the following is the list in python ?




8. Empty list in python is made by ?




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




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




11. How we can convert the given list into the set ?




12. In which data type, indexing is not valid ?




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




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




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




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




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




18. x=3.123, then int(x) will give




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




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