Cop 4703 Ch 1 Review Questions and
Answers Graded A+
How can user-defined operator overloading harm the readability of a program? -
ANSWER-If the operations are used in odd unintuitive ways.
How is the cost of compilers for a given language related to the design of that
language? - ANSWER-Many run time checks will prohibit fast code execution. If
optimization is used compiling will be slower but execution will be faster.
In What language is most of UNIX written? - ANSWER-C
What are the advantages of implementing a language with a pure interpreter? -
ANSWER-The main advantage of implementing a language with a pure interpreter is
that a pure interpreter allows for implementation of many source level debugging
operations, because many run-time error messages can refer to source level units.
What are the three fundamental features of an object-oriented programming language?
- ANSWER-Data abstraction, inheritance and dynamic (run-time) method.
What are the three general methods of implementing a programming language? -
ANSWER-Compilation, pure interpretation, hybrid implementation systems
What construct of a programming language provides process abstraction? - ANSWER-
Subprograms.
What does a linker do? - ANSWER-In computing, a linker or link editor is a computer
system program that takes one or more object files (generated by a compiler or an
assembler) and combines them into a single executable file, library file, or another
"object" file.
What does it mean for a program to be reliable? - ANSWER-A program is said to be
reliable if it performs to its specifications under all conditions.
What have been the strongest influences on programming language design over the
past 50 years? - ANSWER-The basic architecture of computers (von Neumann).
What is aliasing? - ANSWER-Aliasing is two or more distinct names that can be used to
access the same memory cell.
What is an example of two language design criteria that are in direct conflict with each
other? - ANSWER-Reliability and cost of execution
Answers Graded A+
How can user-defined operator overloading harm the readability of a program? -
ANSWER-If the operations are used in odd unintuitive ways.
How is the cost of compilers for a given language related to the design of that
language? - ANSWER-Many run time checks will prohibit fast code execution. If
optimization is used compiling will be slower but execution will be faster.
In What language is most of UNIX written? - ANSWER-C
What are the advantages of implementing a language with a pure interpreter? -
ANSWER-The main advantage of implementing a language with a pure interpreter is
that a pure interpreter allows for implementation of many source level debugging
operations, because many run-time error messages can refer to source level units.
What are the three fundamental features of an object-oriented programming language?
- ANSWER-Data abstraction, inheritance and dynamic (run-time) method.
What are the three general methods of implementing a programming language? -
ANSWER-Compilation, pure interpretation, hybrid implementation systems
What construct of a programming language provides process abstraction? - ANSWER-
Subprograms.
What does a linker do? - ANSWER-In computing, a linker or link editor is a computer
system program that takes one or more object files (generated by a compiler or an
assembler) and combines them into a single executable file, library file, or another
"object" file.
What does it mean for a program to be reliable? - ANSWER-A program is said to be
reliable if it performs to its specifications under all conditions.
What have been the strongest influences on programming language design over the
past 50 years? - ANSWER-The basic architecture of computers (von Neumann).
What is aliasing? - ANSWER-Aliasing is two or more distinct names that can be used to
access the same memory cell.
What is an example of two language design criteria that are in direct conflict with each
other? - ANSWER-Reliability and cost of execution