CHAPTER 2 EXERCISE
ANSWERS
1. 40 PRINT A,B,C,
line #, keyword, descriptive information
2. correctly coded line numbers
A,B,C,F,H
incorrectly coded line numbers
D. 1/4 must be a whole number
E. 9.99 cannot contain a decimal point
G. 123456 maximum number allowed is 99999
1. #9999 cannot contain special characters
J. .2500 cannot contain a decimal point
3. A. 2500.0
B. -150.0
C. 0.000099
D. -3500000.0
4. correctly coded numbers
A,E,F,H
incorrectly coded numbers
B. 9,500 cannot contain commas
C. $100.00 cannot contain $
D. 1/4 cannot contain special characters except decimal points
G. 65$ cannot contain $
5. A. 10 LET A = 2
15 LET B = 4
20 LET C = 8
25 PRINT "TOTAL"
30 PRINT A+B+C
40 E ND
B. TOTAL
14
|
|