This preview shows page 1. Sign up to view the full content.
Unformatted text preview: pports five highlevel languages. How many compilers will this computer have?
It is said that an assembly language is "one-for-one" but a high-level
language is "many-for-one". Explain what this means.
26. Illustrate the machine independence characteristic of a high-level language.
Differentiate between syntax errors and logic errors found in computer
programs. Which type of error more difficult to detectand correct? Give reasons
for your answer.
28. While writing a program, a programmer erroneously instructed the computer
to calculate the area of rectangle by adding the width to its length (that is, AREA =
LENGTH + WIDTH) instead of multiplying the length and the width. Would you
expect the language processor to detect this error? Explain why. 29.
A programmer eliminates all language processor errors from his/her
program and then runs it to get print results. The programmer therefore concludes
that the program is complete. Comment.
30. What type of errors in a program can be detected by a compiler? What type
of errors cannot be detected?
31. What is a linker? Why is it required?
32. Differentiate between the compilation and linking processes of a software.
33. Differentiate among source programs, object programs, library modules, and
load module of a software; system.
Explain the differences among assemblers, compilers, interpreters, and
35. What is an interpreter? How does it differ from a compiler?
What are the two approaches commonly used to translate high-level
languages into machine language Discuss the relative advantages and
disadvantages of the two approaches.
37. What advantages do compilers have over interpreters?
38. What advantages do interpreters have over compilers?
39. When would you prefer to use a compiler than an interpreter?
40. When would you prefer to use an interpreter than a compiler?
What are the advantages and limitations of high-level languages as
compared to machine and assembly languages?
View Full Document
This document was uploaded on 04/07/2014.
- Spring '14