Recent Question/Assignment

Your document for this assignment will be submitted to Blackboard under Final in one of the following file formats: ASCII, MS Word, or PDF
Note: More is better, to a point, don’t wander in your explanations, but supply enough detail to show you understand the question.
1. What is parametric polymorphism in a subprogram, and give an example of how it is used.
2. Give an example of using a co-routine in which it is not possible to use a subroutine to accomplish the same task, provide code if necessary
3. From a programmer point of view, make an argument that supports the use of deep access rather than shallow access; try to avoid an argument that revolve around performance.
4. In chapter 10, the book describes two potential problems with the static-chain methods, excluding these two, describe another.
5. Discuss alternative approaches to an abstract data type.
6. Are there different categories, levels or implementations of the concept of abstract data types supported by modern language compilers, or does one definition fit all, please explain why or why not, give an example?
7. Does Object-orientated programming and abstract data types go hand-in-hand or should they be considered separate entities. Is it strictly chance that these two concepts always appear together in a programming language. If you agree, explain why, if you don’t agree , explain why, and give an example to support your decision.
8. Explain the use of wrapper classes for non-object data types, so that wrapper methods can be implemented alleviating the issues of mixed non-object values with object related values.
9. In java, there are four types of concurrency control, semaphores, monitors, locks and atomic values, give an example of when you would use one over the other, (you don’t have to provide code, just explain the situation).
10. Explain the differences between SISD, SIMD, MIMD, MISD processors, and the relationship to concurrency.
11. Give an example where a functional language is significantly superior to an imperative language on solving a specific task.
12. Explain the advantages of a declarative language over an imperative language. Show a real world example where this is true. Describe the difference between a declarative language and a functional language.

Looking for answers ?