Miscellaneous Keywords BEEP causes the computer to make a sound to attract the attention of the user. STOP causes the computer to stop running the program. END marks the end of the program. A QBasic program consists of module-level code and a number of procedures. The module-level code is the main program controlling the computer.
Procedures divide the program into easily-managed parts.
SUB Procedures A SUB procedure is used by the programmer to define a new statement keyword. The first line shows the name of the procedure and the parameters used in the procedure. When there are no parameters the brackets after the name of the procedure are left empty. Then you can use the name of the procedure as a statement keyword anywhere in your program. Here is an example of a program with a SUB procedure.