arrow
arrow
arrow
Which of the following is not a core data type in Python?
Question



Which of the following is not a core data type in Python?

A.

int

B.

str

C.

class

D.

list

E.

None of the above

Correct option is C

In Python, class is not a core data type. It is a user-defined blueprint for creating objects. Core data types in Python include int, str, list, tuple, dict, and set, which are predefined and directly supported by the language.
Important Key Points:
1. Core data types in Python: These include basic data types like int (integer), str (string), float, list, tuple, set, and dictionary.
2. Class: A class in Python is not a data type but a blueprint for creating objects and is defined using the class keyword.
3. Python supports dynamic typing, allowing developers to define custom classes and objects, but these are not part of the core data type set.
Knowledge Booster:
· int: A core data type used for integers.
· str: A core data type used for strings.
· list: A core data type used for creating mutable, ordered collections.

Free Tests

Free
Must Attempt

RBI Asst Prelims 2026: Quant Advance level Test 01

languageIcon English
  • pdpQsnIcon35 Questions
  • pdpsheetsIcon35 Marks
  • timerIcon20 Mins
languageIcon English
Free
Must Attempt

RBI Asst Prelims 2026: Reasoning Advance level Test 01

languageIcon English
  • pdpQsnIcon35 Questions
  • pdpsheetsIcon35 Marks
  • timerIcon20 Mins
languageIcon English
Free
Must Attempt

RBI Asst Prelims 2026: English Advance level Test 01

languageIcon English
  • pdpQsnIcon30 Questions
  • pdpsheetsIcon30 Marks
  • timerIcon20 Mins
languageIcon English
test-prime-package

Access ‘IBPS RRB SO IT Officer (Scale-II)’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
381k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow