Question 11 markVery Short AnswerSection A

State True or False :

In Python, data type of 74 is same as the data type of 74.0.

Review of Python Basics (Class XI Recap)
Data Types in Python

Official answer

False. 74 is an integer (int) while 74.0 is a floating-point number (float) — they are different data types in Python even though they represent the same numeric value.

Answer keywords:data typeintfloattype() functionnumeric literalvalue vs typePython fundamentals

Marking scheme

  1. 1.1 mark: for correctly stating 'False' (accept with or without justification, as full marks are for the correct answer).

Hint

Check with type() — same value can still belong to different data types.

Quick oral answer

False — 74 is of type int and 74.0 is of type float; use type() to verify: type(74) gives int, type(74.0) gives float.

Common mistakes

  1. 1.Assuming that because 74 == 74.0 is True, both must have the same data type.
  2. 2.Confusing value equality with type equality.

Analysis and explanation

Python distinguishes between numbers based on how they are written, not just their numeric value.


Concept

  • A number written without a decimal point, like 74, is stored as an int.
  • A number written with a decimal point, like 74.0, is stored as a float, even though 74 == 74.0 evaluates to True in terms of value.
  • type(74) returns <class 'int'> while type(74.0) returns <class 'float'>.

Why the statement is False

  • Value-equality (==) and type-identity (type()) are different checks in Python.
  • The two literals are numerically equal but structurally stored differently (int vs. float representation).

Exam trap

  • Students often confuse 'equal value' with 'same data type' — CBSE frequently tests this exact distinction.

Real-world relevance

  • This distinction matters in database schemas and file I/O, where storing a value as int vs. float affects storage size and precision (e.g., financial calculations).

Interesting facts

Python's int type has unlimited precision (limited only by memory), unlike C/C++ int which is fixed-width.

In Python, True and False are actually subtypes of int (bool is a subclass of int), so True == 1 is also True — but type(True) is not the same as type(1).

Question details

Q1 of 48 questions

Board
CBSE
Class
Class 12
Subject
Computer Science
Year
2026
Section
Section A
Marks
1
Type
Very Short Answer
Chapter
Review of Python Basics (Class XI Recap)
Topic
Data Types in Python
Bloom's level
understand
Syllabus topic
Unit 1: Computational Thinking and Programming – 2 — Python Fundamentals: Data Types (int, float)
Author
CBSE
Reviewed by
Padhantu Academic Team

Spotted a mistake or something unclear?

Tell us and we will fix it.

Frequently asked questions

Does 74 == 74.0 return True in Python?

Yes, `74 == 74.0` returns True because Python compares values, not types, with the == operator. However, `type(74) == type(74.0)` returns False since one is int and the other is float.

How can I check the data type of a value in Python?

Use the built-in `type()` function, e.g., `type(74)` returns `<class 'int'>` and `type(74.0)` returns `<class 'float'>`.