B.C.A Last year Paper of C++ 2018 UTU EXAM
UTU EXAMINATION SECOND SEMESTER-2018
PROGRAMMING IN C++
Time Duration: 3 Hrs. Total Marks: 70
Instruction: Attempt any Five Questions. All question carry equal marks.
1 (a). What are the elements of object oriented Programming?
(b). What is inheritance? What are the base and derived classes? Give a suitable example of inheritance.
2 (a). What are the differences between static binding and late binding? Explain
dynamic binding with a suitable example.
(b). What are variables? List C++ rules for variables naming.
3 (a). What are objects? Describe the syntax for defining objects with example.
(b). What are constructors and destructors? Explain how they differ from
4 (a). What is operator overloading? Explain the importance of operator
(b). Why is the friend function not allowed to access members of a class directly
although its body can appear within the class body
5 (a). What are different forms of inheritance supported by C++? Explain them
(b). What is visibility mode? What are the different inheritance visibility modes
supported by C++?
6 (a). Justify the need of virtual function in C++.
(b). What are streams? Explain the features of C++ stream I/O with C’s I/O
7 (a). What are virtual destructors? How do they differ from normal destructors?
Can constructor be declared as virtual constructors?
(b). Write an interactive programming in C++. For swapping integers.
8 Write short notes on following:
Direct and Indirect base class