Friday 28 June 2013

Chapter 16



Concept of Programming Languages by Robert W. Sebesta Answer

Review Questions


1. What are the three primary uses of symbolic logic in 


formal logic ?
to express propositions, to express the relationships between propositions, and to
describe how new propositions can be inferred from other propositions that
are assumed to be true.

Chapter 15



Concept of Programming Languages by Robert W. Sebesta Answer

Review Questions


1. Define functional form, simple list, bound variable and referential transparency.
Functional form : one that either takes one or more functions as parameters or yields a function as its result. 
Simple list : A list that does not include sublist.
Bound variable : A bound variable is a variable which never changes in the expression after being bound to an actual parameter value at the time evaluation of the lambda expressions begin. 
Referential transparency : A state where execution of function always produces the same result when given the same parameters.

Thursday 27 June 2013

Chapter 14



Concept of Programming Languages by Robert W. Sebesta Answer

Review Questions

1. Define exception, exception handler, raising an exception, disabling an exception, continuation, finalization, and built-in exception.

Exception : any unusual event, erroneous or not, that is detectable by either hardware or software and that may require special processing.

Exception handler : a code unit which processes an exception.

Raising an exception : When a event associated with an exception occurs

Disabling an exception : Ignoring a certain hardware-detectable exceptions.

Continuation : Control transfer to somewhere in the program outside of the handler code or program might terminate .

Finalization : ability to complete some computation regardless of how subprogram execution terminates.

Built-in exception : Exception that is not made by the user, but rather comes as default.

Chapter 13



Concept of Programming Languages by Robert W. Sebesta Answer

Review Questions

1. What are the three possible levels of concurrency in programs ?
Instruction level, Statement level, and Unit level

Chapter 12



Concept of Programming Languages by Robert W. Sebesta Answer

Review Questions

1. Name two functional languages that support object-oriented programming.

C++ and Objective-c

Chapter 11



Concept of Programming Languages by Robert W. Sebesta Answer

Review Questions

1. What are the two kinds of abstractions in programming       languages ?
Process Abstraction and Data Abstraction

Chapter 10



Concept of Programming Languages by Robert W. Sebesta Answer

Review Questions


2. Which of the caller or callee saves execution status 

information?
Status information can be saved by either caller or callee.

Chapter 9



Concept of Programming Languages by Robert W. Sebesta Answer

Review Questions

1. What are the three characteristics of subprogram?


  • Each subprogram has single entry point 
  • The calling program unit is suspended during the execution of the called subprogram, which implies that there is only one subprogram in execution at any given time. 
  • Control always returns to the caller when the subprogram execution terminates

Chapter 8



Concept of Programming Languages by Robert W. Sebesta Answer

Review Questions

1. What is the definition of control structure ?

Linguistic mechanisms that selecting among alternative control flow paths and causing repeated execution of statements or sequence statements.