Python Data Types Questions and Answers

Take Exam

Python Programming - Data Types Questions with Answers explain how Python stores and handles different types of data. These Python Data Types Questions are important for TCS, RRB, and SSC exams to strengthen programming fundamentals

Python Data Types

Showing 10 of 24 questions

21. Which method removes and returns the last item from a list?

  • remove()
  • pop()
  • delete()
  • cut()
Show Answer Report

22. What is the data type of True and False?

  • str
  • int
  • bool
  • bit
Show Answer Report

23. Which creates a dictionary with keys 'a' and 'b'?

  • dict(a=1, b=2)
  • {'a': 1, 'b': 2}
  • dict([('a', 1), ('b', 2)])
  • All of the above
Show Answer Report

24. What does the len() function return for "python"?

  • 5
  • 6
  • 7
  • Error
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test