CBSE Class 11 Informatics Practices
Question 61 of 102
Python Programming Fundamentals — Question 22
Back to all questions| S. No. | Data Value | Data Type | Reason |
|---|---|---|---|
| (a) | Number of months in a year | int | A year has 12 months which is a whole number |
| (b) | Resident of Delhi or not | bool | It is a true or false value |
| (c) | Mobile number | str | Mobile numbers can contain leading zeros and may include country codes, so they are stored as strings. |
| (d) | Pocket money | float | Money can be a decimal value. |
| (e) | Volume of a sphere | float | Volume of a sphere is calculated using the formula ((4/3) * (22/7) * (r ** 3)) , which often results in a decimal value. |
| (f) | Perimeter of a square | float | The perimeter of a square can be a whole number, using float allows for more flexibility (e.g., in case side length is a decimal). |
| (g) | Name of the student | str | Names are sequences of characters. |
| (h) | Address of the student | str | Addresses are text data, which may include letters, numbers, and special characters. |