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

Discussion

In line 100 INPUT NUM: PRINT 3.1*NUM*NUM+5" of a BASIC program, ' PRINT 3.1 and 5' are classified as

  • A.constants
  • B.real statement
  • C.string statement
  • D.integer statement

Answer: A

Correct answer: constants

The numbers 3.1 and 5 written directly into the expression are literal constants: their values are fixed in the program text and cannot change while it runs. NUM, by contrast, is a variable, since the INPUT statement gives it whatever the user types.

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

Post your comment

Please log in or register to post a comment.