Concpet of Programming Language Chapter 2

Name: William Gunawan

NIM: 1601211306

Instructor: Tri Djoko Wahjono

REVIEW QUESTIONS

1. In what year was Plankalkül designed? In what year was that design
published?
Plankalkül was designed in 1945 and was published in 1972.

2. Mention an interesting feature of Zuse’s programs.
One of the most interesting features of Zuse’s programs was the inclusion
of mathematical expressions showing the current relationships between program
variables. These expressions stated what would be true during execution
at the points in the code where they appeared.

3. What does Plankalkül mean?
program calculus.

22. On what language was COBOL based?
FLOW-MATIC

23. In what year did the COBOL design process begin?
1959

28. PL/I was designed to replace what two languages?
Fortran and COBOL.

29. For what new line of computers was PL/I designed?
IBM Systems/360.

31. What innovation of data structuring was introduced in ALGOL 68 but is
often credited to Pascal?
User-defined data types.

32. What design criterion was used extensively in ALGOL 68?
orthogonality.

33. What language introduced the case statement?
ALGOL-W

42. What three concepts are the basis for object-oriented programming?
Inheritance, Polymorphism, Encapsulation

52. What array structure is included in C# but not in C, C++, or Java?
Rectangular arrays are included in C#, but not in C, C++, or Java.

57. What data types does Java support?
byte
short
int
long
float
double
char
String (or any object)
boolean

60. How does Java provide storage deallocation?
Java uses implicit storage deallocation for its objects, often called garbage collection.
This frees the programmer from needing to delete objects explicitly when they are no longer needed. Programs written in languages that do not have garbage collection often suffer from what is sometimes called memory leakage, which means that storage is allocated but never deallocated. This can obviously lead to eventual depletion of all available storage.

65. What are the inputs to an XSLT processor?
an XML data document and an XSLT document

66. What is the output of an XSLT processor?
another XML document

69. Where are .jsp files executed?
On a webserver.
Continue reading

Concept of Programming Language Chapter 1

NIM: 1601211306

Name: William Gunawan

Instructor: Tri Djoko Wahjono

Review questions

3. Fortran (Formula Translating)
4. COBOL (COmmon Business-Oriented Language)
5. LISP
6. The UNIX operating system is written almost entirely in C
9. Although C has two kinds of structured
data types, arrays and records (structs), records can be returned from
functions but arrays cannot.
15. aliasing is having two or more distinct names that can be
used to access the same memory cell.
16. The ability of a program to intercept run-time errors (as well as other unusual
conditions detectable by the program), take corrective measures, and then
continue is an obvious aid to reliability.
17. Readability affects reliability in both the writing and maintenance phases
of the life cycle. Programs that are difficult to read are difficult both to write
and to modify.

Continue reading