In line 100 INPUT NUM: PRINT 3.1*NUM*NUM+5" of a BASIC program, ' PRINT 3.1 and 5' are classified as
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.
Please log in or register to report this question.