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.

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
192k+ students have already unlocked exclusive benefits with Test Prime!

Free Tests

Free
Must Attempt

Current Affairs (Jul 16, 2025 - Jul 23, 2025)

languageIcon English
  • pdpQsnIcon40 Questions
  • pdpsheetsIcon40 Marks
  • timerIcon20 Mins
languageIcon English
Free
Must Attempt

General Awareness Section Test 01

languageIcon English
  • pdpQsnIcon20 Questions
  • pdpsheetsIcon20 Marks
  • timerIcon8 Mins
languageIcon English
Free
Must Attempt

IB ACIO Grade-II Executive (Held on 17 Jan 2024 S1)

languageIcon English
  • pdpQsnIcon100 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon60 Mins
languageIcon English