CoffeeEverywhere Corporation, headquartered in Seattle, Washington, uses a variety of programming languages in its various application systems. Which of the following statements is not correct with respect to programming languages?
a.Programs may be either interpreted or compiled. When programs are compiled, each line of source code is converted into executable code immediately before it is executed.
b.Examples of modern programming languages are C++ and Java.
c.Programs are normally written in source code that is then translated into object code.
d.Fourth-generation languages are languages that enable end users to develop applications with little or no technical assistance.
Answer:A
Choice "A" is correct. This is an incorrect statement. Programs may be either interpreted or compiled. However, when programs are interpreted, not compiled, each line of source code is converted into executable code immediately before it is executed. Interpretation is normally slower than compilation because it is harder to optimize (for performance) an interpreted program. Optimization normally is part of the compilation or linking process.
Choice "b" is incorrect. This statement is correct. Examples of modern programming languages are C, C++, Visual Basic, and Java. Java is a programming language. If a computer has a Java interpreter, compiled Java modules can be run on that computer. Java modules can be embedded on web pages and can be downloaded to a web browser and run on a client computer. Java, from a programming standpoint, is somewhat like C and C++; however, programs written in Java are more portable (from one vendor's computer to another in executable form) than C or C++ programs. C and C++ are really not all that portable since different programming language vendors tend to include "special features" in their programming languages.
Choice "d" is incorrect. This statement is correct. Fourth-generation languages are languages that enable end users to develop applications with little or no technical assistance. That does not necessarily mean that untrained end users will really be able to write good or efficient programs or applications, just that they may be able to write them.
Choice "c" is incorrect. This statement is correct. Programs are normally written in source code that is then translated into object code. The translation is the compilation or interpretation of the source code. If a program is compiled, broadly speaking, the object code is retained and is what is executed. If a program is interpreted, the interpreted code is what executes. If the program is executed again, it is interpreted again.