Exercises
1. Indicate the
following statements as either TRUE or FALSE:
1. Syntax errors are detected during
compilation.
2.A compiler is a hardware
component that translates programs written in a
high level language to a machine
language.
2.
3.
The input unit is the part of the computer that controls all the other
parts.
4.
The last statement in a FORTRAN program should be the END statement.
5. FORTRAN is a high level language.
6. A comment statement is used for
documentation purposes.
7. Dividing by zero will cause a compilation
error.
8. If a FORTRAN
statement exceeds column 72, then ‘+’ at column # 6 in the
next line can be used to continue the
statement on that line.
9. A computer is a machine used to solve
problems only.
10. A compiler
checks the syntax of the program and converts the program
into machine language
11. A program is a set of computer
instructions.
12. One can
use as many ‘STOP’ and ‘END’ statements as he/she wishes in a
single program.