B.Tech. III Semester
Examination, November 2022
Grading System (GS)
Max Marks:
70 | Time: 3 Hours
Note:
i) Answer any five questions.
ii) All questions carry equal marks.
a) Describe the various control statement with example. (Unit 1)
b) Discuss and compare run time and compile time polymorphism. (Unit 4)
a) Explain object oriented programming languages with its features. (Unit 1)
b) What are Empty classes? Can instance empty class be created? Give reason. (Unit 2)
a) Discuss the role of $C_{out}$ and $C_{in}$ in detail. Why they are used in C++ and from which class they belong to? Explain in detail. (Unit 1)
b) What is Operator overloading? Can friend function be used to overload the assignment operator (=). (Unit 4)
Write short notes on (any two):
i) Exception handling (Unit 5)
ii) New and delete (Unit 2)
iii) Polymorphism (Unit 4)
a) Write a program in C++ which demonstrate the use of Inheritance. (Unit 3)
b) Explain pointer and function pointer. (Unit 1)
a) 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. (Unit 4)
b) How inherited method is different from redefined method? (Unit 4)
a) Design a class called as FATHER and MOTHER as base classes and class CHILD which is derived from both FATHER and MOTHER. FATHER has qualities Q, $Q_{2}$ and $Q_{3}$ and MOTHER has qualities $Q_{1}$, $Q_{x}$ $Q_{4}$ Write a C++ program to display the qualities of CHILD due to inheritance. (Unit 3)
b) What are the various stream classes and stream error? Explain them in brief. What are input and output streams? Give examples. (Unit 1)
a) 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. (Unit 2)
b) Explain in detail about exception and how they handled? Define function template and class template. (Unit 5)