Question 1 Report
Which of the following is NOT a characteristic of interpreters?
An interpreter is a language translator that reads a program's source code one instruction at a time, translates that single instruction into machine code, and executes it immediately before moving to the next line. Because errors are caught as soon as the line containing them is reached, interpreters give immediate error detection, and because each line is translated and run in sequence, they execute code line by line. This line-by-line approach also makes interpreters generally slower than compilers, since translation happens repeatedly during execution rather than once beforehand.
Translating the entire program into machine code all at once, before any of it runs, is instead the defining behaviour of a compiler. A compiler reads the whole source file, converts it completely into machine code, and only then runs the resulting program. Because an interpreter never does this "all at once" translation, it does not share that characteristic.
Examination reminder: whenever a question mentions translating "all at once" versus translating and running "line by line," it is testing the distinction between compilers and interpreters.
Everything you need to excel in your exams