Concepts of Programming Languages 10th Edition – Robert W. Sebesta
Lecturer : Tri Djoko Wahjono
Review Questions (Randomly 10 of 30)
- How can knowledge of programming language characteristic benefit the whole computer community? (Number 2)
– Programming language characteristic is a profound of it’s own understanding. If the programmers understand each of the programming language characteristic, they could create a more effective and efficient programming language which affects the whole computer community.
- What programming language has dominated business applications over the past 50 years? (Number 4)
- In what language is UNIX written? (Number 6)
- How can user-defined operator overloading harm the readability of a program? (Number 8)
– If the operations are used in odd unintuitive ways.
- What language used orthogonality as a primary design choice? (Number 10)
– Algol 68.
- What construct of a programming language provides process abstraction? (Number 12)
- Why is type checking the parameter of a subprogram important? (Number 14)
– It can lead to lots of hard to debug errors.
- What is exception handling? (Number 16)
– The ability of a program to intercept run time errors.
- How is the cost of compilers for a given language related to the design of that language? (Number 18)
– Many run time checks will prohibit fast code execution. If optimization is used compiling will be slower but execution will be faster.
- What is the name of the category of programming languages whose structure is dictated by the von Neumann computer architecture? (Number 20)
– Imperative languages.
Problem Sets (Randomly 6 of 18)
- Who is said to be the first programmer in human history? Use the Internet for help. (Number 2)
– The first computer programmer in human history was Lord Byron’s Daughter Ada Lovelace.
- In what way do the languages for scientific applications differ from the languages for business applications? Support your view. (Number 4)
– The way they’re different is that the languages for scientific applications uses relatively simple data structure while the languages for business applications is typically used for producing elaborate reports.
- Which characteristics of programming languages do you think are the most important and why? (Number 6)
– I think the most important characteristic is Reliability, because it performs to its specifications under all conditions. That conditions include Readability, Writability, Type Checking, Exception Handling, and Aliasing.
- Most languages use functions and subroutines. What are the pros and cons of this design decision ? (Number 8)
– The pros of using functions and subroutines are that the programmer doesn’t need to code the similar code multiple times instead allowing the programmer to use the code multiple times, the function could also be used by other programmer without needing to worries about the stack of the same variables. The cons are most of the function can only return one value, prone to errors if not coded properly.
- Make a comparative study of the cost of software and hardware. (Number 10)
– The cost of software and hardware depend on the performance, usage, etc. As for hardware only need to cost once whereas for the software cost could be expensive depending on the user’s need.
- Can we call any programming language complete, in your opinion? Why or why not? (Number 12)
– I don’t think any programming language could be called complete, because each programming language has their own superiority and flaw. Some will effective using a certain programming language, and some don’t.