Mca1 1
Mca1 1
any five questions 1. (a) What is overloading of a function? Where & why we use this concept? (b) What do mean by polymorphism and encapsulation? 2. (a) What do you know about the scope and extent of declaration? Illustrate (6) (b) What are the rules of naming variables in C++? Illustrate. (6) 3. (a) What is inline function .how does inline function differ from preprocessor macro. illustrate function inherited. Justify your answer.. (6) (6) (b) What are virtual functions? Where are these needed? Are the virtual 4. (a) What do you understand by constructor and destructors. What is the order of execution of constructor and destructor in the inherited chain of classes? Illustrate than the normal error checking. (b) Can we throw exception from outside a try block? Justify your answer. (6) (6) (6) 5. (a) What is exceptional handling? How is the exception handling useful/preferred (6) Maximum Marks: 50
6. What is operator overloading? How is it useful? How binary operator operators can be overloaded using friends. Explain with suitable C++ code segments. 7. What do you understand by input and output streams? Illustrate the steps involved in using a file in a C++ program 8. what are templates . can temp-late also take values. Can template parameters be specific & mandatory. illustrate