1. Home
  2. Data Science
  3. Python
  4. Which function returns the data type of an object in Python?

Added 25 Nov 2026

Which function returns the data type of an object in Python?

  1. typeof()
  2. datatype()
  3. type() Correct answer
  4. class()

Correct answer

C. type()

5 views

MCQSEXAM

Explanation

type(obj) returns the class of the object.

Reference

Asked in: Python Interview Basics

https://docs.python.org/3/tutorial/introduction.html

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs