menu search
brightness_auto
more_vert
3 1

Which data type will be used to represent the following data values and why?

  • a) Number of months in a year
  • b) Resident of Delhi or not
  • c) Mobile number
  • d) Pocket money
  • e) Volume of a sphere
  • f) Perimeter of a square
  • g) Name of the student
  • h) Address of the student

 

Topic Python Programming
Type One Word
Class 11
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike

1 Answer

more_vert
0
  1. int as it can’t be string or float
  2. boolean as it is a condition like ‘either or’
  3. int as it can’t be float or string
  4. float as it can be a decimal value i.e. 10.50
  5. float as volume of sphere = 4/3( * r3), value of = 3.14 and r value can be decimal i.e. 4.5 unit
  6. float as perimeter = 4 * length of side, the length of side can be a decimal value
  7. string as the name is a combination of characters
  8. string as an address is the concatenated form of different strings.

    Study more about Python at Python Class 10

thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike

Related questions

thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 3 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 2 like thumb_down_off_alt 0 dislike
1 answer
Welcome to Aiforkids, where you can ask questions and receive answers from other members of the community.

AI 2024 Class 10 Board Exams mein 100% laane ka plan OPEN NOW

Class 10 Complete One Shot AI Lectures at - Youtube

1.5k questions

1.4k answers

4 comments

7.2k users

...