ANSWERS TO SELF TEST ON CHAPTER 5
1. Lower case letters for variable names or loop names contrast with the keywords which are at
least partly displayed in upper case.
2. Indenting reveals clearly what is the extent and content of loops (and other structures).
3. Identifiers (names) should normally be chosen so that they mean something, for example, count
or word$ rather than C or W$
4. You can edit a stored program by:
replacing a line
inserting a line
deleting a line (three points)
5. The ENTER key must be used to enter a command or program line.
6. The word NEW will wipe out the previous SuperBASIC program in the QL and will ensure that a
new program which you enter will not be merged with an old one.
7. If you wish a line to be stored as part of a program then you must use a line number.
8. The word RUN followed by will cause a program to execute.
9. The word REMark enables you to put into a program information which is ignored at execution
time.
10. The keywords SAVE and LOAD enable programs to be stored on and retrieved from
cartridges.(two points).
CHECK YOUR SCORE
12 to 14 is very good. Carry on reading.
10 or 11 is good but re-read some parts of chapter five.
8 or 9 is fair but re-read some parts of chapter five and do the test again.
Under 8 You should re-read chapter five carefully and do the test again.