Give a suitable example to illustrate the concepts of

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: pports five highlevel languages. How many compilers will this computer have? 25. 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. 27. 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. 34. Explain the differences among assemblers, compilers, interpreters, and linkers. 35. What is an interpreter? How does it differ from a compiler? 36. 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? 41. What are the advantages and limitations of high-level languages as compared to machine and assembly languages? 42. What...
View Full Document

This document was uploaded on 04/07/2014.

Ask a homework question - tutors are online