Machine-translated by Google. Questions are authored in English.
Top

Discussion

When data to be input is numeric in nature, data type in program is classified as

  • A.string
  • B.real integers
  • C.rational string
  • D.irrational string

Answer: A

Correct answer: real integers

Numeric input must be held in a numeric type, so that arithmetic can be done with it. A string type would store the digits as characters, and adding two such values would join them rather than sum them - which is exactly the mistake this question is guarding against.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.