What are 2 advantages of using an interpreter rather than a compiler when

@zugedanit (1958)
Philippines
February 12, 2007 2:11pm CST
What are 2 advantages of using an interpreter rather than a compiler when entering and testing programs?
1 response
• United States
12 Feb 07
An interpreter can allow more rapid trialling of programs. You can test a section of program without writing a complete program. A compiler on the other hand is slower for testing as it needs to translate the whole program into machine code to run. An interpreter will allow you to locate logic errors more easily as it will run up to a certain point then stop when an error is located. Some interpreters will help by highlighting the mistake in the source program for you.