December
1998 QUESTION 1 (Compulsory) Total Marks: 20 Marks |
Click here to access other
questions
Click to access
|
(a) | State, and briefly describe, the final stage
of the Booch design methodolgy.
|
[2] |
(b) | In C++, a virtual function permits dynamic
binding. Explain what is meant by dynamic binding and how it differs from static
binding.
|
[2] |
(c) | Explain the use of the this pointer in C++.
|
[2] |
(d) | Explain the difference between deep
and shallow (or memberwise) copying of objects in C++.
|
[3] |
(e) | For either Java or Smalltalk, list
two language features that are different from those found in C++.
|
[2] |
(f) | (i) Explain the difference between passing
arguments to a function by value and by reference.
|
[2] |
(ii) Write a function that takes an array of integers and its integer length, and reverses the order of the integers in the array. | [7] |