NIELIT O Level Exam

Which of these in not a core data type in python?

Which of these in not a core data type in python?

इनमें से कौन एक कोर डेटा प्रकार नहीं है?

A. Lists लिस्ट्स

B. Dictionary ड़िक्शनरी

C. Tuples टपल्स

D. Class क्लास




Correct Answer is :

D. Class



Explanation
In Python, core data types refer to the fundamental building blocks used to store and manipulate data. These core data types include:

Numeric Types:

  • int: Integer values, e.g., 5, -10, 1000.
  • float: Floating-point values, e.g., 3.14, -0.01, 2.0.

Sequence Types:

  • str: Strings, used to represent text, e.g., "hello", 'python'.
  • list: Ordered collections of items, e.g., [1, 2, 3], ['apple', 'banana', 'orange'].
  • tuple: Immutable ordered collections of items, e.g., (1, 2, 3), ('apple', 'banana', 'orange').
Mapping Type:

  • dict: Key-value pairs, e.g., {'name': 'John', 'age': 30}, {'apple': 2.0, 'banana': 1.5}.
Set Types:

  • set: Unordered collections of unique items, e.g., {1, 2, 3}, {'apple', 'banana', 'orange'}.
  • frozenset: Immutable version of set, e.g., frozenset({1, 2, 3}).
Boolean Type:

  • bool: Boolean values, True or False.
None Type:

  • None: Represents the absence of a value or a null value.
Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad