BC0037 Assignment Winter 2012
BC0037 Assignment Winter 2012
Answer all questions. Each question carries equal marks. (08 x 05 = 40) 1. Distinguish between procedural language and OOP language. And explain the key features of OOP. 2. With a suitable example show that switch () statement differs from the normal if().else statement. 3. What is function overloading? Write a c++ program to implement a function overloaded. 4. Explain the scope and visibility of variables in c++ functions. 5. Discuss the constructors and Destructors with suitable example. 6. Write a program in c++ to compute the LCM of two numbers. 7. What do you mean by operator overloading? Illustrate with suitable example for overloading Unary operators. 8. Illustrate with coding the implementation of inheritance with your own example.