CS/B.
TECH(N)/EVEN/SEM-6/6602/2022-2023/I040
MAULANA ABUL KALAM AZAD UNIVERSITY OF TECHNOLOGY, WEST BENGAL
Paper Code : OE-EC604C Object Oriented Programming
UPID : 006602
Time Allotted : 3 Hours Full Marks :70
The Figures in the margin indicate full marks.
Candidate are required to give their answers in their own words as far as practicable
Group-A (Very Short Answer Type Question)
1. Answer any ten of the following : [ 1 x 10 = 10 ]
(I) What does a class in C++ holds?
(II) What is the role of a constructor in classes?
(III) What is the syntax of overloading operator + for class A?
(IV) How many specifiers are used to derive a class?
(V) ____used to create a pure virtual function.
(VI) Which is used to create an output stream?
(VII) Where does the object is created?
(VIII) How many parameters does a default constructor require?
(IX) Which of the following operator cannot be overloaded?
(X) If a class is derived privately from a base class then ______________________________
(XI) How structures and classes in C++ differ?
(XII) An inline function is expanded during ______________
Group-B (Short Answer Type Question)
Answer any three of the following : [ 5 x 3 = 15 ]
2. What is the hierarchy of file stream classes? [5]
3. Explain about public inheritance with an example. [5]
4. How to create reference variable in c++? [5]
5. Define object oriented programming concepts. [5]
6. Differentiate between binary and unary operators which can be overloaded. [5]
Group-C (Long Answer Type Question)
Answer any three of the following : [ 15 x 3 = 45 ]
7. (a) Why access specifiers are used? [5]
(b) Write a program by using friend function to find out the Fibonacci series of n terms. [5]
(c) What is static members? [5]
8. (a) Write a program to show an arithmetic exception. How to handle it? [5]
(b) Why template is used in c++? [3]
(c) Differentiate between class template and function template with proper examples. [7]
9. (a) What do you mean by virtual destructor? [5]
(b) What are the uses of this pointer? [5]
(c) What do you mean by run time polymorphism? [5]
10. (a) Differentiate between default and argumental constructors. [5]
(b) How constructors can be used with dynamic allocation? [5]
(c) Why constructors are used to initialize an Object? [5]
11. (a) Write a program to find out all prime numbers between 1 to 100.Apply copy constructor also in [6]
your program.
(b) Differentiate between function and constructor. [5]
(c) Define destructors with an example. [4]
*** END OF PAPER ***
1/1