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

Discussion

In line '400 IF NAMEINR ="***" THEN Average= Total Mark/N' of BASIC program, AVERAGE is considered as

  • A.real numbers
  • B.negative integers
  • C.rational variables
  • D.irrational numbers

Answer: A

Correct answer: real numbers

Average = Total Mark / N is a division, and a division of one integer by another rarely comes out whole, so the variable must be able to hold a fractional value. That is what a real type is for.

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

Post your comment

Please log in or register to post a comment.