OOPS with C++ : Question Paper Jun 2012 - Electronics & Telecomm (Semester 3) | Visveswaraya Technological University (VTU)

OOPS with C++ - Jun 2012

Electronics & Communication (Semester 3)

(1) Question 1 is compulsory.
(2) Attempt any four from the remaining questions.
(3) Assume data wherever required.
(4) Figures to the right indicate full marks.
1 (a) Describe the following characteristics of object oriented programming:
(i) Encapsulation (ii) Polymorphism (iii) Inheritance
(8 marks)
1 (b) Write the general form of function. Explain the different types of argument passing techniques, with example.(8 marks) 1 (c) What are pointers? Explain with example.(4 marks) 2 (a) What is class? How it is created? Write a C++ programme to create a class called employee with data members: name, age and salary . Display at least '5' employee information.(10 marks) 2 (b) What are constructors? How is a constructor different from member function? Illustrate with example.(6 marks) 2 (c) What is data hiding? How it is achieved in C++? Explain with example.(4 marks) 3 (a) What are friend functions? Why they are required? Illustrate with example.(10 marks) 3 (b) What is the use of operator overloading? Write a programme to overload the following operators:
(i) Pre-increment (ii) Post-decrement operators.
(10 marks)
4 (a) What is inheritance? How to inherit a base class a protected? Explain the inheriting multiple base classes.(6 marks) 4 (b) With an example, explain the inheriting multiple base classes.(6 marks) 4 (c) Explain with example base class access control.(8 marks) 5 (a) Explain the different order of invocation of constructors and destructors in inheritance, with simple example.(12 marks) 5 (b) Explain with example, "granting access" with respect to inheritance.(8 marks) 6 (a) What are virtual functions> What is the need of virtual function? How is early binding is different from late binding?(6 marks) 6 (b) What is pure virtual function? Explain with an example.(8 marks) 6 (c) How to inherit a virtual attributes? Explain with example.(6 marks) 7 (a) What is exception handling? Write a C++ programme to demonstrate the "try", "throw" and "catch" keywords for implementing exception handling.(10 marks) 7 (b) What is standard template library (STL)? List and explain any five member functions from "list" and "vector" classes.(10 marks)

Write short notes on:

8 (a) C++ stream classes(5 marks) 8 (b) File operation(5 marks) 8 (c) Function overloading(5 marks) 8 (d) Inline function(5 marks)


Next up

Read More Questions

If you are looking for answer to specific questions, you can search them here. We'll find the best answer for you.


Study Full Subject

If you are looking for good study material, you can checkout our subjects. Hundreds of important topics are covered in them.

Know More