source: liacs/cvp/assignments/lecture1.txt@ 89

Last change on this file since 89 was 2, checked in by Rick van der Zwet, 15 years ago

Initial import of data of old repository ('data') worth keeping (e.g. tracking
means of URL access statistics)

File size: 2.7 KB
Line 
1# Rick van der Zwet
2# StudentID: 0433373
3# Lecture 1
4# $Id: lecture1.txt 246 2007-09-28 07:36:04Z rick $
5
6All quotes are based on the 7th edition of Concepts of programming
7languages from Robert W. Sebesta, cause the 8th edition has not come in
8yet
9
10***Chapter 1 Review Questions***
117)
12Q: What is the disadvantage of having to many features in a language?
13A: "If a language ... bizarre results" pg. 15 section 1.3.2.1
14
158)
16Q: How can user-defined operator overloading harm the readability of a
17 program?
18A: "Because the usual ... the program's readers" pg. 9
19
209)
21Q: What is one example of a lack of orthogonality in the design of C?
22A: "As examples of the lack ... affects its meaning" pg. 11
23
2410)
25Q: What language used orthogonality as a primary design criterion?
26A: "Perhaps the most orthogonal programming language is ALGOL 68" pg. 11
27
2811)
29Q: What primitive control statement is used to build more complicated
30 control statements in languages that lack them?
31A: "reaction to the poor readability ... goto statements severely
32 reduces program readability" pg 12
33
3412)
35Q: What construct of a programming language provides process
36 abstraction?
37A: "A simple example ... use of a subprogram" pg 16
38
3914)
40Q: Why is type checking the parameters of a subprogram important?
41A: "Type checking is an important ... the required repairs" pg 16-17
42
4315)
44Q: What is aliasing?
45A: "Loosely defined, aliasing ... same memory cell" pg. 17 sect 1.3.3.3
46
4716)
48Q: What is exception handling?
49A: "The ability of ... aid to reliability" pg. 17 sect 1.3.3.2
50
51
52***Chapter 1 Problem Sets***
536)
54Q: What common programming language statement, in your opinion, is most
55 detrimental to readability?
56A: "I believe the use of statements like goto and return in the middle
57 of a program, which greatly reduce the reability"
58
5910)
60Q: What are the arguments for writing efficients programs even though
61 hardware is relatively inexpensive?
62A: * Hardware might be inexpensive, but not powerfull looking to
63 embedded devices
64 * A function might get called many times, making the overall program
65 really slow
66
67***Chapter 2 Review Questions***
6811)
69Q: What control flow statements were added to Fortran IV to get Fortran
70 77?
71A: "Fortran 77 retained most ... optional Else clause" pg. 59 sect. 2.3.5
72
7312)
74Q: Which version of Fortran was the first to have any soft of dynamic
75 variables?
76A: "Fortran 90 ... This is a radical ... only static data" pg 49 sec.
77 2.3.5
78
7920)
80Q: What missing language element of ALGOL 60 damaged its changes for
81 widespread use?
82A: "Most important amoung ... too machine dependent" pg. 61 sect. 2.5.6
83
8430)
85Q: What features of SIMULA 67 are now important parts of some object
86oriented languages?
87A: "The primary goal was ... classes and inheritance" pg. 101 sec.
88 2.16.1
89
90
Note: See TracBrowser for help on using the repository browser.