final-2008 - CS3723 Final Exam 1(30pts Finish the following...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

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: CS3723 Final Exam Dec 16, 2008 1. (30pts) Finish the following sentences by filling in the blanks. (a) Programming languages can be implemented via two approaches: compilation and interpretation. Two advantages of implementing a language via compilation are and ; Two advantages of implementing a language via interpretation are and . All programming languages are Turing complete and can express the class of , which include all functions computable by a modern computer. An example of a non-solvable problem is . (b) Answer the following questions. NOTE: languages that are both compiled and interpreted should be considered as compiled here. An example of an interpreted functional programming language is ; An example of a compiled functional programming language is ; An example of an interpreted imperative programming languages is ; An example of a compiled imperative programming languages is ; An example of an interpretd object-oriented programming languages is ; An example of a compiled object-oriented programming languages is ; (c) Types are classification of values. In particular, different types of values have different . There are two ways to deter- mine whether two compound types are equivalent, and . In run-time type checking, the type of each variable is checked every time the variable is being operated on; In compile-time type checking, the type of each variable is checked be- fore the program is run. The advantage of compile-time type check- ing is ; The advantage of run-time type checking is . The difference between compile-time type checking and type inference is ....
View Full Document

{[ snackBarMessage ]}

Page1 / 5

final-2008 - CS3723 Final Exam 1(30pts Finish the following...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online