{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

SoftwareEng - Software Engineering Preliminary Examination...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Software Engineering Preliminary Examination February 2009 Below is a list of sample exam questions to help you prepare for the Software Engineering Preliminary Exam. The questions provided do not cover every topic addressed by the exam. Be sure to review all topics identified in the preliminary exam syllabus prior to attempting the software engineering preliminary exam. (1) Provide a complete explanation of the differences between the terms class , object , and client . (2) Given the code segment below, answer the following three questions . class Alpha class Bravo : public Alpha { { public: public: Alpha(); Bravo(); void Charlie(); void Foxtrot(); private: private: int Delta; float Gamma; int Echo(); void Helo() }; }; If a variable of type Bravo is created, which, if any, constructors are called and in what order? An object of type Alpha has _______ member functions directly accessible by a client program? An object of type Bravo has _______ data attributes directly accessible by a client program? (3) In the context of C++, explain the differences between direct and indirect addressing. You must include C++ examples of each, in addition to your explanation, to receive full credit. (4) Describe the Slicing Problem and how it may be overcome in C++. Be sure to include sample C++ code that illustrates both the problem and the solution to the problem. (5) For the code segment below, describe the role of the & operator on Line2 and the * operator on Line3 . int x = 5; // Line 1 int* y = &x; // Line 2 cout << *y; // Line 3 (6) Describe the difference between static and dynamic binding. (7) What term is used to describe to pool of memory locations used for dynamic allocation/deallocation? (8) Give two reasons why one might wish to pass an object by reference. (9) Suppose that class A has a private member X , a protected member Y , and a public member Z . A new class B is derived from A . Circle the visibility/accessibility of each inherited member within B .
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon