a)Unit 1Describe the various control statement with example.
Describe the various control statement with example.
b)Unit 4Discuss and compare run time and compile time polymorphism.
Discuss and compare run time and compile time polymorphism.
• Attempt any five questions.
• All questions carry equal marks.
Describe the various control statement with example.
Discuss and compare run time and compile time polymorphism.
Explain object oriented programming languages with its features.
What are Empty classes? Can instance empty class be created? Give reason.
Discuss the role of Cout and Cin in detail. Why they are used in C++ and from which class they belong to? Explain in detail.
What is Operator overloading? Can friend function be used to overload the assignment operator (=).
Write short notes on (any two):
i) Exception handling
ii) New and delete
iii) Polymorphism
Write a program in C++ which demonstrate the use of Inheritance.
Explain pointer and function pointer.
What are the advantages and limitation of using default arguments in a function? Write a program which defines a function with three default arguments and call the function in four different ways.
How inherited method is different from redefined method?
Design a class called as FATHER and MOTHER as base classes and class CHILD which is derived from both FATHER and MOTHER. Write a C++ program to display the qualities of CHILD due to inheritance.
What are the various stream classes and stream error? Explain them in brief. What are input and output streams? Give examples.
What are the access modifiers? How many types of access modifiers are available in C++? Explain each of them and their role in implementing the data hiding in object oriented programming.
Explain in detail about exception and how they handled? Define function template and class template.