# Rick van der Zwet # StudentID: 0433373 # Lecture 1 # $Id: lecture1.txt 246 2007-09-28 07:36:04Z rick $ All quotes are based on the 7th edition of Concepts of programming languages from Robert W. Sebesta, cause the 8th edition has not come in yet ***Chapter 1 Review Questions*** 7) Q: What is the disadvantage of having to many features in a language? A: "If a language ... bizarre results" pg. 15 section 1.3.2.1 8) Q: How can user-defined operator overloading harm the readability of a program? A: "Because the usual ... the program's readers" pg. 9 9) Q: What is one example of a lack of orthogonality in the design of C? A: "As examples of the lack ... affects its meaning" pg. 11 10) Q: What language used orthogonality as a primary design criterion? A: "Perhaps the most orthogonal programming language is ALGOL 68" pg. 11 11) Q: What primitive control statement is used to build more complicated control statements in languages that lack them? A: "reaction to the poor readability ... goto statements severely reduces program readability" pg 12 12) Q: What construct of a programming language provides process abstraction? A: "A simple example ... use of a subprogram" pg 16 14) Q: Why is type checking the parameters of a subprogram important? A: "Type checking is an important ... the required repairs" pg 16-17 15) Q: What is aliasing? A: "Loosely defined, aliasing ... same memory cell" pg. 17 sect 1.3.3.3 16) Q: What is exception handling? A: "The ability of ... aid to reliability" pg. 17 sect 1.3.3.2 ***Chapter 1 Problem Sets*** 6) Q: What common programming language statement, in your opinion, is most detrimental to readability? A: "I believe the use of statements like goto and return in the middle of a program, which greatly reduce the reability" 10) Q: What are the arguments for writing efficients programs even though hardware is relatively inexpensive? A: * Hardware might be inexpensive, but not powerfull looking to embedded devices * A function might get called many times, making the overall program really slow ***Chapter 2 Review Questions*** 11) Q: What control flow statements were added to Fortran IV to get Fortran 77? A: "Fortran 77 retained most ... optional Else clause" pg. 59 sect. 2.3.5 12) Q: Which version of Fortran was the first to have any soft of dynamic variables? A: "Fortran 90 ... This is a radical ... only static data" pg 49 sec. 2.3.5 20) Q: What missing language element of ALGOL 60 damaged its changes for widespread use? A: "Most important amoung ... too machine dependent" pg. 61 sect. 2.5.6 30) Q: What features of SIMULA 67 are now important parts of some object oriented languages? A: "The primary goal was ... classes and inheritance" pg. 101 sec. 2.16.1